-
Notifications
You must be signed in to change notification settings - Fork 935
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
[RFC][Workspace]Add workspace id into url to indicate current visiting workspace #5243
Comments
@kavilla , here are answers to your questions.
For the bundles, bundles' path are consist of
Original url can be visited without workspaceId inside path. The workspaceId only affect pages that are related to saved objects. For example, saved objects management page. User can only see objects inside workspaceA when the url is like
In browser side,
Indeed, so we will have a rewrite in workspace plugins to redirect all the traffic from {basePath}/w/{workspaceId}{osdPath*} paths to {basePath}{osdPath*} |
Apologies on the delay will check on the example implementation later. One of the biggest worries I have is that the current ecosystem is incredibly flexible. Would the second point be similar to adding a new state? That we can use For the sake of time would you be able to showcase screen shots of your implementation and playing with the application? Adding the sample data sets and navigating to each of these dashboards. Do filters properly work? Do editting and expanding work fine? Saving work fine? Workspace to workspace? State management and rendering within the application on the client side can be easy to break functionality not tracked in tests as we see with security fixes that impacted rendering. With 3, we might end up implementation support of this but then end up impacting downstream dependencies. It could also fundamentally change designs if it ends up being a breaking change that can't be backported to 2.x if it needed to be. I know some users do redirects. Technically, I could set my base path to "w" so that the app starts like "localhost:5601/w/app". But now I'm just being the devil's advocate. However, for me it seems like option 3 is a one way door and might be a slower approval and debate whereas the other options are 2 way doors that can lead to implementing 3 eventually. |
Is your feature request related to a problem? Please describe.
In Trinity project, we are gonna to introduce a new concept: Workspace as a place to organize saved objects and features. And
workspace
will be a new type of saved object which has its own id and attributes. As workspace will be a new place to separate saved objects and features, we need to storecurrent workspaceId
in a place. And this issue will used mainly to discuss the options we can take and their pros and cons.Describe the solution you'd like
Option 1: store current workspaceId into cookie or sessionStorage.
{ CURRENT_WORKSPACE_ID: {currentWorkspaceId} }
.current workspaceId
information will be missed as the workspace information is stored in a url-non-related place.Option 2: store current workspaceId into query or hash.(Use Option 4 if we choose option 2)Option 3: store current workspaceId into path(preferred)
Option 4: store current workspaceId by using data_persistence service
core.application.history
so that syncState can listen to all the needed navigationDescribe 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: