You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 2 issues that cause the failure of a package to be loaded as part of a setup_db call:
The load_package option of the packages management command makes a call to the refresh_geojson_geometries() postgres function, which fails if it is within a transaction. This causes the migration to fail from a migration as it is in a transaction.
the management.call_command("createcachetable") call happens after the management.call_command("migrate") call in the setup_db management command. This causes errors when loading the package graphs because the process tries to delete rows from the user_permission_cache table which is not present until after the migration completes.
Fixing these two issues will allow a package to be loaded as part of an initial migration.
The text was updated successfully, but these errors were encountered:
There are 2 issues that cause the failure of a package to be loaded as part of a setup_db call:
load_package
option of thepackages
management command makes a call to therefresh_geojson_geometries()
postgres function, which fails if it is within a transaction. This causes the migration to fail from a migration as it is in a transaction.management.call_command("createcachetable")
call happens after themanagement.call_command("migrate")
call in thesetup_db
management command. This causes errors when loading the package graphs because the process tries to delete rows from theuser_permission_cache
table which is not present until after the migration completes.Fixing these two issues will allow a package to be loaded as part of an initial migration.
The text was updated successfully, but these errors were encountered: