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

Feature/kodeverk service #3449

Merged
merged 14 commits into from
Apr 4, 2024
Merged

Feature/kodeverk service #3449

merged 14 commits into from
Apr 4, 2024

Conversation

krharum
Copy link
Contributor

@krharum krharum commented Mar 22, 2024

No description provided.

krharum added 4 commits March 21, 2024 11:39
…everk-service

Removed KodeverkMapper and TokenXUtil classes, switched Flux to Mono in KodeverkGetCommand, and enhanced the logging in KodeverkController for better insight during runtime. Additionally, various dependencies in build.gradle and imports in other classes have been updated or removed to tidy up the project structure. This refactoring is aimed to simplify the code structure, enhance application performace and improve debugging during operation.
…rvice

Added CacheConfig.java for defining cache configurations and enabled caching annotations in KodeverkService. Implemented Caffeine and NoOpCacheManager for 'prod' and 'dev' profiles respectively. Additionally, updated some method arguments and return types in KodeverkService and added 'spring-boot-starter-cache' along with caffeine library in build.gradle dependencies. This optimization aims to improve application performance by reducing redundant data fetching operations.
@krharum krharum requested a review from a team as a code owner March 22, 2024 08:02
krharum added 10 commits March 22, 2024 09:09
…verk-service

The security setup has been switched to reactive by including 'reactive-security' and replacing 'servlet-security' with 'reactive-core'. Changes in 'AppConfig.java', 'build.gradle', and 'settings.gradle' reflect this. Also, the 'SecurityConfig.java' has been reordered and updated to utilize the reactive method security. The 'failureThreshold' for liveness and readiness in 'config.yml' has been reduced for faster response. Lastly, the libraries in 'KodeverkConsumer.java' have also been updated to reflect the changes.
…#deploy-kodeverk-service

The used Springdoc OpenAPI starter dependency was switched from 'springdoc-openapi-starter-webmvc-ui' to 'springdoc-openapi-starter-webflux-ui' making the application more reactive. Alongside this main change, the 'OpenApiConfig.java' was adjusted to implement 'WebFilter', changing the handling of authentication headers and introducing a new method for routing '/swagger' requests to '/swagger-ui.html'.
Modified the endpoint mapping in KodeverkController.java to remove '/kodeverk'. This change simplifies the request paths, with the retrieval method determined by the presence or absence of a path variable. Now, the main endpoint and the specific 'kodeverkNavn' endpoints are directly accessible from the root.
The commit removes 'servlet-core', 'servlet-security' and 'testing' dependencies from the trigger paths. Additionally, 'reactive-security' has been added to the trigger paths for the GitHub workflow in 'app.kodeverk-service.yml'.
A second cache, "kodeverk-2", has been introduced in CacheConfig. The CaffeineCacheManager now also manages this new cache. Additionally, the "getKodeverkByName" method in KodeverkController has been updated to use "kodeverk-2" for caching instead of the original "kodeverk".
The caching rule for CACHE_KODEVERK and CACHE_KODEVERK_2 in KodeverkController has been updated to avoid caching empty results. This helps to optimize cache storage and enhance the performance of the Kodeverk service.
…loy-kodeverk-service

The commit introduces new Data Transfer Objects (DTOs) to Kodeverk service, revamping the Kodeverk controller and service accordingly. Additionally, the caching rules have been refined for the Kodeverk service to evade storing empty results, thereby optimizing cache utilization and enhancing overall performance.
…k-service

The commit changes the assignments for the label and value properties of KodeAdjusted in KodeverkService. Now, it uses getNorskBokmaal for the label and the map's key for the value, adjusting the data assignment logic.
Copy link
Contributor

@stigus stigus left a comment

Choose a reason for hiding this comment

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

Ser flott ut 😄

@krharum krharum merged commit 8c4dc7e into master Apr 4, 2024
5 of 7 checks passed
@krharum krharum deleted the feature/kodeverk-service branch April 4, 2024 07:22
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