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

refactor(core): Remove roleId indirection (no-changelog) #8413

Merged
merged 4 commits into from
Jan 24, 2024

Conversation

netroy
Copy link
Member

@netroy netroy commented Jan 22, 2024

This PR removes all of the old role-mapping code, so that we can start building a better RBAC from ground-up.
This includes removal of globalRoleId from the user table, as well as the roleId from shared_* tables.
The role table isn't dropped in this PR, and should we kept around until we have a clear plan for RBAC, as we might still need that table.

Review / Merge checklist

  • PR title and summary are descriptive
  • Tests included

Copy link

cypress bot commented Jan 22, 2024

1 flaky test on run #3868 ↗︎

0 338 5 0 Flakiness 1

Details:

🌳 remove-sharing-role-mapping 🖥️ browsers:node18.12.0-chrome107 🤖 aditya 🗃️ ...
Project: n8n Commit: 0edc2c2528
Status: Passed Duration: 03:39 💡
Started: Jan 22, 2024 7:14 PM Ended: Jan 22, 2024 7:17 PM
Flakiness  cypress/e2e/5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Test Replay Screenshots Video

Review all test suite changes for PR #8413 ↗︎

@netroy netroy marked this pull request as ready for review January 22, 2024 19:26
@netroy netroy requested a review from a team as a code owner January 22, 2024 19:26
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jan 22, 2024
@netroy netroy changed the title refactor(core): Remove sharing roleId indirection (no-changelog) refactor(core): Remove roleId indirection (no-changelog) Jan 23, 2024
packages/cli/src/CredentialsHelper.ts Outdated Show resolved Hide resolved
packages/cli/src/services/user.service.ts Show resolved Hide resolved
@netroy netroy force-pushed the remove-sharing-role-mapping branch from e953604 to 15eb8cc Compare January 23, 2024 19:15
@netroy netroy requested review from krynble and valya January 23, 2024 19:50
Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy
Copy link
Member Author

netroy commented Jan 24, 2024

let's merge this after the release to give us more time to catch any potential bugs this might cause.

Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy netroy merged commit d6decea into master Jan 24, 2024
55 checks passed
@netroy netroy deleted the remove-sharing-role-mapping branch January 24, 2024 12:38
@janober
Copy link
Member

janober commented Feb 2, 2024

Got released with n8n@1.27.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants