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

LPS-174018 Get the proper parameter #347

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

MarinhoFeliphe
Copy link

No description provided.

@liferay-continuous-integration
Copy link
Collaborator

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.

}

@Override
public String getScreenNavigationKey() {
Copy link
Owner

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.

Copy link
Owner

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

Copy link
Author

Choose a reason for hiding this comment

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

@gabrielwas,

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());
Copy link
Owner

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(
Copy link
Owner

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}

Copy link
Author

Choose a reason for hiding this comment

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

Agreed!

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

Successfully merging this pull request may close these issues.

3 participants