You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Option 1: Generate workspace id by using crypto.randomBytes(6).toString('base64url').slice(0, 6) (prefered)
pros:
The id is much shorter than uuid, which is 32-chars length.
cons:
The collision odds will increase, though the collision rate will be (Number of unique IDs / Total possible IDs) = 64^6 (from the base64url encoding) / 256^6 (from the random bytes) = 0.000244140625(0.0244%).
Option 2: Generate workspace id by using opensearch default id or uuid
pros:
The id is promised to not collide with other ids.
cons:
The id will be too long, especially when considering case that we might use workspaceId as a prefix of objects id when migrate tenants data to workspace data, the id will become like 32 + 32 = 64-chars long.
Option 3: Use workspace name or anything else as workspace id.
pros:
It is more intuitive when we use the workspace name as workspace id, especially that we may use the id in OSD's url.
cons:
For Trinity, workspace name can be modified, and that will break the consistency between id and name.
Describe the solution you'd like
We need a further discussion to see if we can use the uuid or opensearch's id generation method to generate the id.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Is your feature request related to a problem? Please describe.
Option 1: Generate workspace id by using
crypto.randomBytes(6).toString('base64url').slice(0, 6)
(prefered)Option 2: Generate workspace id by using opensearch default id or uuid
Option 3: Use workspace name or anything else as workspace id.
Describe the solution you'd like
We need a further discussion to see if we can use the uuid or opensearch's id generation method to generate the id.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
#5075
The text was updated successfully, but these errors were encountered: