Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(spec): change membership dates to ensure user is almost archived #280

Merged
merged 2 commits into from
Feb 14, 2022

Conversation

guidojw
Copy link
Member

@guidojw guidojw commented Feb 14, 2022

Summary

The UserCleanupJob will see users as "almost archived" when their last membership is < 18 months.ago, user_cleanup_job_spec.rb creates a membership that ended exactly 18 months ago and thus the job at random occasions doesn't find that the user will almost be archived. This PR changes the end_date to one month earlier so that the job certainly succeeds.

Found out about this in #277 and saw that this test is also failing in #278.

@guidojw guidojw added the type:bug Something isn't working label Feb 14, 2022
@guidojw guidojw requested a review from wilco375 February 14, 2022 19:29
@guidojw guidojw changed the title fix(spec): change membership dates to ensure user will be archived fix(spec): change membership dates to ensure user is almost archived Feb 14, 2022
@wilco375
Copy link
Contributor

Also noticed this test randomly seems to fail once in a while. Nice fix.

@guidojw guidojw enabled auto-merge (squash) February 14, 2022 22:37
@guidojw guidojw merged commit 9ac878e into staging Feb 14, 2022
@guidojw guidojw deleted the fix/user-cleanup-job-spec branch February 14, 2022 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants