-
Notifications
You must be signed in to change notification settings - Fork 0
BA Meyer final commit #19
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
Conversation
…tern-pedia-api into ba-meyer-master
👉 View analysis in DeepCode’s Dashboard | Configure the bot👉 The DeepCode service and API will be deprecated in August, 2021. Here is the information how to migrate. Thank you for using DeepCode 🙏 ❤️ !If you are using our plugins, you might be interested in their successors: Snyk's JetBrains plugin and Snyk's VS Code plugin. |
this is used to add/remove a privilege to/from an author role for all resources
…nd don't check for privileges
…d don't check for privileges
…t check for privileges
…ix some bugs that caused exceptions
…tern-atlas-api into ba-meyer-master
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.
In general looks really good. However, I would suggest some improvements and that you run the autoformatter once again on all files.
src/main/java/io/github/patternatlas/api/entities/issue/Issue.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/patternatlas/api/entities/user/UserEntity.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/patternatlas/api/entities/user/UserEntity.java
Outdated
Show resolved
Hide resolved
|
||
import org.springframework.stereotype.Component; | ||
|
||
@Component("PC") |
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.
Shouldn't we use a more speaking name?
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 reasoning was to have a short name for it since it is used in every PreAuthorize check as for example
@PostFilter("hasResourcePermission(filterObject.id, @PC.ISSUE_READ)")
and those annotations get large pretty fast and a longer name might make the actual privilege name (i.e. ISSUE_READ) harder to grasp quickly. Should I still change it?
src/main/java/io/github/patternatlas/api/entities/user/role/Role.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/patternatlas/api/rest/model/shared/CommentModel.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/patternatlas/api/rest/model/shared/EvidenceModel.java
Show resolved
Hide resolved
src/main/java/io/github/patternatlas/api/service/CandidateServiceImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/patternatlas/api/service/IssueServiceImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/patternatlas/api/service/UserServiceImpl.java
Outdated
Show resolved
Hide resolved
old review - dockerfile has changed in the meantime
Finale PR of my BA code of the Pattern Atlas API
Related to: PatternAtlas/pattern-atlas-ui#68
and
PatternAtlas/pattern-atlas-docker#9