Skip to content

Commit

Permalink
Remove caching configuration and service
Browse files Browse the repository at this point in the history
#deploy-organisasjon-forvalter

Deleted CacheConfig.java and ClearCacheService.java to eliminate caching. Removed related imports and caching annotations in OrganisasjonController.java and OrdreResponse.java. This will simplify the codebase and remove unnecessary dependencies.
  • Loading branch information
krharum committed Sep 12, 2024
1 parent 2dd178d commit c97e901
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 53 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import lombok.RequiredArgsConstructor;
import no.nav.organisasjonforvalter.consumer.MiljoerServiceConsumer;
import no.nav.organisasjonforvalter.dto.requests.BestillingRequest;
import no.nav.organisasjonforvalter.dto.requests.DeployRequest;
import no.nav.organisasjonforvalter.dto.responses.BestillingResponse;
Expand All @@ -18,7 +17,6 @@
import no.nav.organisasjonforvalter.service.OrdreStatusService;
import no.nav.organisasjonforvalter.service.OrganisasjonService;
import no.nav.testnav.libs.servletsecurity.action.GetAuthenticatedId;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
Expand All @@ -32,7 +30,6 @@
import java.util.Set;

import static java.util.Objects.nonNull;
import static no.nav.organisasjonforvalter.config.CacheConfig.CACHE_BEDRIFT;

@RestController
@RequestMapping(value = "api/v2/organisasjoner", produces = MediaType.APPLICATION_JSON_VALUE)
Expand All @@ -46,9 +43,7 @@ public class OrganisasjonController {
private final ImportService importService;
private final DrivervirksomheterService drivervirksomheterService;
private final GetAuthenticatedId getAuthenticatedId;
private final MiljoerServiceConsumer miljoerServiceConsumer;

@CacheEvict(value = CACHE_BEDRIFT, allEntries = true)
@PostMapping
@Operation(description = "Opprett organisasjon med angitte egenskaper")
public BestillingResponse createOrganisasjon(@RequestBody BestillingRequest request) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package no.nav.organisasjonforvalter.dto.responses;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
Expand Down

This file was deleted.

0 comments on commit c97e901

Please sign in to comment.