Skip to content

Conversation

lqwert
Copy link
Contributor

@lqwert lqwert commented Oct 19, 2020

Finale PR of my BA code of the Pattern Atlas API

Related to: PatternAtlas/pattern-atlas-ui#68
and
PatternAtlas/pattern-atlas-docker#9

@lqwert lqwert requested a review from manuwei October 19, 2020 15:36
@ghost
Copy link

ghost commented Jul 15, 2021

Congratulations 🎉. DeepCode analyzed your code in 3.795 seconds and we found no issues. Enjoy a moment of no bugs ☀️.

👉 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.

mhinkie and others added 24 commits April 4, 2022 15:22
this is used to add/remove a privilege to/from an author role for all resources
Copy link
Member

@lharzenetter lharzenetter left a 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.


import org.springframework.stereotype.Component;

@Component("PC")
Copy link
Member

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?

Copy link
Contributor

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?

@mhinkie mhinkie dismissed PhilWun’s stale review May 25, 2022 13:28

old review - dockerfile has changed in the meantime

@mhinkie mhinkie merged commit cb13b7d into master May 27, 2022
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.

6 participants