Pierre Smits suggested: "Another workaround is to copy SeoConfig.xml to the config folder of a component in the application stack, e.g. commonext"
jleroux: Good idea Pierre, actually the SEO is not only for ecommerce, and could also be used by hot-deploy (or later plugins) ecommerce alike or of other types components/plugins. But we were once again wrong when moving SeoConfig.xml to e-commerce at r1752863 for OFBIZ-6125. I applied your patch when I should have moved the file myself locally and committed directly. So reverted r1752863 at r1755032 and here is the right move. Since SeoConfig.xml is located at init by UtilURL.fromResource() its location is not a pb.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1755034 13f79535-47bb-0310-9956-ffa450edef68
When running loadTenant task without passing the tenantId
property then gradle would run the task to full and only
complain of missing property at the end.
This fix ensures that the task fails before running anything
if the tenantId is missing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754773 13f79535-47bb-0310-9956-ffa450edef68
In the following issue : OFBIZ-7922, there was a problem with the pagination of the Marketing Campaign list. Because there is not enough data in the demo, it was more difficult to find this bug.
To help the testing of this component, this adds some Marketing Campaign in the demo data (at least enough to unlock a second page of search).
jleroux: Actually you don't even have to add more data. The size of the list is defined by this property in widget.properties
# Default number of items to be displayed per page in a list form
widget.form.defaultViewSize=20
Locally you can change that by hand, clear caches, et voilà.
Now if we would like to have the same on demos we would need to have this property in the DB and use EntityUtilProperties.getPropertyNumber() to retrieve where it's done at the moment. Unfortunately EntityUtilProperties.getPropertyNumber() simply uses for the moment UtilProperties.getPropertyNumber() so it means more work than adding those data. But once done, it's for all (though you would still have to replace the calls where UtilProperties is used instead of EntityUtilProperties. I don't remember if we have an umbrella task ans subtasks for that. It seems though a long term work, because we have much properties likely to benefit from this possibility.
Another KISS option: maybe simply testing locally is sufficient ;)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754657 13f79535-47bb-0310-9956-ffa450edef68
I put it all in this new version of the patch :
Changed UtilValidate test to Groovy Truth test on string
Changed the big first test by a test on "noConditionFind"
Added some comments
Harmonization of the "if tests"
Removed the uiLabelMap.CommonAny in the file (the two others belonged to another form --> "FindTotalBacklog")
Added a "noConditionFind" field to this form --> "FindTotalBacklog"
jleroux: I removed all remaining tabs in FindProductBacklogItem.groovy
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754656 13f79535-47bb-0310-9956-ffa450edef68
- Convert many compile dependencies to runtime dependencies in Gradle
- Move dependencies from framework to specialpurpose
(only one in example component)
- put a comment above dependencies which we think should be removed
completely subject to further testing and confirmation from the
community.
After investigating the libs we realized that most of the dependencies
in OFBiz are runtime rather than compile time. Furthermore, we also
suspect that many of the runtime dependencies are not needed, however
further testing is needed before we can confirm and remove them from
build.gradle
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754640 13f79535-47bb-0310-9956-ffa450edef68
This is taking too long, and we need to find a way to have it loaded only when needed. At least it works and is the right solution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754524 13f79535-47bb-0310-9956-ffa450edef68
This is so far a much better solution than what I proposed. We will have though to see how to add entries in the equivalent of the suppress.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754508 13f79535-47bb-0310-9956-ffa450edef68
Apply the following:
- remove the testlist command from options available in OFBiz server
- Delete the TestListContainer.java which implement the behavior
- Update the Config file to ignore properties related to that command
- Delete the properties file related to the command.
This has reference to the above JIRA and the below discussion
thread in which the community agreed to remove the testlist
server command from OFBiz. This command is an old and deprecated
command that used to create an ant script which iterates over all
test suites and execute them consecutively. It is both not-needed
and also deprecated given its dependence on Ant.
The discussion thread:
http://ofbiz.markmail.org/message/r64igaf6ihvpolaa
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754507 13f79535-47bb-0310-9956-ffa450edef68
Most is done already. Test pass but testFopMacroLibrary but I don't see how it could be related to these changes, could be a quirk on Windows, BuilBot will tell us. Anyway, I will later double-check to be sure, also to see if I did not miss anything else.
I have voluntarily left 2 or 3 moot points
I was unable to remove possible POS references in <property key="FieldDescription.ProductStore.isImmediatelyFulfilled"> for certain language I'm unable to read.
I have to check if we should keep or not this code snippet
<!-- if inventory info is not available for all of the products, then don't do the issuance, ie there has to be at least SOME inventory info in the database to facilitate inventory-less POS terminals -->
<entity-count entity-name="InventoryItem" count-field="iiCount">
<condition-expr field-name="facilityId" operator="equals" from-field="orderHeader.originFacilityId"/>
</entity-count>
I simply commented out twice this snippet in InvoiceServices.java, because I wonder if it would not be useful when the webPos will be able to issue money change
// if (null == adj.get("amount")) { // JLR 17/4/7 : fix a bug coming from POS in case of use of a discount (on item(s) or sale, sale here) and a cash amount higher than total (hence issuing change)
// continue;
// }
While at it, since I modified OPTIONAL_LIBRARIES, I also changed these svn:properties: svn:eol-style = native & svn:mime-type = text/plain
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754402 13f79535-47bb-0310-9956-ffa450edef68
They are EOLs changes on this commit. The only real change is this addition:
task start(group: ofbizServer) {
dependsOn 'ofbiz --start'
description 'Start an OFBiz instance'
}
Please don't change the EOLs, here is why:
when we created the build.gradle file (and actually all *.gradle files) there was not yet this .gradle line in the OFBiz Subversion config file
So when I updated my svn working copy I got the *nix EOLs with the .gradle file committed by Taher. So each time I changed a line a lot of confusing EOLs changes appeared.
Now that we have the .gradle line in the OFBiz Subversion config file, you will see the last EOLs changes on this commit when reviewing.
This is normal and will happen only once. Then my svn working copy will have the Windows EOLs, and we should not longer see any EOLs changes in next commits.
This is of course true for this file, but will happen also on other already existing .gradle files when I will change a line there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754071 13f79535-47bb-0310-9956-ffa450edef68
The Find form for Product Backlog Item does not work in language other than English when no "statusId" or "custRequestTypeId" are selected.
Step to reproduce :
- Go to the Scrum component and select a product
- Go to the "Total Backlog" tab
or use this link : https://localhost:8443/scrum/control/ViewTotalBacklog?productId=DEMO-PRODUCT-1
- Hit the search button, the find action is performed and return a non-empty list.
- Set your language preference to a non english language (french for example).
- Click again on the "Total Backlog" tab, and hit the "Rechercher" button.
- No results are found.
Where does the problem come from ?
The results displayed are from a list named "backlogList" which is built in the following script : FindProductBacklogItem.groovy .
In this script, there were a check on the parameter "custRequestTypeId" and on the parameter "statusId".
But the value was hardcoded :
if("Any".equals(parameters.custRequestTypeId))
and
if(!"Any".equals(parameters.statusId))
Obviously, when the form is in another language than English, those conditions aren't valid anymore (for example, "Any" is "Don't" in French")
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754051 13f79535-47bb-0310-9956-ffa450edef68
Another library replaced with remote. I was not able to get the exact
same version so instead of 3.3 I bumped it into 3.3.5. However, code
compiles and all tests pass
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753944 13f79535-47bb-0310-9956-ffa450edef68
It is not needed to declare all the dependencies explicitly becuase
all of them are automatically downloaded with the package:
'org.apache.solr:solr-core:5.3.1'
Hence, this makes the build script much shorter and cleaner
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753887 13f79535-47bb-0310-9956-ffa450edef68
This commit fully moves BIRT to remote libs. After a lot of
investigation we realized there were two offending dependencies
that prevented BIRT from working (Derby, and a PDF dependency).
Once these two dependencies were excluded BIRT successfully
compiled and all tests ran. I did some further manual testing
of BIRT and all HTML and PDF reports seem to render correctly.
This resolves what I consider the most difficult component
to migrate to remote libs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753886 13f79535-47bb-0310-9956-ffa450edef68
Most likely due to an editor problem in the environment of
Jacques Le Roux which converts the EOL characters from unix
\n to windows \r\n. I had to apply dos2unix to fix it again.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753885 13f79535-47bb-0310-9956-ffa450edef68
Go to /marketing/control/FindMarketingCampaign and select another view size or paginate - an error occurs because the forms target is listMarketingCampain which does not exist in the controller.
jleroux: tested with data from Florian Montalbano for OFBIZ-7923
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753834 13f79535-47bb-0310-9956-ffa450edef68
The ListGlAccountsReport is used to:
* generate a PDF file
* generate an xml export page
of the Gl Accounts in globalGLSettings. Both screens don't open in a new window.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753830 13f79535-47bb-0310-9956-ffa450edef68