Skip to content

Conversation

@LuukBlankenstijn
Copy link
Contributor

Description

A small bug I found that caused me a lot of confusion. To fix everything, it would be nice to run the following query against the live database: UPDATE SIGNUP SET drawn = TRUE. Since the drawing functionality has not really been used yet, it does not matter this resets everything.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

@tomudding
Copy link
Member

tomudding commented Apr 27, 2025

Maybe I do not understand the functionality, but the default should be false not true? Because you cannot be drawn by default, however, then the real fix would be setting the following to true?

@LuukBlankenstijn
Copy link
Contributor Author

LuukBlankenstijn commented Apr 27, 2025

Well, right now the default is true. Since there is no policy (implemented) (yet), everyone is "drawn" in by default, and then you can "draw" them out in the admin interface. The actual draw is made by the used by hand.

Copy link
Member

@tomudding tomudding left a comment

Choose a reason for hiding this comment

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

I personally disagree that the default state should be that you are ingeloot; imho everyone should start uitgeloot, and then the draw awards you a spot.

That way, you make it an active decision (either manually or programmatically -in the future) to award someone the spot and prevent people from staying ingeloot while they should become uitgeloot (because of whatever reason we fail to save the state); in other words, we fail safely.

@tomudding tomudding merged commit 0eedb60 into GEWIS:main May 4, 2025
4 checks passed
github-actions bot added a commit that referenced this pull request May 4, 2025
Tom Udding: Merge pull request #2016 from LuukBlankenstijn/fix/attendance-mode-bugs

fix(attendance-mode): fix wrong default value for Signup entity

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.

2 participants