From b7fdc2ab9328e1b5c51123584ee2a143c3853890 Mon Sep 17 00:00:00 2001 From: vedfordev Date: Wed, 27 Nov 2024 13:22:43 +0530 Subject: [PATCH] (#34) | steps for add missing role --- .../superset_db_sqllite_to_postgres.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/reportingSystem/superset_db_sqllite_to_postgres.md b/reportingSystem/superset_db_sqllite_to_postgres.md index 2bf8091..81f57be 100644 --- a/reportingSystem/superset_db_sqllite_to_postgres.md +++ b/reportingSystem/superset_db_sqllite_to_postgres.md @@ -141,3 +141,22 @@ docker inspect avnisuperset_4.0.1 sudo certbot --nginx -d test-reporting-superset.avniproject.org sudo certbot renew --cert-name test-reporting-superset.avniproject.org ``` + + + +### Post Deployment Task +1. Go to ec2 and flag and after completing task remove that +```shell +#ssh to ec2 +docker exec -it -u root avnisuperset_4.0.1 bash +#you are inside docker +vi superset_config.py +# add flag : FAB_ADD_SECURITY_API = True +superset init +exit +#outside container +docker restart avnisuperset_4.0.1 +``` + +2. Add permissions to role. First take ids from file [/assets/role_permission_upgrade.sql](https://github.com/avniproject/avni-infra/blob/superset/reportingSystem/superset/assets/role_permission_upgrade.sql). put iy into [/assets/RoleUpgrade.js](https://github.com/avniproject/avni-infra/blob/superset/reportingSystem/superset/assets/RoleUpgrade.js) +and run scripts. \ No newline at end of file