Skip to content

feat: consume entity change events to update cache in eds cached client#441

Merged
kishansairam9 merged 3 commits intomainfrom
cache-change-event
Nov 28, 2023
Merged

feat: consume entity change events to update cache in eds cached client#441
kishansairam9 merged 3 commits intomainfrom
cache-change-event

Conversation

@kishansairam9
Copy link
Copy Markdown

No description provided.

@github-actions

This comment has been minimized.

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 28, 2023

Codecov Report

Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (f33576d) 79.87% compared to head (3df19e4) 79.50%.

Files Patch % Lines
...cher/enrichment/clients/DefaultClientRegistry.java 0.00% 26 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #441      +/-   ##
============================================
- Coverage     79.87%   79.50%   -0.38%     
  Complexity     1413     1413              
============================================
  Files           127      127              
  Lines          5551     5577      +26     
  Branches        515      516       +1     
============================================
  Hits           4434     4434              
- Misses          879      905      +26     
  Partials        238      238              
Flag Coverage Δ
unit 79.50% <0.00%> (-0.38%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 179 to 189
public void shutdown() {
this.grpcChannelRegistry.shutdown();
this.entityChangeEventListener.ifPresent(
listener -> {
try {
listener.close();
} catch (Exception e) {

}
});
}
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This method isn't called really, but added the close for sanity

Comment thread gradle/libs.versions.toml Outdated
Copy link
Copy Markdown
Contributor

@aaron-steinfeld aaron-steinfeld left a comment

Choose a reason for hiding this comment

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

other than naming lgtm

return Optional.empty();
}

private static Deserializer<EntityChangeEventKey> getEntityChangeEventKeySerde(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

naming - 'serde' refers to serializer/deserializer, when we lump both together. Given you're only working with deserialization here the naming should be adjusted.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit - method name too

@github-actions

This comment has been minimized.

return Optional.empty();
}

private static Deserializer<EntityChangeEventKey> getEntityChangeEventKeySerde(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit - method name too

@kishansairam9 kishansairam9 enabled auto-merge (squash) November 28, 2023 19:24
@github-actions

This comment has been minimized.

@kishansairam9 kishansairam9 merged commit 057bb5b into main Nov 28, 2023
@kishansairam9 kishansairam9 deleted the cache-change-event branch November 28, 2023 19:29
@github-actions
Copy link
Copy Markdown

Unit Test Results

  78 files  ±0    78 suites  ±0   1m 4s ⏱️ -1s
418 tests ±0  418 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 057bb5b. ± Comparison against base commit f33576d.

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