digdir / dialogporten-frontend

Brukergrensesnitt for Dialogporten
https://digdir.github.io/dialogporten-frontend/
MIT License
4 stars 2 forks source link

Saved Search: Add dialogporten api version #1384

Open alexdigdir opened 3 hours ago

alexdigdir commented 3 hours ago

In order to support future breaking changes in backend all new saved searches should store which API it was created for.

lattaai12 commented 3 hours ago

Hello, I tried to solve the issue.

This is what I did:

Modified the SavedSearchInput and SavedSearchData types to include an apiVersion field. This change allows storing information about which API version was used when creating a saved search, supporting future breaking changes in the backend.

You can review changes in this commit: https://github.com/lattaai12/digdir-dialogporten-frontend-1384/commit/66fc3c04a99a29fd670e4763c79df82867eb2792.

[!CAUTION] Disclaimer: The commit was created by Latta AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


This issue was tried to solve for free by Latta AI - https://latta.ai/ourmission

If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.