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

PPF-553 BUGFIX Organizers gives 409 in admin panel #1263

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

grubolsch
Copy link
Contributor

Fixed

The UiTdatabank organizers linked to an UiTPAS integration do not load in the admin panel. (409 error).
The problem is that on this API call the $resource is not loaded in the IntegrationModel (aka the fields).
This means that the method isUitpas() always returns false, because the $type is not set.

As a (quick) fix I set the default value of type to Uitpas.
On the UI overview pages the Integration is loaded in, so this overwrites the default value.

Know problem: When creating an integration in the Admin UI the Type is as a default Uitpas

Known Limitation: If we ever have 2 different values in type that toggle conditions, we have a problem.


Ticket: https://jira.uitdatabank.be/browse/PPF-553

Copy link
Contributor

@JonasVHG JonasVHG left a comment

Choose a reason for hiding this comment

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

This is oke a hotfix, but we should really look into a more robust solution.

@grubolsch grubolsch enabled auto-merge July 9, 2024 12:03
@grubolsch grubolsch merged commit 7d66e21 into main Jul 9, 2024
8 checks passed
@grubolsch grubolsch deleted the PPF-553/bugfix-organizers-give-409-error branch July 9, 2024 12:05
@grubolsch grubolsch mentioned this pull request Jul 9, 2024
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