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

chore: rename roles toggles to flag #7123

Merged
merged 2 commits into from
May 23, 2024
Merged

chore: rename roles toggles to flag #7123

merged 2 commits into from
May 23, 2024

Conversation

sjaanus
Copy link
Contributor

@sjaanus sjaanus commented May 23, 2024

Running migration to update roles descriptions.

Copy link

vercel bot commented May 23, 2024

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

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 8:50am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 8:50am

@@ -110,6 +110,9 @@ test('Favor permission name over id migration correctly assigns permissions by n
{ role_id: 101, permission: 'TEST_PERMISSION_4' },
]);

// Run the toggle to flag update migration
await dbm.up('20240523113322-roles-toggle-to-flag-rename.js');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test is manually applying migrations and it was previously running old names. Now I apply the new naming migration to clean it up.

@@ -32,7 +32,7 @@ describe('feature', () => {
it('gives an error if a toggle exists with the same name', () => {
cy.createFeature_UI(featureToggleName, false, projectName);
cy.get("[data-testid='INPUT_ERROR_TEXT']").contains(
'A toggle with that name already exists',
'A flag with that name already exists',
Copy link
Contributor Author

@sjaanus sjaanus May 23, 2024

Choose a reason for hiding this comment

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

Fixing an failing test.

@sjaanus sjaanus merged commit c4566ba into main May 23, 2024
11 of 12 checks passed
@sjaanus sjaanus deleted the rename-roles branch May 23, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants