Skip to content

[NAE-2058] Role refactor #282

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
wants to merge 544 commits into
base: release/8.0.0
Choose a base branch
from
Open

[NAE-2058] Role refactor #282

wants to merge 544 commits into from

Conversation

Retoocs
Copy link
Contributor

@Retoocs Retoocs commented May 29, 2025

Description

Components and components-core were updated according to backend changes. No new feature introduced.

Implements NAE-2058

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?

Just manually. Tests are going to be updated in another task.

Test Configuration

Name Tested on
OS Ubuntu 24.04.1 LTS
Runtime Node 23.6.1
Dependency Manager NPM 11.0.0
Framework version Angular 19.2.2
Run parameters
Other configuration

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes have been checked, personally or remotely, with @mazarijuraj
  • I have commented my code, particularly in hard-to-understand areas
  • I have resolved all conflicts with the target branch of the PR
  • I have updated and synced my code with the target branch
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes:
    • Lint test
    • Unit tests
    • Integration tests
  • I have checked my contribution with code analysis tools:
  • I have made corresponding changes to the documentation:
    • Developer documentation
    • User Guides
    • Migration Guides

renczesstefan and others added 30 commits July 25, 2023 11:58
- corrected according to PR
# Conflicts:
#	projects/netgrif-components-core/src/lib/task-content/services/field-converter.service.ts
[NAE-1911] Autosave on text area in cooperation with button
[NAE-1497] Frontend actions
- updated changelog
- updated version
- refactor loading items on left and right side
- implement backend item sorting
 - rework of caseref to multichoice
- apply backend sorting of menu items
- change sorting icon
- reverted set of field.changed
- after discussion, found solution for checking field contextually
- modified algorithm of resolving taskref behaviour
- allow leftMenu to display items without children and custom items
- fix console error
 - rework of caseref to multichoice
 - rework of caseref to enumeration
 - rework of single task view without virtual scroll
 - fix height of single task dialog
[NAE-1915] TaskRef behaviour handling for multiple level
Nae 1904 Case ref as multichoice and enumeration
# Conflicts:
#	projects/netgrif-components/src/lib/navigation/group-navigation-component-resolver/default-components/default-case-ref-list-view/default-case-ref-list-view.component.ts
Kovy95 and others added 21 commits June 14, 2024 16:14
 - fixes of user field
 - fixes of multichoice autocomplete
# Conflicts:
#	package.json
#	projects/netgrif-components-core/package.json
#	projects/netgrif-components-core/src/lib/data-fields/file-field/abstract-file-field.component.ts
#	projects/netgrif-components/nae-theme.scss
#	projects/netgrif-components/package.json
#	projects/netgrif-components/src/lib/data-fields/button-field/button-default-field/button-default-field.component.scss
#	projects/netgrif-components/src/lib/data-fields/data-field.theme.scss
#	projects/netgrif-components/src/lib/data-fields/user-list-field/user-list-default-field/user-list-default-field.component.html
- implement grid/flex layout
- remove dataGroups
- update engine petriNets on new layouts
- update to 18
- update to angular 19 and fix problems in build
- rename user to identity
- fix login to work with backend
- remove unused interfaces: IdentityResourceSmall, NetRole, PetriNetReferenceWithPermissions, RolesAndPermissions
- rename attributes: email to username, processRoles to roles
- remove roles and permissions logic from process service
- update permissions interface to add viewDisabled property
- replace UserComparatorService with ActorComparatorService
- update user invitation and signup functionality
- update case-header to use authorId instead of author object
- remove obsolete code related to roles in UI components
- add todo comments for role management related code
- refactor ProcessRole interface and move to roles folder
- create Role base interface
- add CaseRole and ApplicationRole interfaces
- implement RbacResourceService for role management
- update nae.json with RBAC configuration
- add unit tests for RbacResourceService
- rename processRole.ts, caseRole.ts, and applicationRole.ts to use kebab-case
- rename CaseRole to CaseProcessRole
- update imports to reflect new file names
- adjust references and tests to renamed classes and files
- remove ActorResourceService and its test
- add hasRole logic to ActorService
- remove visualId header
- implement ActorService.isAdmin
- reimplement permission handling in permission.service
- fix ActorService attributes values after identity change
- introduce PermissionsWrapper as result of backend changes
- fix workflow component
- implement properties initialization for process
- fix UriNodeResource id attribute
- remove impersonation
- remove role assign component
- implement IdentityResourceService.getPublicLoggedIdentity
@Retoocs Retoocs self-assigned this May 29, 2025
@Retoocs Retoocs added the improvement New feature or request label May 29, 2025
Copy link

coderabbitai bot commented May 29, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need 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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 12, 14, 16, 18 ]
node-version: [ 14, 16, 18 ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add node 20 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants