-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
New: Add test for Conf to checkout output directory consistencies. #29252
base: develop
Are you sure you want to change the base?
Conversation
22a807f
to
24486a1
Compare
@mdeweerd for me "dir_output" is deprecated, maybe use "multidir_output[$conf->entity]" instead? |
14a373e
to
7d3dc69
Compare
@hregis Good comment. Does multidir_output must be checked for backward compatibility as well ? It seems that this would be a more complex test (I do not know the multidir_output principles). Anyway, Currently, this fails for 3 old/new mappings in 3 different ways:
@eldy It would be nice to have this test integrated in the develop branch after fixing (or ignoring) the above mentionned errors. |
@mdeweerd @eldy eventually "multidir_output" should replace "dir_output" (except for some specific paths), it allows to access the directories of the entities in "documents" when using the Multicompany module and the shares between entities. in general we define the entity of the object: "multidir_output[$object->entity]" or the current entity if the entity of the object does not exist: "multidir_output[$conf->entity]" |
@mdeweerd without Multicompany module, $object->entity and $conf->entity has the value 1 |
Ok, I'll add a test where the value is '1'. The change to multidir_output does not mean that the backward compatibility test itself is not useful. There are still 1349 lines to update in the code: $ git grep -n --column -F -- '->dir_output' :*php |wc
1349 6666 168647 EDIT: New tests added. Good news: no extra failing tests! |
@mdeweerd yes normally the results will be the same :-) thanks |
990a49a
to
83a5071
Compare
@hregis Found an issue between multidir_output and dir_output by adding a test to compare these values for all modules.
|
@mdeweerd you can see this in conf.class.php ?
|
Don't know, first code to add lot management added a module file modProductBatch and a dir name productlot, I see no reason why different name were used ;-( |
OUt of grep for productlot: Default assignement to dir_output (base on module name):
Specific assignement for productbatch (changing from module name):
|
The inconsistency for productlot goes back a long way - the test also fails for 16.0.1 . So I checked git blame. In Feb/2020 we had 'produitlot': (not productlot) for multidir_output - 13.0.
One year later, that became 'productlot' for multidir_output:
But dir_output was showing productbatch. produitlot for multidir_output has been in place since 2018 (7.0):
|
83a5071
to
e7da375
Compare
e7da375
to
db024da
Compare
Add test for Conf to checkout output directory consistencies.
Test from #29221, failing in develop.