-
Notifications
You must be signed in to change notification settings - Fork 149
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
[ACS-3887] Rule set listing, including linked & inherited rules #2780
[ACS-3887] Rule set listing, including linked & inherited rules #2780
Conversation
FolderRuleSetsService, | ||
FolderRulesService, | ||
{ provide: Store, useValue: { dispatch: () => {} } }, | ||
// { provide: FolderRulesService, useValue: folderRulesServiceSpy }, |
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.
Unremoved commented code
let contentApiService: ContentApiService; | ||
|
||
let callApiSpy: jasmine.Spy; | ||
// let loadRulesSpy: jasmine.Spy; |
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.
Same here for comment
if (nodeId) { | ||
return this.contentApi.getNode(nodeId).pipe( | ||
catchError((error) => { | ||
if (error.status === 404) { |
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.
Do we have some file with constants that we use across whole app? If not it may be worth to consider creating one for example for storing HTTP status codes as constants instead of using just raw numbers
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.
As far as I know, no, but HTTP codes are pretty well known so perhaps it's not as crucial 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.
Yeah don't worry this is just an idea for the future
77fed3d
to
640d03f
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.
Good job!
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
https://alfresco.atlassian.net/browse/ACS-3887
What is the new behaviour?
All rule sets for a folder are listed.
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: