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

feat: add semver constraint for git storage #2977

Merged
merged 15 commits into from
Apr 30, 2024

Conversation

thepabloaguilar
Copy link
Contributor

This PR introduces the ability to define semantic versioning for Git storage!

Sorry for the tests, I've tried to think how I could improve but nothing came to my mind so I just copied the other test and adapted for the implementation change

Closes #2905

@thepabloaguilar thepabloaguilar requested a review from a team as a code owner April 12, 2024 02:56
@thepabloaguilar thepabloaguilar force-pushed the issue-2905 branch 2 times, most recently from 1f524e7 to 29b130c Compare April 12, 2024 02:59
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

Attention: Patch coverage is 81.39535% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 72.24%. Comparing base (f997fb9) to head (60cf3bc).
Report is 280 commits behind head on main.

Files Patch % Lines
internal/storage/fs/git/reference_resolvers.go 74.19% 4 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2977      +/-   ##
==========================================
+ Coverage   70.78%   72.24%   +1.45%     
==========================================
  Files          91       98       +7     
  Lines        8729     7425    -1304     
==========================================
- Hits         6179     5364     -815     
+ Misses       2165     1661     -504     
- Partials      385      400      +15     

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

Copy link
Collaborator

@markphelps markphelps left a comment

Choose a reason for hiding this comment

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

one minor ask about adding some test code to test we correctly skip non-sem ver tags, but otherwise LGTM!!

/cc @erka @GeorgeMac

Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
…olvers

Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Signed-off-by: Pablo Aguilar <pablo.aguilar@outlook.com.br>
Copy link
Contributor

@GeorgeMac GeorgeMac left a comment

Choose a reason for hiding this comment

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

👏 very nice. Thanks for such a great improvement!

Copy link
Collaborator

@markphelps markphelps left a comment

Choose a reason for hiding this comment

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

Thank you!

@markphelps markphelps added the automerge Used by Kodiak bot to automerge PRs label Apr 30, 2024
@kodiakhq kodiakhq bot merged commit 571c644 into flipt-io:main Apr 30, 2024
28 checks passed
@markphelps markphelps added the needs docs Requires documentation updates label Apr 30, 2024
@thepabloaguilar thepabloaguilar deleted the issue-2905 branch April 30, 2024 16:58
@markphelps markphelps removed the needs docs Requires documentation updates label May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Used by Kodiak bot to automerge PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support semantic versioning on Git declarative storage
4 participants