Skip to content

Implement User trashing and restoring #1

Closed

Description

@SlimDeluxe

The following features are needed:

  • A user should be able to trash and restore other users
  • A user cannot trash himself
  • Trashing and restore action must be limited to users with correct permissions
  • The Users resource must allow viewing and restoring trashed users
  • A trashed user cannot login

Considering Filament has trashing/restoring support, this should be pretty easy.

Feature tests must be included.

Activity

  1. SlimDeluxe commented on Mar 14, 2025

    @SlimDeluxe
    MemberAuthor

    /bounty $50

  2. algora-pbc commented on Mar 14, 2025

    @algora-pbc

    ## 💎 $50 bounty • DataLinx

    ### Steps to solve:
    1. Start working: Comment /attempt #1 with your implementation plan
    2. Submit work: Create a pull request including /claim #1 in the PR body to claim the bounty
    3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

    Thank you for contributing to DataLinx/eclipsephp-core!

    Add a bounty • Share on socials

    Attempt Started (GMT+0) Solution
    🟢 @sparkybug Mar 15, 2025, 10:13:42 AM #4
  3. added
    help wanted
    on Mar 14, 2025
  4. sparkybug commented on Mar 15, 2025

    @sparkybug
    Contributor

    Hello @SlimDeluxe

    /attempt #1

    I have implemented user trashing & restoring by:

    • Enabling soft deletes in the User model.
    • Preventing users from trashing themselves.
    • Restricting actions based on permissions.
    • Ensuring trashed users cannot log in.
    • Adding a filter to view trashed users in Filament.
    • Writing Pest PHP tests to verify functionality.

    Let me know if any changes are required.

  5. algora-pbc commented on Mar 15, 2025

    @algora-pbc

    💡 @sparkybug submitted a pull request that claims the bounty. You can visit your bounty board to reward.

  6. moved this from Todo to In Progress in Eclipse developmenton Mar 15, 2025
  7. algora-pbc commented on Mar 21, 2025

    @algora-pbc

    🎉🎈 @sparkybug has been awarded $50! 🎈🎊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted💎 Bounty💰 Rewarded

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions