refactor(core): Remove roleId indirection (no-changelog) (#8413)
This commit is contained in:
committed by
GitHub
parent
1affebd85e
commit
d6deceacde
@@ -25,11 +25,7 @@ function setUser(role: IRole) {
|
||||
{
|
||||
id: '1',
|
||||
isPending: false,
|
||||
globalRole: {
|
||||
id: '1',
|
||||
name: role,
|
||||
createdAt: new Date(),
|
||||
},
|
||||
role,
|
||||
},
|
||||
]);
|
||||
|
||||
@@ -37,7 +33,7 @@ function setUser(role: IRole) {
|
||||
}
|
||||
|
||||
function setupOwnerAndCloudDeployment() {
|
||||
setUser('owner');
|
||||
setUser('global:owner');
|
||||
settingsStore.setSettings(
|
||||
merge({}, SETTINGS_STORE_DEFAULT_STATE.settings, {
|
||||
n8nMetadata: {
|
||||
@@ -79,19 +75,19 @@ describe('UI store', () => {
|
||||
[
|
||||
'default',
|
||||
'production',
|
||||
'owner',
|
||||
'global:owner',
|
||||
'https://n8n.io/pricing?utm_campaign=utm-test-campaign&source=test_source',
|
||||
],
|
||||
[
|
||||
'default',
|
||||
'development',
|
||||
'owner',
|
||||
'global:owner',
|
||||
'https://n8n.io/pricing?utm_campaign=utm-test-campaign&source=test_source',
|
||||
],
|
||||
[
|
||||
'cloud',
|
||||
'production',
|
||||
'owner',
|
||||
'global:owner',
|
||||
`https://app.n8n.cloud/login?code=123&returnPath=${encodeURIComponent(
|
||||
'/account/change-plan',
|
||||
)}&utm_campaign=utm-test-campaign&source=test_source`,
|
||||
@@ -99,7 +95,7 @@ describe('UI store', () => {
|
||||
[
|
||||
'cloud',
|
||||
'production',
|
||||
'member',
|
||||
'global:member',
|
||||
'https://n8n.io/pricing?utm_campaign=utm-test-campaign&source=test_source',
|
||||
],
|
||||
])(
|
||||
|
||||
Reference in New Issue
Block a user