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

Improved: createPlugin - improve process and templates (OFBIZ-13048) #778

Closed
wants to merge 5 commits into from

Conversation

PierreSmits
Copy link
Member

With the parameterization of the menu location, improvements to the createPlugin templates are warranted.

added:
StaticProperties.properties template
SystemPropertyData.xml template

modified: build.gradle

  • renamed 'minilang' folder to 'scripts', as minilang functions (XML) are deprecated in favour of groovy functions
  • added process to generate plugin.properties file from StaticProperties.properties template
  • added process to generate pluginSystemPropertyData.xml file from SystemPropertyData.xml template

modified: web.xml template

  • context-param for mainMenuLocation
  • improved legibility of other context-params

modified: ofbiz-component.xml template

  • added entity-resource loader for pluginSystemProperties.xml
  • addd

modified: CommonScreens.xml template

  • changed menu location
  • added decorator-section 'pre-body', having reference to MainActionMenu and decoration-section-include

modified: Menus.xml template

  • added MainActionMenu

modified: controller.xml template

  • added request-map and view-map for 'New' menu-item in MainActionMenu (Menus.xml template)

modified: Screens.xml template

  • added pre-body decorator section too main screen
  • added 'New' screen

modified: Forms.xml template

  • added 'New' form

modified: UiLabels.xml template

  • remove 'it' and 'zh*'' translations
  • updated 'en' translation for pluginCompanyName

modified: SecurityPermissionsSeedData.xml

  • reordering SecurityPermission record definitions

modified: SecurityGroupDemoData.xml

  • changed permission of BIZADMIN groupId

PierreSmits and others added 4 commits April 19, 2024 13:32
With the parameterization of the menu location, improvements to the createPlugin templates are warranted.

added:
StaticProperties.properties template
SystemPropertyData.xml template

modified: build.gradle
- renamed 'minilang' folder to 'scripts', as minilang functions (XML) are deprecated in favour of groovy functions
- added process to generate plugin.properties file from StaticProperties.properties template
- added process to generate pluginSystemPropertyData.xml file from SystemPropertyData.xml template

modified: web.xml template
- context-param for mainMenuLocation
- improved legibility of other context-params

modified: ofbiz-component.xml template
- added entity-resource loader for pluginSystemProperties.xml
- addd

modified: CommonScreens.xml template
- changed menu location
- added decorator-section 'pre-body', having reference to MainActionMenu and decoration-section-include

modified: Menus.xml template
- added MainActionMenu

modified: controller.xml template
- added request-map and view-map for 'New' menu-item in MainActionMenu (Menus.xml template)

modified: Screens.xml template
- added pre-body decorator section too main screen
- added 'New' screen

modified: Forms.xml template
- added 'New' form

modified: UiLabels.xml template
- remove 'it' and 'zh*'' translations
- updated 'en' translation for pluginCompanyName

modified: SecurityPermissionsSeedData.xml
- reordering SecurityPermissioon record definitions

modified: SecurityGroupDemoData.xml
- changed permission of BIZADMIN groupId
Adds a missing last empty line (this is more a convention, though sometimes useful when merging or patching)
Adds a missing last empty line (this is more a convention, though sometimes useful when merging or patching)
Adds a missing last empty line (this is more a convention, though sometimes useful when merging or patching)
Copy link

sonarcloud bot commented Apr 20, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@JacquesLeRoux
Copy link
Contributor

Hi @PierreSmits,

This is a nice initiative, but why removing other languages than English in framework/resources/templates/UiLabels.xml? They may help some people.

@PierreSmits
Copy link
Member Author

PierreSmits commented Apr 20, 2024

Hi @JacquesLeRoux,

Thank you for your time to evaluate these changes, and your question.

As you can see in 5c2cdbe in the UiLabels template I have changed the English description of

  • @component-resource-name@CompanyName, and
  • @component-resource-name@CompanySubtitle.

As with these two improvements the translations in the other languages became void, I decided that, with English being the lingua franca for software developers in general and for contributors of ASF projects particularly, it would be better to remove the non-English translations of the other labels too.

@mbrohl
Copy link
Contributor

mbrohl commented Apr 20, 2024

Please use correct commit according to the template.

Scripts is deprecated also, Groovy files are now in src.

@JacquesLeRoux
Copy link
Contributor

Thanks @PierreSmits for your explanation

To avoid conflicts, this has been handled by OFBIZ-13095
Copy link

sonarcloud bot commented May 20, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@PierreSmits
Copy link
Member Author

Hi @JacquesLeRoux ,

Your latest change did to resolve the conflict.

For an explanation on choices made, see description of the ticket.

@JacquesLeRoux
Copy link
Contributor

Hi Pierre,

The 1st thing to do is to address Michael's comment:

Scripts is deprecated also, Groovy files are now in src.

Then update your branch by uploading from trunk the changes made with OFBIZ-13094. I thought that by deleting UiLabels.xml in this PR it would resolve the conflicts when it actually much complicated them.

@JacquesLeRoux
Copy link
Contributor

Michael's comment has been already addressed with OFBIZ-12813

@JacquesLeRoux
Copy link
Contributor

Note: I was started on this by trying to find documentation about createPlugin Gradle task. I did not find any but the explanation of the task itself. I have though to read 8 threads where I'll maybe get some ideas.

@PierreSmits PierreSmits deleted the OFBIZ-13048 branch May 27, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants