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

Support new mark system #3190

Merged
merged 5 commits into from
Jul 27, 2024
Merged

Support new mark system #3190

merged 5 commits into from
Jul 27, 2024

Conversation

henrikhorluck
Copy link
Member

@henrikhorluck henrikhorluck commented Jun 6, 2024

Marihøner har prikker. 🐞

Rules implemented: https://old.online.ntnu.no/wiki/komiteer/nyeprikkregler/

Tests should be re-calculated to verify that the new values are correct. This also needs more tests covering the example cases from the rules

- Remove active field on suspension in favour of expiration_date
- Fix "Prikk for" extra text in migration
- Make mark duration configurable based on ruleset
- Be consistent about what is an active/inactive suspension, the term of
  an expiring suspension is new, and likely has some text-errors
  elsewhere
- Found a potential bug w/ auto_now vs auto_now_add ⚠️ we
  probably have multiple 🐛's related to this since the later updates
  every time an object is changed, instead of just at creation time.
- Add some actually useful tests
- Remove unused fields on events, saving several RTTs / queries
- Remove some other dead/unused code
- Mostly remove usage of MarkUser, and move expiration_date to Mark
  instead of MarkUser since we no longer have the rather complex logic
  when adding a new mark
- Probably introduce at least 20 new bugs 🎉
Copy link
Contributor

@henrikskog henrikskog left a comment

Choose a reason for hiding this comment

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

Great job at implementing this! Let's get it into the staging env and do some testing :)

@henrikhorluck henrikhorluck added this pull request to the merge queue Jul 27, 2024
Merged via the queue into main with commit 49290cf Jul 27, 2024
8 checks passed
@henrikhorluck henrikhorluck deleted the feat/marihøne branch July 27, 2024 14:10
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.

None yet

2 participants