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: optional change request feature #4394

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Aug 3, 2023

About the changes

Screenshot 2023-08-03 at 11 01 33

In change request changes we had required feature name. Now we introduce segment changes that don't have any single feature attached. So I'm making the feature column optional. Segment id will be part of the payload same as strategy id is. In the long term we may even consider adding feature name to the payload.

Important files

Discussion points

@sonatype-lift
Copy link

sonatype-lift bot commented Aug 3, 2023

Sonatype Lift is retiring

Sonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console.
We are extremely grateful and thank you for your support over the years.

📖 Read about the impacts and timeline

@vercel
Copy link

vercel bot commented Aug 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Aug 3, 2023 9:11am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Aug 3, 2023 9:11am

Copy link
Contributor

@thomasheartman thomasheartman left a comment

Choose a reason for hiding this comment

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

This looks good to me 😄 Did you already handle the necessary API changes for it? (As in: I'm curious to see how we handle this on the front end etc).

exports.down = function (db, callback) {
db.runSql(
`
UPDATE change_request_events SET feature = 'unknown' WHERE feature IS NULL;
Copy link
Contributor

Choose a reason for hiding this comment

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

This will not work, because it is invalid foreign key.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, what options do we have? delete those?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, not ideal, but acceptable.

Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, there is no ideal solution. We kind of want to retain all user data, but it will be super hard anyways, if they do down migrations.

@kwasniew
Copy link
Contributor Author

kwasniew commented Aug 3, 2023

@thomasheartman I have a PR coming soon that uses this migration and allows to perform full segment update workflow through change request. It will have a corresponding test showing how to use it.

@kwasniew kwasniew merged commit 64b00fa into main Aug 3, 2023
10 checks passed
@kwasniew kwasniew deleted the migration-optional-change-request-feature branch August 3, 2023 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants