-
Notifications
You must be signed in to change notification settings - Fork 120
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
Provide ability to manage public stacks for codenvy admins #2254
Conversation
@@ -507,5 +505,7 @@ protected void configure() { | |||
bind(org.eclipse.che.api.agent.server.filters.AddExecAgentInStackFilter.class); | |||
|
|||
bind(org.eclipse.che.api.workspace.server.event.WorkspaceJsonRpcMessenger.class).asEagerSingleton(); | |||
|
|||
bind(DomainsPermissionsCheckers.class); |
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.
This binding is redundant.
|
||
/** | ||
* @author Anton Korneta | ||
*/ |
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.
test
* @author Anton Korneta | ||
*/ | ||
@Singleton | ||
public class StackDomainSetPermissionsChecker implements SetPermissionsChecker { |
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.
test
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.
done
</goals> | ||
<configuration> | ||
<target> | ||
<unzip dest="${project.build.directory}/stacks/" src="${org.eclipse.che.core:che-core-ide-stacks:jar}" /> |
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.
remove
d637f2c
to
8819c59
Compare
f5d8ae1
to
3571119
Compare
} | ||
permissionsDao.store(new RecipePermissionsImpl("*", recipe.getId(), singletonList("search"))); | ||
} catch (ServerException | ConflictException ex) { | ||
LOG.error("Failed to store recipe {} ", recipe.getId(), ex.getMessage()); |
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.
two extra arguments but one {}
in the message
9d4e264
to
00085c8
Compare
ebee849
to
ac87b84
Compare
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.
the code is ok
For the same reasons than on eclipse-che/che#5234 . I'm -1 with the update policy here as well. |
307c31f
to
3baddfd
Compare
Updated doc + added property |
3baddfd
to
bc010bb
Compare
What does this PR do?
Rewrite public stacks and recipes loading in accordance with che.
Provides a mechanism for extending the default permission filter logic on the domain-level for permission service.
Moves
stacks.json
into resource instead of configuration folder.What issues does this PR fix or reference?
#2208
Changelog
Updated default stack loading policy, provides ability to add/delete predefined stacks for admins using stack API.
Release Notes
Default stacks loading policy was changed, now stacks loaded once on database initialization.
Those who use previous(load per server start) strategy may continue using it by setting
CODENVY_PREDEFINED_STACKS_RELOAD_ON_START
property value totrue
.Added ability to add/delete predefined stacks for admin user through stack API.