feat: add portal app config sync commands

This commit is contained in:
Md Bayazid Bostame
2026-03-29 01:33:50 +01:00
parent 48afccbca3
commit 5697f42306
5 changed files with 340 additions and 0 deletions

View File

@@ -244,6 +244,12 @@ docker compose exec -T web django-admin compilemessages</code></pre>
<li>The landing page now renders from registry data instead of hardcoded cards.</li>
<li>Security remains code-based: app visibility/order is configurable, but access still depends on role capabilities in <code>roles.py</code>.</li>
<li>Management UI: <code>/admin-tools/apps/</code> for <code>Platform Owner</code>.</li>
<li>Environment sync is explicit, not automatic. Use:
<pre><code>docker compose exec -T web python manage.py export_portal_app_config --output /tmp/portal-app-config.json
docker compose exec -T web python manage.py import_portal_app_config /tmp/portal-app-config.json --dry-run
docker compose exec -T web python manage.py import_portal_app_config /tmp/portal-app-config.json</code></pre>
</li>
<li>This is the correct path when local and server app ordering differ.</li>
</ul>
<h2 id="trial">12c) Trial Lifecycle</h2>