#4740 (welfare tests on gl fails with "RetrieveTIGroups.wsdl no such file")
by Luc Saffre · in Developers · assigned to Luc Saffre
Résumé
Concepts sous-jacents
Commentaires
- 3 ans, 10 mois ago by Luc Saffre about #4740 (welfare tests on gl fails with "RetrieveTIGroups.wsdl no such file") : Solution is probably to make these wsdl files during post_site_startup() instead of during build_site_cache(). We can then remove the call "settings.SITE.on_each_app('setup_site_cache', force)" in build_site_cache(), which was an obsoloete API anyway.
- 3 ans, 10 mois ago by Luc Saffre about #4740 (welfare tests on gl fails with "RetrieveTIGroups.wsdl no such file") : So maybe this has been working until now only because until some days ago the site cache files had been packaged accidentally with a source distribution.
- 3 ans, 10 mois ago by Luc Saffre about #4740 (welfare tests on gl fails with "RetrieveTIGroups.wsdl no such file") : Writing the js files (at least those for extjs) accesses the database, for example the ledger plugin loops over the journals when building the main menu.
- 3 ans, 10 mois ago by Luc Saffre about #4740 (welfare tests on gl fails with "RetrieveTIGroups.wsdl no such file") : Wow, this is so deep inside Lino! Calling settings.SITE.kernel.default_ui.renderer.build_site_cache(True) from within the prep command causes the wsdl files to get created after loading the demo fixtures, but we need it to be there before loading them. On the other hand, generating the js files seem...
- 3 ans, 10 mois ago by Luc Saffre about #4740 (welfare tests on gl fails with "RetrieveTIGroups.wsdl no such file") : doesn't fix, causes prep to fail with OperationalError: no such table: ledger_journal
- 3 ans, 10 mois ago by Luc Saffre about #4740 (welfare tests on gl fails with "RetrieveTIGroups.wsdl no such file") : if this fixes our issue, then let it be for this time. to be more explicit and less magic, we might call build_site_cache from prep.
- 3 ans, 10 mois ago by Luc Saffre about #4740 (welfare tests on gl fails with "RetrieveTIGroups.wsdl no such file") : I reactivated the lines in get_pattern() where it calls build_site_cache().
- 3 ans, 10 mois ago by Luc Saffre about #4740 (welfare tests on gl fails with "RetrieveTIGroups.wsdl no such file") : the RetrieveTIGroups.wsdl file is getting generated during build_site_cache() and i recently worked on this...
- 3 ans, 10 mois ago by Luc Saffre about #4740 (welfare tests on gl fails with "RetrieveTIGroups.wsdl no such file") : Created a new Ticket.