Skip to content

Commit

Permalink
fix: Remove ID to force new entries to history table
Browse files Browse the repository at this point in the history
  • Loading branch information
JayGreeeen committed Dec 6, 2024
1 parent c36d695 commit ce37b90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public BeekeeperHistoryService(BeekeeperHistoryRepository beekeeperHistoryReposi

public void saveHistory(HousekeepingEntity housekeepingEntity, HousekeepingStatus status) {
BeekeeperHistory event = BeekeeperHistory.builder()
.id(housekeepingEntity.getId())
.eventTimestamp(LocalDateTime.now())
.databaseName(housekeepingEntity.getDatabaseName())
.tableName(housekeepingEntity.getTableName())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;

import com.fasterxml.jackson.core.JsonProcessingException;

import com.expediagroup.beekeeper.core.model.HousekeepingEntity;
import com.expediagroup.beekeeper.core.model.HousekeepingMetadata;
import com.expediagroup.beekeeper.core.model.HousekeepingPath;
Expand Down Expand Up @@ -47,7 +45,7 @@ public void setup() {
}

@Test
void expiredHistory() throws JsonProcessingException {
void expiredHistory() {
HousekeepingMetadata metadata = createHousekeepingMetadata();
String details = createEventDetails(metadata);
BeekeeperHistory history = createHistoryEvent(metadata, details, "DELETED");
Expand All @@ -57,7 +55,7 @@ void expiredHistory() throws JsonProcessingException {
}

@Test
void unreferencedHistory() throws JsonProcessingException {
void unreferencedHistory() {
HousekeepingPath path = createHousekeepingPath();
String details = createEventDetails(path);
BeekeeperHistory history = createHistoryEvent(path, details, "SCHEDULED");
Expand Down

0 comments on commit ce37b90

Please sign in to comment.