Skip to content

Conversation

@Redflashx12
Copy link
Collaborator

Fixes #2176.

Additionally added two test in class RemoveUserDueToInactivity. During test run of "Bulk update users" in the web with evap/staff/fixtures/test_user_bulk_update_file.txt, Lyndsey Lattimore should get removed from 1 participation(s) due to inactivity..

Copy link
Member

@richardebeling richardebeling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work so far! Sorry, quite a few comments added up, this could be a bit overwhelming. We want to address everything so we don't get stuck in endless review loops. We're always happy to help out and answer any questions, so make sure to ask if anything is unclear.

@Redflashx12
Copy link
Collaborator Author

Good work so far! Sorry, quite a few comments added up, this could be a bit overwhelming. We want to address everything so we don't get stuck in endless review loops. We're always happy to help out and answer any questions, so make sure to ask if anything is unclear.

Thanks for your time in reviewing this PR, especially for all the fixes and explanations. Much appreciated 👍.

Copy link
Member

@niklasmohrin niklasmohrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly good to me, I only have minor comments:

Copy link
Member

@janno42 janno42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, it would probably be nice to have the accounts listed in one message like those to be marked inactive, but I think it's fine for now.

Copy link
Collaborator

@Kakadus Kakadus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requesting the missing test from above

@Kakadus
Copy link
Collaborator

Kakadus commented Mar 17, 2025

should I add full path coverage for if user.is_active and not user.can_be_marked_inactive_by_manager: and or (date.today() - last_participation) < settings.PARTICIPATION_DELETION_AFTER_INACTIVE_TIME ?

Copy link
Member

@niklasmohrin niklasmohrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, only two small suggestions:

@Kakadus Kakadus requested review from Kakadus and niklasmohrin and removed request for Kakadus March 17, 2025 19:19
@Kakadus Kakadus self-requested a review March 17, 2025 19:41
@Kakadus Kakadus removed their request for review March 24, 2025 16:26
@niklasmohrin niklasmohrin merged commit ec85864 into e-valuation:main Mar 24, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Delete participations of long inactive users

5 participants