twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
GNU Affero General Public License v3.0
15.99k stars 1.79k forks source link

Existing user of one workspace doesn't have transferred data when invited to another workspace #6606

Open BOHEUS opened 1 month ago

BOHEUS commented 1 month ago

Scenario:

  1. Log in as tim@apple.dev to Twenty workspace
  2. Go to Settings > Members and copy invite link
  3. In another browser (or incognito mode if you accessed the workspace in "normal" mode) open copied invite link
  4. Create new account:
    • email: test@apple.dev
    • first and last name: Test Test
  5. Skip syncing data
  6. In window from step 1 open Apple workspace and copy invite link
  7. Repeat step 3

Actual: User (Test Test) created in Twenty workspace doesn't have transferred data

Twenty workspace image

Apple workspace image

Expected: Data should be transferred from one workspace to another or prompt asking for first and last name should appear (expected result needs to be decided by @CoreTeamTwenty)

FelixMalfait commented 1 month ago

So far we've decided to separate the "user" object which is share from "workspaceMember" object (firstName, lastName) which is unique to each workspace. We should probably copy the data from "user" to the newly created WorkspaceMember yes (but not from workspaceMember1 to workspaceMember2)