Skip to content

Resilient fix; improve indices on table/opaqueid rename; use partition key more#966

Merged
rgalanakis merged 4 commits intomainfrom
index-and-resilient-fixes
Jun 17, 2025
Merged

Resilient fix; improve indices on table/opaqueid rename; use partition key more#966
rgalanakis merged 4 commits intomainfrom
index-and-resilient-fixes

Conversation

@rgalanakis
Copy link
Contributor

Use partition key for bulk operations

Some icalendar actions, like deleting obsolete recurring events
for a calendar, were not using the partition key.
Make them use it, and make it easier for other partitioned
replicators to use the partition key.


Add helper to align index names

When a service integration opaque id changes,
it is nice to be able to align index names to reflect
the new opaque id.

This is not necessary, as the routines now ignore differences
in opaque ids when searching for existing indices,
but it is nice to not have old names standing around.


Do not recreate indices when an opaque id changes

Changing a replicator opaque id would result in
new indices being built. This does an opaque-id
insensitive match on index names when figuring out
what indices need to be built during replication
migration and calculating 'create index' calls
during schema modifications.


Fix Resilient private method access

Not sure what's up with this yet. It caused one-time errors, but wasn't seen since. However, the non-self. private method access should be used regardless

Not sure what's up with this yet.
Changing a replicator opaque id would result in
new indices being built. This does an opaque-id
insensitive match on index names when figuring out
what indices need to be built during replication
migration and calculating 'create index' calls
during schema modifications.
When a service integration opaque id changes,
it is nice to be able to align index names to reflect
the new opaque id.

This is not necessary, as the routines now ignore differences
in opaque ids when searching for existing indices,
but it is nice to not have old names standing around.
Some icalendar actions, like deleting obsolete recurring events
for a calendar, were not using the partition key.
Make them use it, and make it easier for other partitioned
replicators to use the partition key.
@codecov
Copy link

codecov bot commented Jun 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.61%. Comparing base (20f73d5) to head (0d5dc06).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #966      +/-   ##
==========================================
+ Coverage   97.07%   97.61%   +0.53%     
==========================================
  Files         488      490       +2     
  Lines       31046    31094      +48     
==========================================
+ Hits        30139    30353     +214     
+ Misses        907      741     -166     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rgalanakis rgalanakis merged commit 72f753b into main Jun 17, 2025
4 checks passed
@rgalanakis rgalanakis deleted the index-and-resilient-fixes branch June 17, 2025 02:46
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.

1 participant