Skip to content

Conversation

@tomudding
Copy link
Member

Description

It may happen that an activity has more than one signup list, in certain cases it may be preferred to use a different ordering than when the activity was made.

For example, when it is decided that an activity should be re-opened for signups but you want to preserve the original signup list I have to manually create a new signup list for this activity. To ensure that it is the first signup list in the overview, I have to make manual changes in the database to fix the positioning by altering the IDs of the signup lists (which is a pain).

Therefore, this introduces a structured approach to handle ordering directly within the codebase. The functionality is NOT exposed to activity organisers.

Although more complex ordering (like considering signup list open/close times) is possibly better, it is currently out-of-scope for this implementation (as I am not entirely sure it is possible with Doctrine without have to create custom queries).

Related issues/external references

Related to ABC-2505-TBD.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation improvement (no changes to code)
  • Other (please specify)

It may happen that an activity has more than one signup list, in certain cases
it may be preferred to use a different ordering than when the activity was made.

For example, when it is decided that an activity should be re-opened for signups
but you want to preserve the original signup list I have to manually create a
new signup list for this activity. To ensure that it is the first signup list in
the overview, I have to make manual changes in the database to fix the
positioning by altering the IDs of the signup lists (which is a pain).

Therefore, this introduces a structured approach to handle ordering directly
within the codebase. The functionality is *NOT* exposed to activity organisers.

Although more complex ordering (like considering signup list open/close times)
is possibly better, it is currently out-of-scope for this implementation (as I
am not entirely sure it is possible with Doctrine without have to create custom
queries).
@tomudding tomudding merged commit b5b88fc into GEWIS:main May 1, 2025
4 checks passed
github-actions bot added a commit that referenced this pull request May 1, 2025
Tom Udding: Merge pull request #2018 from tomudding/feature/promoted-signup-list

feat(activity): promoted ordering of signup lists

Co-authored-by: tomudding <tomudding@users.noreply.github.com>
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.

1 participant