-
Notifications
You must be signed in to change notification settings - Fork 0
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
LPS-174018 Get the proper parameter #347
base: master
Are you sure you want to change the base?
Conversation
To conserve resources, the PR Tester does not automatically run for every pull. If your code changes were already tested in another pull, reference that pull in this pull so the test results can be analyzed. If your pull was never tested, comment "ci:test" to run the PR Tester for this pull. |
…ayoutTabScreenNavigationEntry
…try for each ObjectLayoutTab
1eb1962
to
8bb683f
Compare
9949af3
to
9a5f60a
Compare
} | ||
|
||
@Override | ||
public String getScreenNavigationKey() { |
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.
@MarinhoFeliphe This value must be unique. We should follow some pattern like {className}#{LayoutERC} or {className}#{companyId}#{LayoutERC}.
P.S.: We should check if the tracker of this is scoped by company or not. I don't think so.
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.
@MarinhoFeliphe can you open a thread with he FI Team so we can ask about scoping issues (regarding company).
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.
we don't have ERC for ObjectLayout yet, may I use layoutId?
can you open a thread with he FI Team ...
sure!
|
||
@Override | ||
public String getEntryKey() { | ||
return String.valueOf(_objectLayoutTab.getObjectLayoutTabId()); |
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.
@MarinhoFeliphe here we can put the same pattern I suggested above
@@ -389,6 +405,25 @@ private ObjectLayoutTab _addObjectLayoutTab( | |||
user, objectDefinitionId, | |||
objectLayoutTab.getObjectLayoutTabId(), objectLayoutBoxes)); | |||
|
|||
_serviceRegistrationsMap.put( |
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.
@MarinhoFeliphe hm... Instead of registering two components, we can follow the pattern we have for object definition admin screens.
We can have a Base class for the ScreenEntry and extend It, implementing also the ScreenNavigationCategory. That way, we register just one class. And then you can override the getScreenNavigationKey and put the ObjectDefinition className + companyId + ERC like {className#companyId#ERC}
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.
Agreed!
…igationCategories
…ject definition in object layout
…ryKey and screenNavigationKey
…is point because won't affect the order of the tabs once it won't apply the reverse order in ScreenNavigationRegistry.activate method
…object layout tab
… and deleteObjectLayoutObjectLayoutTabs methods
No description provided.