Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Add task to destroy guest users after one week#338

Open
CJStadler wants to merge 2 commits intocodeforboston:masterfrom
CJStadler:delete-guest-users
Open

Add task to destroy guest users after one week#338
CJStadler wants to merge 2 commits intocodeforboston:masterfrom
CJStadler:delete-guest-users

Conversation

@CJStadler
Copy link

Issue #256.

This destroys users that were created more than one week ago. Is there a way to determine if a user has been inactive, so that we are not destroying active guest users? Is there any reason an active user would remain a guest?

I believe this will not destroy units associated with guest users. Is that the correct behavior?

I can write a spec for the task if necessary.

This does not add any method of scheduling the task. The issue mentioned sidekiq, but that seems like overkill just to run a single job per week. The best option probably depends mostly on how this is being hosted.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant