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

Create Gateway Institution Configuration projection row if not exists #407

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

MKodde
Copy link
Member

@MKodde MKodde commented Aug 15, 2023

When the Gateway institution configuration is updated because the sso on 2fa config changed for that institution. The projection would only be updated if the institution already exists in the projection. If the projection did not yet have the institution, then the projection was not updated.

This fix now creates the row if the projection is not yet present. This only works now that we only track one single configuration value.

Note that the real solution to this problem would be to do an event replay. But to prevent an event replay on prod we choose to add this construction.

https://www.pivotaltracker.com/story/show/185833305

When the Gateway institution configuration is updated because the
sso on 2fa config changed for that institution. The projection would
only be updated if the institution already exists in the projection. If
the projection did not yet have the institution, then the projection was
not updated.

This fix now creates the row if the projection is not yet present.
@MKodde MKodde added the 5.1 label Aug 15, 2023
@MKodde MKodde requested a review from johanib August 15, 2023 09:16
@MKodde MKodde changed the title Create GW Inst Config if not present in projection Create Gateway Institution Configuration projection row if not exists Aug 15, 2023
Copy link

@johanib johanib left a comment

Choose a reason for hiding this comment

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

lgtm

@MKodde MKodde merged commit a35e0d5 into develop Aug 15, 2023
@MKodde MKodde deleted the bugfix/repair-gw-institution-config-projector branch January 17, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants