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

Remove some dead code from downgrade script generation #7623

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

svenklemm
Copy link
Member

@svenklemm svenklemm commented Jan 26, 2025

Since we only support generating downgrade script for the previous
version anything targeting versions before 2.18 will never be
executed in current context. So we can safely remove the code that
deals with version before 2.3.

Disable-check: force-changelog-file
Disable-check: approval-count

Copy link

codecov bot commented Jan 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.31%. Comparing base (59f50f2) to head (8c6b7ec).
Report is 718 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7623      +/-   ##
==========================================
+ Coverage   80.06%   81.31%   +1.24%     
==========================================
  Files         190      240      +50     
  Lines       37181    44700    +7519     
  Branches     9450    11159    +1709     
==========================================
+ Hits        29770    36348    +6578     
- Misses       2997     3968     +971     
+ Partials     4414     4384      -30     

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

@svenklemm svenklemm changed the title Remove some dead code from downgrad script generation Remove some dead code from downgrade script generation Jan 27, 2025
Since we only support generating downgrade script for the previous
version anything targeting versions before 2.18 will never be
executed in current context. So we can safely remove the code that
deals with version before 2.3.
@svenklemm svenklemm merged commit 8479ba7 into timescale:main Jan 27, 2025
51 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants