-
Notifications
You must be signed in to change notification settings - Fork 6
[NAE-2151] Process role global flag on user info #328
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
Introduce a new boolean attribute 'global' to the ProcessRole class. This change ensures the role's global status is properly represented and initialized based on the underlying role's properties.
WalkthroughA new boolean field named Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
nae-spring-core-adapter/src/main/java/com/netgrif/application/engine/adapter/spring/petrinet/web/responsebodies/ProcessRole.java (1)
25-25
: Missing field-level documentationAll other fields are undocumented as well, but adding a short Javadoc describing what “global” means in the context of a process role would improve self-service discoverability for API consumers.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
nae-spring-core-adapter/src/main/java/com/netgrif/application/engine/adapter/spring/petrinet/web/responsebodies/ProcessRole.java
(2 hunks)
🔇 Additional comments (2)
nae-spring-core-adapter/src/main/java/com/netgrif/application/engine/adapter/spring/petrinet/web/responsebodies/ProcessRole.java (2)
25-25
: Validate downstream contract changes before mergingThe new
global
field expands the public JSON DTO surface. If any strictly-typed consumers (e.g. Angular models, generated TypeScript/Java clients, stored procedures reading JSON) rely on an explicit schema, they will start receiving an unexpected property. Confirm that:
- Client code tolerates the additional attribute, or
- Proper versioning / feature flags are in place.
Skipping this check can break deserialization or cause silent logic errors on the client side.
37-38
: Impact on Lombok-generatedequals
/hashCode
@Data
includes the newglobal
property inequals()
andhashCode()
. If objects of this DTO are cached (e.g. as map keys) or compared across versions, previously equal instances may now differ, potentially causing subtle cache misses or collection behaviour changes. Verify that this side effect is acceptable.
The base branch was changed.
Description
Implements NAE-2151
Dependencies
No new dependencies were introduced
Third party dependencies
No new dependencies were introduced
Blocking Pull requests
There are no dependencies on other PR
How Has Been This Tested?
This was tested manually.
Test Configuration
Checklist:
Summary by CodeRabbit