-
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
REST APIs that allows saving/edit/delete/search/share devfiles #17843
Conversation
af98beb
to
65bf783
Compare
5ff1704
to
106fefa
Compare
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
d8044c5
to
0d1fbe6
Compare
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) ℹ️ |
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) ℹ️ |
} | ||
|
||
@POST | ||
@Consumes({APPLICATION_JSON}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not accept yaml here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see no use-case for that. Do you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know. Hard to imagine all use-cases. I guess we can add it in the future, if need raises
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
@sparkoo @mshaposhnik @metlos @sleshchenko I think I've addressed your comments. Noticeable commits: |
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) ℹ️ |
[crw-ci-test] |
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, I did not manage to redo the review in detail but I believe this PR should be good to merge once other reviewers approve it. So, feel free to merge without my approval )
...g/eclipse/che/multiuser/permission/devfile/server/UserDevfileCreatorPermissionsProvider.java
Outdated
Show resolved
Hide resolved
[ci-build] |
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
[ci-build] |
ci-build |
ci-build |
[ci-build] |
2 similar comments
[ci-build] |
[ci-build] |
What does this PR do?
This is a set of REST APIs that allows saving/edit/delete/search/share devfiles.
The code is marked as 'Preview Beta'. We expect some changes in future releases.
Code can be reviewed commit by commit
Model
Main model object.
you can see such parts
Such rest methods was implemented:
POST
methods. Onedevfile/devfile/
is used to create persistent devfile from yaml. The name would be generated randomly.GET /devfile
left untouched. It returns devfile 1.0 schema. MethodGET /devfile/list
is used to enumerate and search for devfiles.TODO for Phase 2
@Path("/namespace/{namespace:.*}")
Complete remaining after merging 17843 PR #17911@Path("/{key:.*}")
. Composite key can be just devfile I D or in the namespace:devfile_name form, where namespace is optional (e.g :devfile_name is valid key too. namespace/devfile_name form, where namespace can contain '/' character. Complete remaining after merging 17843 PR #17911Screenshot/screencast of this PR
What issues does this PR fix or reference?
#16981
How to test this PR?
quay.io/skabashn/che-server:che16981
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.