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 : Updated seed module to use "mscolab_settings.ARCHIVE_THRESHOLD" #2230

Conversation

workaryangupta
Copy link
Contributor

Purpose of PR?

Fixes #2227

Updated the seed module to always use mscolab_settings.ARCHIVE_THRESHOLD instead of hardcoded dateutil.relativedelta.relativedelta(months=**2**).

@workaryangupta workaryangupta marked this pull request as draft February 23, 2024 04:42
@workaryangupta workaryangupta marked this pull request as ready for review February 23, 2024 05:52
class mscolab_settings:
# In the unit months when Operations get archived because not used
Copy link
Member

@ReimarBauer ReimarBauer Feb 23, 2024

Choose a reason for hiding this comment

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

good to add it here too. i just looked how it is configured in the https://github.com/Open-MSS/MSS/blob/develop/mslib/mscolab/conf.py#L44

I think we should keep it in days. I did not described it correctly in the issue.

Please change it to days so that it matches with the other occurencies where it is already used.

Another problem is, that I should have looked if this is because of refactoring in develop.

@ReimarBauer
Copy link
Member

@workaryangupta please look on this in develop. My failure to think we can fix this in stable.

@workaryangupta
Copy link
Contributor Author

workaryangupta commented Feb 23, 2024

@workaryangupta please look on this in develop. My failure to think we can fix this in stable.

Alright. I'll be closing this pull request in that case, will link a new one for the develop branch.

@workaryangupta workaryangupta deleted the mscolab_settings-archive_threshold branch February 23, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants