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 method for migrating proxies without environment validation #2056

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

FredrikOseberg
Copy link
Contributor

@FredrikOseberg FredrikOseberg commented Sep 12, 2022

This method is necessary to add because we're migrating the proxy keys in unleash cloud and we have instances with proxies enabled for environments that might be disabled. The current method will throw a bad data error in this instance, because we do not allow you to create API token for disabled environments. Caused by this line: https://github.com/Unleash/unleash/pull/2056/files#diff-c7747d86059ec3422885e79411b8ef7323c0804df081c110268dd3250ace3696R167

This is a useful validation to have, but in this instance it's blocking a migration that needs to happen regardless of whether or not the environment is disabled, because we might have users that have added configuration and are actively using that configuration in environments that have later been disabled.

@vercel
Copy link

vercel bot commented Sep 12, 2022

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

3 Ignored Deployments
Name Status Preview Updated
unleash ⬜️ Ignored (Inspect) Sep 12, 2022 at 1:15PM (UTC)
unleash-docs ⬜️ Ignored (Inspect) Sep 12, 2022 at 1:15PM (UTC)
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Sep 12, 2022 at 1:15PM (UTC)

@chriswk chriswk enabled auto-merge (squash) September 12, 2022 13:18
Copy link
Contributor

@chriswk chriswk left a comment

Choose a reason for hiding this comment

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

LGTM - Nice catch

@github-actions
Copy link

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
88.66% (-2.72% 🔻)
6846/7722
🟡 Branches 79.16% 1090/1377
🟢 Functions
82.39% (-3.84% 🔻)
1927/2339
🟢 Lines
89% (-2.3% 🔻)
6343/7127

⚠️ Details were not displayed: the report size has exceeded the limit.

Test suite run success

1144 tests passing in 188 suites.

Report generated by 🧪jest coverage report action from 9c2353d

@chriswk chriswk merged commit 721cd20 into main Sep 12, 2022
@chriswk chriswk deleted the feat/create-proxy-migration-method branch September 12, 2022 13: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

2 participants