BusinessTemplate: fix removing and trashing a document and its container
Because we were backing up to trash documents in the wrong order (in the example from the test, portal_categories/test_category/removed_container/removed_document first and then portal_categories/test_category/removed_container), first the document was backed-up and some intermediate trash folders were created to keep the hierarchy. Then when backing up the container, there was an error like: BadRequest: The id "removed_container" is invalid - it is already in use. Similar error happens when upgrading erp5_configurator_standard, it was failing with: BadRequest: The id "officejs_sdk_workflow" is invalid - it is already in use. The fix is to backup in reverse order, to back up first the containers and then the document in containers.
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#227993
external
|
ERP5.CodingStyleTest-Master |
04:36:49
|
||||||
passed |
#227970
external
|
ERP5.PerformanceTest-Master |
00:24:15
|
||||||
passed |
#228033
external
|
ERP5.UnitTest-Master |
04:16:49
|
||||||
failed |
#227976
external
|
ERP5.UnitTest-Master.Medusa |
06:20:11
|
||||||
passed |
#228009
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:42:48
|
||||||
passed |
#228040
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:17:31
|
||||||
passed |
#227877
external
retried
|
ERP5.CodingStyleTest-Master |
00:50:20
|
||||||
passed |
#227871
external
retried
|
ERP5.PerformanceTest-Master |
00:24:21
|
||||||
passed |
#227920
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:33:05
|
||||||
passed |
#227985
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:43:11
|
||||||
passed |
#227864
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:18:07
|
||||||
passed |
#227907
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:08:51
|
||||||
passed |
#227851
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:14:15
|
||||||
passed |
#227936
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:08:45
|
||||||
passed |
#227952
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:10:59
|
||||||