Add Knight registration to new membership system#2958
Add Knight registration to new membership system#2958brage-andreas wants to merge 1 commit intomainfrom
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
| options.overrideTurnstileCheck = true | ||
| options.ignoreRegisteredToParent = true | ||
| options.ignoreRegistrationWindow = true |
There was a problem hiding this comment.
I am not really sure we want to let them ignore the registration window. It also doesn't really make sense to skip turnstile check since it is fully automatic and already happens on the website.
There was a problem hiding this comment.
We need to ignore registration window. Usually they get invited way in advance, and I think it would be a downgrade for them if they suddenly have a much more limited time range to register. I believe they might need to register early for externally invited capacity reasons too, but I'm not sure. This is what I came up with after talking with some Knights and HS
There was a problem hiding this comment.
The turnstile check does not really matter. I don't think there is much danger in Knights botting our registrations. I can add it back
| applicablePool = attendance.pools.find((p) => p.title === "Ridder") ?? { | ||
| id: crypto.randomUUID(), | ||
| attendanceId, | ||
| capacity: 0, | ||
| yearCriteria: [], | ||
| title: "Ridder", | ||
| createdAt: new Date(), | ||
| updatedAt: new Date(), | ||
| mergeDelayHours: null, | ||
| taskId: null, | ||
| } |
There was a problem hiding this comment.
I don't know what this object is for, didn't you say that you were intended to create a new pool if there wasn't already one for ridder?
There was a problem hiding this comment.
it says in the comment above--the pool might not exist yet, so I mock it. I don't want to create the pool until the knight actually registers, but we need the "pool" in the frontend so the knight can see they can register
| } | ||
| } | ||
|
|
||
| // NOTE: This should allow creating attendance pools with no year criteria |
0497d1b to
e58be75
Compare
6de224c to
7772117
Compare
e58be75 to
f5bc91c
Compare
7772117 to
51c846b
Compare
40b8fb0 to
619f62a
Compare
9ca2514 to
b608b40
Compare
a43cb8d to
67b769f
Compare
67b769f to
ca0fe05
Compare

This fixes a regression from the new membership rewrite, where Knights (Riddere) cannot register to any events.
How this works:
Important to note:
TODO: