-
Notifications
You must be signed in to change notification settings - Fork 2
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
upgrade to Keycloakify 11 #3272
Conversation
In 5e0c509 I'm applying the fix from @theosanderson from this PR: #3271 Weird that this just happens 'out-of-the-box' with the starter. Thanks again to @theosanderson for finding this! |
It's working in the preview! 🥳 |
After I found the root cause of the CI failure (wrong casing of kcContext that didn't show on macOS due to file system casing insensitivity) I wanted to report the issue to keycloakify but it turns out that the casing isn't in the starter: https://github.com/keycloakify/keycloakify-starter/blob/main/src/login/KcContext.ts @fhennig how did you create the starter? Did you maybe not copy it over manually somehow rather than a complete removal over folder and replacement with current starter? As a result, the fix is easier than Theo's which just happened to fix casing as well but the types extension was unnecessary. |
What I did before was clone into I pushed the change now! It's actually good, because there is Wow I feel stupid now 🤦 😅 |
The file was named wrongly on main by me in the old version – now that it occurs to me I think I have dim memories of that. Some original eslint thing was giving me warnings and I briefly tried to fix them and then gave up or something |
You weren't stupid at all @fhennig - you actually did everything right and macOS (and git) played a trick on us! This is just something we need to remember can happen 🤷 |
I've now added the keycloak update to 26, might as well test it with that. |
It's super confusing that version 26 is more like version 21 than 22-25 here: keycloakify/keycloakify#731 |
2cae4dc
to
af1db09
Compare
4a20f00
to
dbb45b6
Compare
Still WIP:
|
|
…r is set in pacakge.json
0b68684
to
6b073c5
Compare
I tried registering with KC in the preview and get an email, but I think no email arrived. |
I just tried and seemed to see the same. I tried an unrelated preview (https://profile-get-seqs.loculus.org/) and registration was fine, so that seems like a problem |
Alright so I just removed the e-mail theme and then I got an email when registering. (EDIT: I have removed the commit now that did this) |
Maybe I shouldn't have deleted the When initializing the theme it says:
But in the docs it says that the
|
59756e3
to
a7467af
Compare
I changed something (elsewhere) so the ORCiD flows now work - and they lgtm |
Found what I did wrong, I'll have a fix in a bit. |
I got an email now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks this looks nice! It's the sort of thing that is pretty hard to review confidently for code, but I've tested the functionality in various ways and things seem good!
great! I have also updated the kc26 branch here: #3299 and it also looked good there! 🥳 |
I also tested stuff yesterday, got an email and looked good, with my Keycloak 26 changes on top (before they were added). Deploying KC26 together with keycloakify 11 is a bit of a risk as we can't roll back keycloakify anymore. So prudently we'd deploy keycloakify first but considering it's unlikely we need to roll back keycloakify 11 this is ok. Just pointing out the tradeoff. |
@@ -40,7 +40,5 @@ jobs: | |||
run: yarn install --immutable | |||
- name: Build | |||
run: yarn build | |||
- name: Build storybook | |||
run: yarn build-storybook |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we use storybook we should test it in CI so we can upgrade without surprises. I.e. don't revert this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build-storybook
doesn't exist anymore, and there isn't a replacement AFAIK
resolves #3264
preview URL: http://keycloakify-upgrade-try-a.loculus.org
Summary
The old keycloakify 9 theme was replaced by a rewrite based on keycloakify 11 (this was the recommended upgrade path). All features of the old theme were copied over. Also, the new theme uses an env var to set the project name, replacing the old email texts that simply omitted the realm name.
Screenshot
PR Checklist