[Workspace] Allow custom ID to be specified on workspace creation - #11631
Open
nicklas-dohrn wants to merge 3 commits into
Open
[Workspace] Allow custom ID to be specified on workspace creation#11631nicklas-dohrn wants to merge 3 commits into
nicklas-dohrn wants to merge 3 commits into
Conversation
nicklas-dohrn
requested review from
AMoo-Miki,
BionIT,
Flyingliuhub,
LDrago27,
Maosaic,
SuZhou-Joe,
ZilongX,
abbyhu2000,
ananzh,
angle943,
ashwin-pc,
bandinib-amzn,
curq,
d-buckner,
huyaboo,
joshuali925,
joshuarrrr,
kavilla,
manasvinibs,
mengweieric,
ps48,
raintygao,
ruanyl,
sejli,
virajsanghvi,
wanglam,
xinruiba,
zengyan-amazon,
zhongnansu and
zhyuanqi
as code owners
March 31, 2026 05:52
Hailong-am
reviewed
Jun 15, 2026
nicklas-dohrn
force-pushed
the
feature/workspace-custom-id
branch
from
June 29, 2026 15:17
c5ddfd2 to
dd0970c
Compare
nicklas-dohrn
added a commit
to nicklas-dohrn/OpenSearch-Dashboards
that referenced
this pull request
Jun 29, 2026
- Allows callers to pass an `id` field in workspace creation attributes - Validates the custom ID: must be a UUID or 6–20 alphanumeric/hyphen/underscore characters - Returns HTTP 400 with a descriptive error when the format is invalid - Checks for duplicate ID and returns HTTP 400 if a workspace with that ID already exists - Adds changelog fragment for PR opensearch-project#11631 Signed-off-by: nicklas dohrn <nicklas.dohrn@sap.com> Signed-off-by: Dohrn <nicklas.dohrn@sap.com>
Contributor
|
Persistent review updated to latest commit dd0970c |
nicklas-dohrn
marked this pull request as ready for review
June 29, 2026 15:25
nicklas-dohrn
requested review from
FriedhelmWS,
Qxisylolo and
yubonluo
as code owners
June 29, 2026 15:25
nicklas-dohrn
added a commit
to nicklas-dohrn/OpenSearch-Dashboards
that referenced
this pull request
Jun 29, 2026
- Allows callers to pass an `id` field in workspace creation attributes - Validates the custom ID: must be a UUID or 6–20 alphanumeric/hyphen/underscore characters - Returns HTTP 400 with a descriptive error when the format is invalid - Checks for duplicate ID and returns HTTP 400 if a workspace with that ID already exists - Adds changelog fragment for PR opensearch-project#11631 Signed-off-by: nicklas dohrn <nicklas.dohrn@sap.com> Signed-off-by: Dohrn <nicklas.dohrn@sap.com> Signed-off-by: nicklas-dohrn <nicklas.dohrn@sap.com>
nicklas-dohrn
force-pushed
the
feature/workspace-custom-id
branch
from
June 29, 2026 15:33
dd0970c to
0bfff47
Compare
nicklas-dohrn
added a commit
to nicklas-dohrn/OpenSearch-Dashboards
that referenced
this pull request
Jun 29, 2026
- Allows callers to pass an `id` field in workspace creation attributes - Validates the custom ID: must be a UUID or 6–20 alphanumeric/hyphen/underscore characters - Returns HTTP 400 with a descriptive error when the format is invalid - Checks for duplicate ID and returns HTTP 400 if a workspace with that ID already exists - Adds changelog fragment for PR opensearch-project#11631 Signed-off-by: nicklas-dohrn <nicklas.dohrn@sap.com>
nicklas-dohrn
force-pushed
the
feature/workspace-custom-id
branch
from
June 29, 2026 15:34
0bfff47 to
ab7fe77
Compare
Contributor
|
Persistent review updated to latest commit ab7fe77 |
nicklas-dohrn
force-pushed
the
feature/workspace-custom-id
branch
from
June 29, 2026 15:36
ab7fe77 to
88fe22d
Compare
Contributor
|
Persistent review updated to latest commit ab7fe77 |
Contributor
|
Persistent review updated to latest commit 88fe22d |
nicklas-dohrn
force-pushed
the
feature/workspace-custom-id
branch
from
June 29, 2026 15:39
88fe22d to
653e89d
Compare
Contributor
|
Persistent review updated to latest commit 653e89d |
1 task
Contributor
|
Persistent review updated to latest commit d16f160 |
nicklas-dohrn
force-pushed
the
feature/workspace-custom-id
branch
from
July 13, 2026 08:41
d16f160 to
1ec36a7
Compare
Contributor
|
Persistent review updated to latest commit 1ec36a7 |
Author
|
@SuZhou-Joe and @Hailong-am, |
- Allows callers to pass an `id` field in workspace creation attributes - Validates the custom ID: must be a UUID or 6–20 alphanumeric/hyphen/underscore characters - Returns HTTP 400 with a descriptive error when the format is invalid - Checks for duplicate ID and returns HTTP 400 if a workspace with that ID already exists Signed-off-by: nicklas-dohrn <nicklas.dohrn@sap.com>
Exposes the custom workspace ID on the creation form so users can set it from the UI without needing the API directly. - Adds a `WorkspaceIdField` component with a tooltip listing the accepted formats (UUID or 6–20 alphanumeric/hyphen/underscore) - Validates the ID client-side against the same rules as the server, blocking submission and showing an inline error for invalid values - Clears the validation error on any keystroke so deleting the value re-enables auto-generation without a stale error - Threads `customId` through `WorkspaceFormSubmitData`, `useWorkspaceForm`, and `WorkspaceCreator` to the API call - Adds `InvalidWorkspaceId` error code and callout entry Signed-off-by: nicklas-dohrn <nicklas.dohrn@sap.com>
Signed-off-by: nicklas-dohrn <nicklas.dohrn@sap.com>
nicklas-dohrn
force-pushed
the
feature/workspace-custom-id
branch
from
July 13, 2026 14:42
1ec36a7 to
d23bb25
Compare
Contributor
|
Persistent review updated to latest commit d23bb25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds an optional
idfield to the workspace creation flow — both via the API and the creation UI.POST /api/workspacesnow acceptsattributes.id. When provided, it is used as the workspace ID instead of the auto-generated 6-char base64url value. Must be a UUID or 6–20 alphanumeric/_/-characters. Returns an error if the ID is already taken.Screenshot of the UI
Related documentation:
Testing the changes
Check List
yarn test:jestyarn test:jest_integration