Skip to content
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

UserDevfile API permissions #12

Closed
wants to merge 2 commits into from
Closed

UserDevfile API permissions #12

wants to merge 2 commits into from

Conversation

skabashnyuk
Copy link
Owner

What does this PR do?

UserDevfile API permissions
Add permission to eclipse-che#17009

What issues does this PR fix or reference?

eclipse-che#16981

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
@@ -453,6 +484,12 @@ private void createTestData()
organizationResourcesDistributor.capResources(
childOrganization.getId(),
singletonList(new ResourceImpl(RamResourceType.ID, 1024, RamResourceType.UNIT)));

userDevfileDao.create(devfile = TestObjectsFactory.createUserDevfile("id-dev1", "devfile1"));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose it's meant to be:

Suggested change
userDevfileDao.create(devfile = TestObjectsFactory.createUserDevfile("id-dev1", "devfile1"));
prepareCreator(user.getId());
userDevfileDao.create(devfile = TestObjectsFactory.createUserDevfile("id-dev1", "devfile1"));

CREATE INDEX che_index_userdevfile_permissions_actions_userdevfile_id ON che_userdevfile_permissions_actions (userdevfile_permissions_id);
-- constraints
ALTER TABLE che_userdevfile_permissions_actions ADD CONSTRAINT che_fk_userdevfile_permissions_actions_id FOREIGN KEY (userdevfile_permissions_id) REFERENCES che_userdevfile_permissions(id);
--------------------------------------------------------------------------------

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


-- Worker actions --------------------------------------------------------------

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's not worker

public static final String READ = "read";
public static final String DELETE = "delete";
public static final String UPDATE = "update";
public static final String DOMAIN_ID = "userDevfile";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's visible thing thought API and as we agreed - use just devfile for visible things

Suggested change
public static final String DOMAIN_ID = "userDevfile";
public static final String DOMAIN_ID = "devfile";

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
@skabashnyuk
Copy link
Owner Author

closing in favor eclipse-che#17843

1 similar comment
@skabashnyuk
Copy link
Owner Author

closing in favor eclipse-che#17843

@skabashnyuk skabashnyuk deleted the permissions2 branch October 29, 2020 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants