erp5_ingestion: Use script and type based method to add or not published state
The initial idea was that publishing documents is something really exceptional, the "attach document" normal use case is typically use cases like attaching a PDF invoice to an invoice document in accounting, ie. most of the time it's with sensitive information that we don't want users to be mistakenly publish on the internet just because they selected a wrong value in the field. Now we have a project with use cases where the attached documents needs to be published, we did not change our mind that publishing an attached document is an exceptional case, but we want to make it possible to configure so that in certain contexts, publishing documents is possible. So we reuse the existing configuration by type based method idea and when the getPreferredAttachedDocumentPublicationState returns "published" we make it possible to publish by default.
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#341404
external
|
ERP5.CodingStyleTest-Master |
00:48:53
|
||||||
failed |
#341430
external
|
ERP5.PerformanceTest-Master |
00:26:12
|
||||||
failed |
#341453
external
|
ERP5.UnitTest-Master |
01:16:07
|
||||||
failed |
#341391
external
|
ERP5.UnitTest-Master.Medusa |
01:21:51
|
||||||
passed |
#341509
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:20:40
|
||||||
passed |
#341497
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:12:09
|
||||||
failed |
#341422
external
retried
|
ERP5.UnitTest-Master |
01:22:30
|
||||||
passed |
#341413
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:11:49
|
||||||
passed |
#341473
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:11:50
|
||||||
passed |
#341400
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:13:47
|
||||||
passed |
#341460
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:14:34
|
||||||