-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Make devfile feature to be overridden #14117
Comments
@skabashnyuk @ibuziuk are you missing some details on this issue ? |
I personally do not understand the last part of the flow:
In general, the use-case is really specific and I personally do not see it as part of the upstream.
Similar functionality can be achieved by using the combination of:
|
@ibuziuk , @skabashnyuk . Thank you for suggestions. I shall try my best to clarify :-)
i'm thinking of a system, using which, several users can: Login->Create or Work on created projects (using custom editor & toolset)->Save their projects->Logout->Come back later and ... (cycle repeats) None of the users share the projects projects that they had created and they all develop independently. So, each user would have a set of projects that he/she created (needs mapping between user and projects he/she created). I'm open to suggestions on where/how the user project(s) can be stored... Also, unlike che dashboard that supports multiple devfiles, the system that i'm thinking of would support only one devfile (with editor & tools fixed) and a workspace would be created using this devfile automatically when user logs in. (so, the user would not see any devfile being involved). |
@svkr2k did you tried to play with |
@skabashnyuk, I havent tried this yet. i shall try this soon. |
Updated usage scenario (added no.4) to the original comment. |
@svkr2k |
Thank you @skabashnyuk, Are usecases 1-3 already supported in 7.4.0 ? |
|
Usage Scenario
Please consider the following usage scenario for eclipse/che:
1.Every user will need one workspace - it would be created when the user logs in and gets destroyed when the user logs-out/inactive.
2.If there are 50 users logged in, there would be 50 workspaces (one per user). All these workspaces shall be created using the same devfile (i.e., editor/tools are same)
3.but projects that the individual users see would be different - the projects shall come from database based on user login.
4.Guest users can also open the ide without logging in (and login later after opening the ide)
The solution I'd like
I shall set CHE_LIMITS_USER_WORKSPACES_RUN_COUNT to '1' and this would allow having only one running workspace per user => This, I believe, would result in an error (saying that only one workspace can be opened per user).
In order to achieve the above behavior, the https://github.com/eclipse/che/tree/master/wsmaster/che-core-api-workspace/src/main/java/org/eclipse/che/api/workspace/server/devfile needs to be modified. But, I believe that the above devfile feature is not meant to be overridden.
Alternatives
None. I would prefer it to be overridden instead of forking the entire codebase and modify the behavior.
Additional context
Thank you, @ibuziuk for advise.
The text was updated successfully, but these errors were encountered: