-
Notifications
You must be signed in to change notification settings - Fork 4
[NAE-2286] Group API #317
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
Open
renczesstefan
wants to merge
4
commits into
release/7.0.0-rev10
Choose a base branch
from
NAE-2286
base: release/7.0.0-rev10
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[NAE-2286] Group API #317
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
24f593b
[NAE-2286] Group API
renczesstefan c85b7e4
Update user model tests to reflect changes in structure
renczesstefan b2a42cd
Add `group-view` component configuration to nae.json
renczesstefan 6c8a47a
Remove GroupViewComponent and its references
renczesstefan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
projects/nae-example-app/src/app/doc/active-group/active-group.component.html
This file was deleted.
Oops, something went wrong.
Empty file.
24 changes: 0 additions & 24 deletions
24
projects/nae-example-app/src/app/doc/active-group/active-group.component.spec.ts
This file was deleted.
Oops, something went wrong.
62 changes: 0 additions & 62 deletions
62
projects/nae-example-app/src/app/doc/active-group/active-group.component.ts
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
projects/nae-example-app/src/app/doc/group-view/group-view.component.html
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
projects/nae-example-app/src/app/doc/group-view/group-view.component.scss
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
projects/nae-example-app/src/app/doc/group-view/group-view.component.spec.ts
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
projects/nae-example-app/src/app/doc/group-view/group-view.component.ts
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: netgrif/components
Length of output: 12371
🏁 Script executed:
# Find and examine the User class definition fd User.ts projects/netgrif-components-core/src/lib/authentication/models/Repository: netgrif/components
Length of output: 44
🏁 Script executed:
Repository: netgrif/components
Length of output: 170
🏁 Script executed:
# Get complete view of user.transformer.ts to see full context cat -n projects/netgrif-components-core/src/lib/authentication/models/user.transformer.tsRepository: netgrif/components
Length of output: 1361
🏁 Script executed:
# Find the User model file fd -e ts User projects/netgrif-components-core/src/lib/user/models/Repository: netgrif/components
Length of output: 44
🏁 Script executed:
Repository: netgrif/components
Length of output: 771
🏁 Script executed:
# Get the User class definition cat -n projects/netgrif-components-core/src/lib/user/models/user.tsRepository: netgrif/components
Length of output: 2050
Potential runtime error:
groupsmay be undefined.The User class defines
groupsas an optional parameter (line 20 of user.ts:public groups?: Group[]), which means it can beundefined. While the emptyUser initializes it as an empty array, the UserTransformer passesuser.groupsdirectly from the API response without guarantee it's defined.The code on line 40 calls
.map()directly without null-checking:This will throw a runtime error if
groupsis undefined. Add a null-coalescing operator or defensive check:🤖 Prompt for AI Agents