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

Ddfform 555 opdateringer til orval #1097

Merged

Conversation

kasperbirch1
Copy link
Contributor

@kasperbirch1 kasperbirch1 commented Apr 9, 2024

Link to issue

https://reload.atlassian.net/browse/DDFFORM-555

Description

This pull request updates the FBS, Cover and Publizon Orval clients, addressing the gaps after updating Orval to its latest version.

A command has been added to remove existing files in the models for auto-generated code. This ensures that we don't retain hooks associated with removed endpoints.

The only code changes in our React apps relate to invalidateQueries. In this PR, these changes are specifically for getGetHoldingsV3QueryKey, where I've added faustIds as a parameter. This update allows for fetching new holdings after a reservation is made.

Additionally, we have uppercased our fetcher methods to align with the case expectations of the requests.

Screenshot of the result

- Incorporated a command to remove existing files in `src/core/fbs/model/*.*` before the execution of the `"codegen:client:fbs"` script.
- Renamed `securitySchemes` to `securityDefinitions` for OpenAPI 2.0 compliance.
- Updated fetcher methods to use uppercase naming convention.
- Adjusted `invalidateQueries` for `getGetHoldingsV3QueryKey`, now requiring `recordId` parameter with added `faustIds`.
…zon`

- Incorporated a command to remove existing files in `src/core/publizon/model/*.*` before the execution of the `"codegen:client:publizon"` script.
- Updated fetcher methods to use uppercase naming convention.
- Incorporated a command to remove existing files in `src/core/cover-service-api/model/*.*` before the execution of the `"codegen:client:cover"` script.
- Updated fetcher methods to use uppercase naming convention.
- Add new url for the Cover API spec
Copy link
Contributor

@kasperg kasperg left a comment

Choose a reason for hiding this comment

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

👍 Nice.

I general consider splitting your changes into even more commits. As I see it some of the bullets in the three current commits could be a commit of their own.

This would also allow you more room to explain why a change is needed e.g. why do we need to update the url to the cover service, why do we think it is OK to update the security schemes for FBS.

Copy link
Contributor

Choose a reason for hiding this comment

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

This file contains a lot on whitespace changes that are not relevant to this PR.

I understand that this is because your editor has automatically reformatted the file. In the future if you are to add such changes then please keep them in a separate commit.

Currently the important change about changing securitySchemes to securityDefinitions is very hard to spot.

@kasperg kasperg assigned kasperbirch1 and unassigned kasperg Apr 11, 2024
@kasperbirch1 kasperbirch1 merged commit 3fe6698 into release/form-sprint-11 Apr 11, 2024
20 checks passed
@kasperbirch1 kasperbirch1 deleted the DDFFORM-555-opdateringer-til-orval branch April 11, 2024 08:39
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