Skip to content
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

[NAE-2051] Implement configurable view in menu items #286

Merged
merged 9 commits into from
Feb 18, 2025

Conversation

Retoocs
Copy link
Contributor

@Retoocs Retoocs commented Feb 12, 2025

Description

Reworked backend solution for menu items. Now you can configure menu item with custom configuration process. New configurations can be added in the future.

Implements NAE-2051

Dependencies

No new dependencies were introduced

Third party dependencies

No new dependencies were introduced

Blocking Pull requests

Depends on #283

How Has Been This Tested?

Manually and by unit tests

Test Configuration

Name Tested on
OS Ubuntu 24.04.1 LTS
Runtime Java 11
Dependency Manager Maven 3.6.3
Framework version Spring Boot 2.7.8
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 and @Kovy95
  • 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

- implement auto-select for menu items
…temoch

- fix ActionDelegate.execute method
- update ActionDelegate menu item methods
- import configuration nets in FilterRunner
- implement MenuItemService with new or updated domain models
- move menu item domain models to menu package
- implement MenuItemView enum
- implement MenuItemUtils
- rename preference_item to menu_item
- add tabbed_case_view_configuration and tabbed_task_view_configuration nets
- update MenuItemApiTest according to changes
- remove redundant MenuItemBody attribute
- update menu_item and tabbed_case_view_configuration dataGroups
- update MenuItemService find methods
- fix MenuItemApiTest.testDuplicateMenuItem
@Retoocs Retoocs added improvement A change that improves on an existing feature breaking change Fix or feature that would cause existing functionality doesn't work as expected labels Feb 12, 2025
@Retoocs Retoocs self-assigned this Feb 12, 2025
private String menuIcon = "filter_none";
private I18nString menuName;
private Map<String, I18nString> allowedRoles;
private Map<String, I18nString> bannedRoles;
Copy link
Contributor

Choose a reason for hiding this comment

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

Both role collections are missing initialization in constructors, possible source of NullPointerException.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have just added the initialization

- add map initialization in MenuItemBody
@Retoocs Retoocs requested a review from mazarijuraj February 17, 2025 10:22
@mazarijuraj mazarijuraj merged commit 438bb1d into release/6.5.0 Feb 18, 2025
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Fix or feature that would cause existing functionality doesn't work as expected improvement A change that improves on an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants