-
Notifications
You must be signed in to change notification settings - Fork 262
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 <[email protected]>
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 <[email protected]>
41a7b86
to
a895cb8
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4359 +/- ##
=======================================
Coverage 63.87% 63.87%
=======================================
Files 172 172
Lines 17659 17661 +2
=======================================
+ Hits 11279 11281 +2
Misses 5705 5705
Partials 675 675
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 |
Hello, |
sorry for the delay @crossy-l !! thank you for this contribution! |
The PR #4359 adds ID fields to rollouts and constraints in the export. This change updates the tests to handle these new fields properly: 1. CLI tests now check for individual fields rather than exact YAML blocks since IDs are included between the fields 2. Integration tests normalize YAMLs by removing IDs before comparison since IDs are server-generated and not stable across import/export This preserves the PR's intent (adding IDs to exports) while fixing tests.
The PR flipt-io#4359 adds ID fields to rollouts and constraints in the export. This change updates the tests to handle these new fields properly: 1. CLI tests now check for individual fields rather than exact YAML blocks since IDs are included between the fields 2. Integration tests normalize YAMLs by removing IDs before comparison since IDs are server-generated and not stable across import/export This preserves the PR's intent (adding IDs to exports) while fixing tests. Signed-off-by: Claude <[email protected]>
8295df0
to
66959b6
Compare
The PR flipt-io#4359 adds ID fields to rollouts and constraints in the export. This change updates the tests to handle these new fields properly: 1. CLI tests now check for individual fields rather than exact YAML blocks since IDs are included between the fields 2. Integration tests normalize YAMLs by removing IDs before comparison since IDs are server-generated and not stable across import/export This preserves the PR's intent (adding IDs to exports) while fixing tests. Signed-off-by: markphelps <[email protected]> Signed-off-by: Claude <[email protected]>
e04d887
to
05fb6b4
Compare
05fb6b4
to
d8bab25
Compare
The PR flipt-io#4359 adds ID fields to rollouts and constraints in the export. This change updates the tests to handle these new fields properly: 1. CLI tests now check for individual fields rather than exact YAML blocks since IDs are included between the fields 2. Integration tests strip ID fields using regex before comparison since IDs are server-generated UUIDs and not stable across import/export This preserves the PR's intent (adding IDs to exports) while fixing tests. Signed-off-by: markphelps <[email protected]>
d8bab25
to
e15de90
Compare
The PR flipt-io#4359 adds ID fields to rollouts and constraints in the export. This change updates the tests to handle these new fields properly: 1. CLI tests now check for individual fields rather than exact YAML blocks since IDs are included between the fields 2. Integration tests strip ID fields using regex before comparison since IDs are server-generated UUIDs and not stable across import/export This preserves the PR's intent (adding IDs to exports) while fixing tests. Signed-off-by: markphelps <[email protected]>
e15de90
to
12a61da
Compare
This PR currently has a merge conflict. Please resolve this and then re-add the |
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 :)