-
Notifications
You must be signed in to change notification settings - Fork 246
fix(export): add id of rollouts/constraints to export #4359
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: crossy-l <crossyl2001@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @crossy-l , looks good to me to continue
I think we should also bump the version here to 1.5 too , even though its a nonbreaking change
flipt/internal/ext/exporter.go
Line 23 in af21da6
latestVersion = v1_4 |
congrats on the your first open source contribution @crossy-l !! thank you! |
Thanks. I will look into the test cases and bump the version in the following days. |
@markphelps all right, now trying to manually update all test cases seems incredibly tedious. I put a little snippet inside the exporter_test to generate new fixtures like so (this is only a small demonstration, not that I actually want that inside the exporter_test):
This however introduces lot's of small formatting differences between the existing fixtures. I will just commit the generated fixtures so you can see the differences. |
Signed-off-by: crossy-l <crossyl2001@gmail.com>
41a7b86
to
a895cb8
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4359 +/- ##
=======================================
Coverage 63.72% 63.72%
=======================================
Files 171 171
Lines 17603 17605 +2
=======================================
+ Hits 11217 11219 +2
Misses 5717 5717
Partials 669 669
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@crossy-l dont worry about the formatting I'll run our formatter |
In https://github.com/orgs/flipt-io/discussions/4311, the audit logs were already improved. Now this is a small follow up.
I want to add the id's of the rollouts/segments to the flipt export. This way, when an audit log comes in, the previous version of that record can easily be looked up using it's id in a previous export.
This PR simply adds the ids to the export interfaces.
The tests still need to be updated however. That is of course, if you agree with the changes.
Also this is my first ever open source PR :)