Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Fix redundant call to resource registry API (#1181)
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> This is due to the application caching two separate dictionaries of info from the resource registry, grouped by different keys. ![CleanShot 2024-09-25 at 15 30 41@2x](https://github.com/user-attachments/assets/004eb728-3ed7-46d9-8b22-76f7dd7e6451) Added caching of the raw response from the resource registry and removed the dependent caches to lower complexity. ## Related Issue(s) - #1136 ## Verification - [x] **Your** code builds clean without any errors or warnings - [x] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Improved caching strategy for service resource information retrieval, enhancing performance and efficiency. - Centralized data fetching logic for service resources, allowing for more streamlined and efficient access. - **Bug Fixes** - Streamlined data fetching logic to minimize unnecessary calls to the endpoint by utilizing the updated caching mechanism. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Ole Jørgen Skogstad <skogstad@softis.net>
- Loading branch information