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

fix(taps): Hard and soft deletes for handling ACTIVATE_VERSION messages now use the same WHERE clause #2242

Conversation

vitoravancini
Copy link
Contributor

@vitoravancini vitoravancini commented Feb 14, 2024

Soft delete is deleting only versions smaller than the latest version .
Hard delete is deleting smaller and equal.
Making both strategies delete only smaller versions.

fixes #2227


📚 Documentation preview 📚: https://meltano-sdk--2242.org.readthedocs.build/en/2242/

Soft delete is deleting only versions smaller than the latest version
Hard delete is deleting smaller and equal.
Making both strategies delete only smaller versions.
Copy link

codspeed-hq bot commented Feb 14, 2024

CodSpeed Performance Report

Merging #2242 will not alter performance

Comparing techindicium:fix/use-same-logic-for-both-hard-and-soft-delete (c20f87c) with main (2de41df)

Summary

✅ 6 untouched benchmarks

Copy link

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2de41df) 88.47% compared to head (c20f87c) 88.47%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2242   +/-   ##
=======================================
  Coverage   88.47%   88.47%           
=======================================
  Files          54       54           
  Lines        4721     4721           
  Branches      919      919           
=======================================
  Hits         4177     4177           
  Misses        383      383           
  Partials      161      161           

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

@edgarrmondragon edgarrmondragon changed the title fix: using same logic for both hard and soft deletes fix(taps): Hard and soft deletes for handling ACTIVATE_VERSION messages now use the same WHERE clause Feb 14, 2024
Copy link
Collaborator

@edgarrmondragon edgarrmondragon left a comment

Choose a reason for hiding this comment

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

Thanks @vitoravancini!

@edgarrmondragon edgarrmondragon added this pull request to the merge queue Feb 14, 2024
Merged via the queue into meltano:main with commit 5734e69 Feb 14, 2024
31 checks passed
edgarrmondragon pushed a commit that referenced this pull request Mar 6, 2024
…ages now use the same `WHERE` clause (#2242)

fix: using same logic for both hard and soft deletes

Soft delete is deleting only versions smaller than the latest version
Hard delete is deleting smaller and equal.
Making both strategies delete only smaller versions.
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.

Diference between handling activate_version messages between hard_delete true and false
2 participants