Commit Graph
27737 Commits
Author SHA1 Message Date
Pawan Verma 6d7c953e5f Improved: Converted assertInvoiceTotal, testInvoiceAppl and testToPayment tests from XML to Groovy.
(OFBIZ-11530)(OFBIZ-11557)(OFBIZ-11559)

Thanks, Rohit for the contribution and Jacques for the review.
2020-06-14 14:17:44 +05:30
Jacques Le Roux 26bb8f602f Documented: Adds an image and a link to the ASL2 license 2020-06-14 10:09:15 +02:00
James Yong 4bdabd825e Improved: Use Compound Widget on rest of the project (OFBIZ-11821)
Refactor for Find Request
2020-06-14 13:55:11 +08:00
James Yong 28809d71d8 Improved: Use Compound Widget on rest of the project (OFBIZ-11821)
Refactor for Find Request
2020-06-14 11:40:16 +08:00
Suraj Khurana 6d8568f036 Updated: tasks.checkstyleMain.maxErrors to 26759 (-48) 2020-06-13 15:05:46 +05:30
Suraj Khurana e797845dda Improved: Changed decimals, rounding, zero static variables names as per best practices in accounting component. (#202)
(OFBIZ-11804)
Also make them private data members of the class.
2020-06-13 15:01:11 +05:30
Suraj Khurana f85d6439aa Improved: Changed decimals, rounding, zero static variables names as per best practices in third party payment component. (#201)
(OFBIZ-11804)
Also make them private data members of the class.
2020-06-13 14:58:50 +05:30
Suraj Khurana db985ee13f Updated: tasks.checkstyleMain.maxErrors to 26807 (-38) 2020-06-13 14:49:44 +05:30
Suraj Khurana c03e27d73e Improved: Changed decimals, rounding, zero static variables names as per best practices in order component. (#196)
(OFBIZ-11804)
Also make them private data members of the class.
2020-06-13 14:26:52 +05:30
Suraj Khurana a527862961 Improved: Changed decimals, rounding, zero static variables names as per best practices. (#195)
(OFBIZ-11804)
Also make them private data members of the class.
2020-06-13 14:26:06 +05:30
Jacques Le Roux 88bda0b4dc Improved: Install a Checkstyle pre-push (on every committer machine?) (OFBIZ-11304)
Updates tasks.checkstyleMain.maxErrors to 26842
Remove a trailing space in RequestHandler I used to test the pre-push hook.

In the previous commit (c4b5f5e) I have pushed a pre-push hook rather than a
pre-commit hook. I think it makes sense. I noticed that this does not clear the
existing pre-commit hook in .git\hooks. You have to clear it by hand.

But anyway I believe we should rather use a webhook as Suggested by Samuel and
proposed by Infra. This for at least 3 reasons:
    Handles PRs and not only local commits
    Minimise the CPU usage locally
    Simplify usage for custom projects

I think it's the best solution but I'll continue the discussion on dev ML about
2020-06-13 10:09:48 +02:00
Jacques Le Roux c4b5f5ec2c Test locally <<hooks = ['pre-push': 'checkstyleMain']>> 2020-06-13 09:41:59 +02:00
Aditya Sharma 4be47732c7 Implemented: pre commit hook to check staged files with list issues (OFBIZ-11304)
* Implemented: pre commit hook to check staged files with list issues
(OFBIZ-11304)
Used git-hooks-gradle-plugin with MIT license that helps configure shared Git hooks with Gradle buildscript
https://github.com/jakemarsden/git-hooks-gradle-plugin

* Improved: used exisiting checkstyleMain to check for the voilations
(OFBIZ-11304)
checkstyleMain will only fail in case when maxErrors increases
Thank you Jacques for the suggestion

* Improved: getChangedFiles() to check all the files
(OFBIZ-11304)
Initially the method only checks for the java files, so removed the code to filter java files

* Removed: custom checkstyle gradle task
(OFBIZ-11304)
Existing checkstyleMain task fulfills the requirement


Thank you Jacques, Mathieu, Samuel, and Pierre for your valuable inputs.
2020-06-12 21:31:52 +05:30
Suraj Khurana 575defd088 Improved: Changed decimals, rounding, zero static variables names as per best practices in manufacturing component. (#200)
(OFBIZ-11804)
Also make them private data members of the class.
2020-06-12 16:35:36 +05:30
James Yong 33deb94501 Improved: Allow definition of external style sheet in multi-block html template (OFBIZ-11819)
External style sheet in html template will be extracted to layoutSettings.styleSheets when multi-block=true.
2020-06-12 14:12:45 +08:00
Jacques Le Roux ed6a6fe3d3 Fixed: plugins in common-theme/webapp/common/js is not monitored by git (OFBIZ-11745)
In .gitignore in root ofbiz directory there is plugins/

so all directory plugins are ignored

if the line is replace by /plugins/ only root directory plugins is ignored

Thanks: Olivier
2020-06-09 13:01:12 +02:00
Aditya Sharma 54307be1c2 Fixed: Check embedded Javascript libs vulnerabilities using retire.js (OFBIZ-11752)
* Fixed: Check embedded Javascript libs vulnerabilities using retire.js
(OFBIZ-11752)

Upgraded jQuery to 3.5.2 and jQuery migrate to 3.3.0 to vulnerabilities of medium severity
Regex in its jQuery.htmlPrefilter sometimes may introduce XSS; https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/

* Fixed: console error TypeError: document is undefined
(OFBIZ-11752)

As the document object was not passed to the IFFE call for the FORMALIZE function, it gives console error for the missing document object when accessed
2020-06-09 15:29:09 +05:30
holivier d20bd4510c Documented: remove docbook help files for accounting
(OFBIZ-11587)

In the global Help Docbook index tree, remove all points about
accounting and add a short page with a link to the new help
2020-06-09 09:39:51 +02:00
Suraj Khurana a6cf5aafda Fixed: Unnecessary iterations and setting inventory for all productFacilities in setLastInventoryCount.
(OFBIZ-11796)

Instead of updating all product facilities records on one inventory item change, we should be changing only specific product facility record for that the inventory item belongs to. Thanks Jacques, Pierre, Pawan and Arun for the review.
2020-06-08 18:00:37 +05:30
Priya SharmaandPriya Sharma 5c5af78ffe [Improved]: Overloaded groovy utility method to handle error logging with only throwable object as parameter. (OFBIZ-11762) (#194)
Co-authored-by: Priya Sharma <priya.sharma@example.com>
2020-06-08 13:35:15 +02:00
Jacques Le Roux f41ddb0f0e Improved: Removes plugins as a submodule (OFBIZ-8459)
This was wrongly put in with several commits done for OFBIZ-8459 where plugins
https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=b39c179
https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=3a4d22
https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=bda6192
2020-06-07 16:44:41 +02:00
James Yong f21dbd6d74 Improved: multi-block attribute for html-template tag (OFBIZ-11686)
Add CSRF token support for 'getJs' request uri.
2020-06-07 14:33:16 +08:00
Suraj Khurana e11164cbe5 Updated: tasks.checkstyleMain.maxErrors to 26845 (-21) 2020-06-07 11:03:05 +05:30
Suraj Khurana c00e61aa18 Improved: Enforce noninstantiability to LoginWorker class. (#175)
(OFBIZ-11747)

Made class as final, added private constructor and made static variables as private.
2020-06-07 10:55:06 +05:30
holivier 492511c1a0 Documented: remove docbook help files for commonext
(OFBIZ-11587)

all files have been migrated to asciidoc format and help link now point
to the html file generated from the asciidoc files
2020-06-06 14:35:46 +02:00
holivier ecd2a088e1 Documented: remove docbook help files for accounting
(OFBIZ-11587)

all files have been migrated to asciidoc format and help link now point
to the html file generated from the asciidoc files
2020-06-06 14:32:28 +02:00
holivier 2d0be47cdf Documented: Help link using asciidoc files via generated html
(OFBIZ-11693)

Migrate CommonExtHelData.xml to added some <set field="helpAnchor" to
the correct screens

Now in commonext component only asciidoc documents are used, help link
area now link to userDocUri
(ci.apache.org/projects/ofbiz/site/trunk/ofbizdoc as default value in
general.property)
2020-06-06 14:26:33 +02:00
James Yong 4e563a67ff Fixed: showHelp not working (OFBIZ-11803)
Fixed Navigation tree is not displayed in showHelp page.
2020-06-06 19:49:26 +08:00
James Yong 5e63e81d08 Improved: Remove unused location ${parameters.quoteDecoratorLocation} (OFBIZ-11802)
Thanks: Jacques for review
2020-06-06 18:34:08 +08:00
Priya SharmaandPriya Sharma 15aec7e8f7 WIP: [Improved]: Use GroovyBaseScript's logging utility methods instead of using Debug (OFBIZ-11762) (#185)
* [Improved]: Use GroovyBaseScript's logging utility methods instead of using Debug
- Replaced the debug.log methods with the respective groovy utility method
- Enhanced the GroovyBaseScript to entertain the fetch the current class name as the module name for logging
- Overloaded the logError method to entertain throwbale object for better logging
- Removed unused import statements and module variables.

(OFBIZ-11762)

* [Removed]: Extra line spaces. (OFBIZ-11762)

* [Revert]: Unwanted changes. (OFBIZ-11762)

* [Added] Same changes to these files. (OFBIZ-11762)

Co-authored-by: Priya Sharma <priya.sharma@example.com>
2020-06-06 10:17:23 +02:00
James Yong e3f6d1547f Improved: Headerize external script in multi-block html template (OFBIZ-11741)
Fix regression in scrumtests that resulted in NullPointerException.
2020-06-06 14:28:32 +08:00
Suraj Khurana 846e5f0ded Improved: Enforce noninstantiability to GroovyUtil Class. (#180)
(OFBIZ-11778)

Made class as final, moved default constructor and renamed private data members as per naming convention best practices.
2020-06-06 10:03:33 +05:30
Suraj Khurana 924df4b217 Improved: Enforce noninstantiability to ConfigXMLReader Class (#178)
(OFBIZ-11746)

Made class as final, added private constructor and corrected private data members as per naming convention.
2020-06-06 10:01:55 +05:30
James Yong 347ea63479 Improved: Headerize external script in multi-block html template (OFBIZ-11741)
Improve function for adding links to layoutSettings
2020-06-06 10:23:41 +08:00
holivier 211540a966 Documented: Help link using asciidoc files via generated html
(OFBIZ-11693)

Migrate AccountingHelData.xml to added some <set field="helpAnchor" to
the correct screens

Now in accounting component only asciidoc documents are used, help link
area now link to userDocUri
(ci.apache.org/projects/ofbiz/site/trunk/ofbizdoc as default value in
general.property)
2020-06-05 15:15:21 +02:00
Suraj Khurana a2186baaed Updated: tasks.checkstyleMain.maxErrors to 26866 (-30) 2020-06-05 13:21:30 +05:30
Suraj Khurana 73b15e9867 Improved: Enforce noninstantiability to FinAccountHelper Class. (#171)
(OFBIZ-11723)

Made class as final, added private constructor, also made data members as private, defined getter methods and changed related occurrences.
2020-06-05 13:13:58 +05:30
holivier 192059e3da Improvement: Help link using asciidoc files via generated html
(OFBIZ-11693)

Change release for all asciidoc files, now there area 3 publish site,
one per release
* site/trunk
* site/next   currently for the 18.12
* site/stable currently for the 17.12
2020-06-04 17:56:54 +02:00
holivier d79d7c50b8 Improvement: Help link using asciidoc files via generated html (OFBIZ-11693)
1. Add a general property: userDocUri containing uri for
ofbiz.apache.org html user-documentation generated by Buildbot
2. in each theme, add a test on helpAnchor field, if it's define help
link is now on ${userDocUri}#${helpAnchor}
  * if userDocUri is not defined, the general property is used
2020-06-04 17:42:23 +02:00
Suraj Khurana a5fc642a48 Updated: tasks.checkstyleMain.maxErrors to 26896 (-16) 2020-06-04 14:53:11 +05:30
Suraj Khurana 9ade9d776b Improved: Enforce noninstantiability to BillingAccountWorker Class. (#167)
(OFBIZ-11721)
Made class as final, added private constructor, changed data members to private and corrected names as per naming convention.
2020-06-04 14:41:31 +05:30
Suraj Khurana e92becb0fd Improved: Enforce noninstantiability to ServiceGroupReader Class. (#177)
(OFBIZ-11750)
Made class as final, added private constructor and corrected private data member name as per naming convention.
2020-06-04 14:38:22 +05:30
Suraj Khurana af787274ce Updated: tasks.checkstyleMain.maxErrors to 26902 (-6) 2020-06-03 16:24:14 +05:30
Suraj Khurana 65c235704c Improved: Enforce noninstantiability to JobUtil Class. (#176)
(OFBIZ-11749)
Made class as final and added private constructor.
2020-06-03 16:08:49 +05:30
Suraj Khurana 9423bfdcc5 Improved: Enforce noninstantiability to ExpressionUiHelper Class. (#173)
(OFBIZ-11748)

Made class as final, added private constructor and corrected private data member naming convention.
2020-06-03 16:05:30 +05:30
Pawan Verma d106b91dd0 Improved: UI improvement on View Order page(OFBIZ-10985)
Thanks, Rashi for report and Aishwary for initial patch and garima and jacques for the review.
2020-06-02 17:34:29 +05:30
Pawan Verma 8cac7f1fc5 Fixed: startup-service does not work without runtime-data-id(OFBIZ-11668) 2020-06-02 17:25:16 +05:30
Pawan Verma 281c278308 Fixed: Overview of shipments shows links to edit shipment it should point to viewshipment(OFBIZ-11787)
Thanks: Pierre for your contribution.
2020-06-02 17:15:28 +05:30
Pawan Verma 30ee142864 Improved: Improvement in Purchases by Product Report(OFBIZ-11733)
The status description should be used in report instead of OFBiz ID.

Thanks: Chandan Khandelwal for your contribution.
2020-06-02 16:57:29 +05:30
Pawan Verma c9b7c576a9 Fixed: UI issue in payment lookup(OFBIZ-9476)
Thanks: Pallavi for report and patch and pierre from the review.
2020-06-02 16:37:10 +05:30