-
Notifications
You must be signed in to change notification settings - Fork 415
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: versioned feature states #2688
Conversation
# Conflicts: # frontend/common/types/requests.ts # frontend/common/types/responses.ts
…' into feature/versioned_feature_states # Conflicts: # frontend/common/types/responses.ts
# Conflicts: # frontend/web/components/SegmentOverrides.js # frontend/web/components/modals/ConfirmToggleEnvFeature.tsx # frontend/web/components/pages/EnvironmentSettingsPage.js
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uffizzi Preview |
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.
- Enable feature versioning settings for "Production" environment and see feature history list.
- Switch to "Development" environment.
- Click on feature history button.
- Shown below error. If scaleup is required then the first environment shouldn't have been enabled. On the other hand if scaleup isn't required then a different message should be displayed when feature versioning isn't enabled for an environment.
![image](https://private-user-images.githubusercontent.com/222715/301542376-0eac0344-c871-4ab6-a609-77ea19885890.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTg4MzQsIm5iZiI6MTczOTM1ODUzNCwicGF0aCI6Ii8yMjI3MTUvMzAxNTQyMzc2LTBlYWMwMzQ0LWM4NzEtNGFiNi1hNjA5LTc3ZWExOTg4NTg5MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQxMTA4NTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMDE2YjcxZGJmNzMwYzFmYWRlYWEwNWI1MTNkMTFkNTA5MWNjMWQxNmUxZTgwNTNhYjZlZDdlZTUzNDJjOTUwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.nUhAyiovrnLeEzqE32nslqfGr1VMMX8_dQQYyRp5Hf8)
# Conflicts: # frontend/common/services/useAuditLogItem.ts # frontend/common/types/responses.ts # frontend/e2e/tests/segment-test.ts # frontend/package-lock.json # frontend/web/components/AuditLog.tsx # frontend/web/routes.js
Above issues are resolved. |
OK yep my issues are fixed. Is there anything else blocking this going live? |
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.
My issues have been addressed.
# Conflicts: # frontend/common/types/requests.ts # frontend/web/components/tables/TableFilterItem.tsx
My bad, was just a duplicate data-test attribute added from latest feedback to split audit log links from versioning links. I think we're good to go when tests pass. |
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingChanges
What this does not fully cover, this should follow in an upcoming PR
How did you test this code?
e2e tests that go through creating tests with feature versions enabled to check for regression
Created and updated feature state remote config
![image](https://private-user-images.githubusercontent.com/8608314/291661987-079876c2-8d37-4e67-9096-867682574d9f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTg4MzMsIm5iZiI6MTczOTM1ODUzMywicGF0aCI6Ii84NjA4MzE0LzI5MTY2MTk4Ny0wNzk4NzZjMi04ZDM3LTRlNjctOTA5Ni04Njc2ODI1NzRkOWYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTEwODUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTE5ZDU4YWFlNmM3NjliMDVkYmRiMWNiZTNmNjM5N2RhMDUwMGI1NTgwMmI2YmQ0N2M0NDNmMWY3NjAwNzRhNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.EYqeEtzkjjHN1oyCaRrerXzSt4_5aR5swTUdWxlKeLI)
Updated feature enabled state
![image](https://private-user-images.githubusercontent.com/8608314/291662142-34e2956c-08d3-47fe-b6b2-57c70c0683a9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTg4MzMsIm5iZiI6MTczOTM1ODUzMywicGF0aCI6Ii84NjA4MzE0LzI5MTY2MjE0Mi0zNGUyOTU2Yy0wOGQzLTQ3ZmUtYjZiMi01N2M3MGMwNjgzYTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTEwODUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzYwMGNkMDFjZjQ4YmZhYWNlMzlkNGQxNGIyNTEyNTYyY2VlMmJlYjI1NTU4NTY3NDg5N2ZjN2JjMzljYTg5ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.fd5l2ozncGTZnLgiPJaUV4X0SUs29fcHB6Qmk2eJ24I)
Created a segment override
![image](https://private-user-images.githubusercontent.com/8608314/291662318-5fe519f2-5f9d-4b1a-ba97-4fca23ba80e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTg4MzMsIm5iZiI6MTczOTM1ODUzMywicGF0aCI6Ii84NjA4MzE0LzI5MTY2MjMxOC01ZmU1MTlmMi01ZjlkLTRiMWEtYmE5Ny00ZmNhMjNiYTgwZTEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTEwODUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NWEyNjhlZWJkMmQ2MTE0ZTRiYTg1NjkwM2EyMDRhZmFhYWExNmEyYjAyYzBmZTBjOTdhZTViNTFmOGYxYmIwMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.p3wHlB3nSTzJgqMYV3sNODDq6J6aafA9BsliPsOTDcM)
Update segment override
Note: there is currently an API issue @matthewelwell is looking into.
Update multivariate weightings
Note: this will probably change in the future, different feature versions could technically have totally different multivariate options, this currently only diffs the options that exist in the live feature.