Skip to content

Commit

Permalink
(#34) | updates after production run
Browse files Browse the repository at this point in the history
  • Loading branch information
vedfordev committed Dec 4, 2024
1 parent fbe4a00 commit 31ab05b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
4 changes: 4 additions & 0 deletions reportingSystem/superset/assets/RoleUpgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ const baseurl = ""; // provide url

let auth_token = null;

const username = ""; // admin user

const password = "";


const login = async () => {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ where role.id not in(
join ab_view_menu avm on apv.view_menu_id = avm.id
join ab_permission_view_role apvr on apv.id = apvr.permission_view_id
where p.name = 'can_recent_activity' and avm.name = 'Superset'
)and (role.name not in ('Public', 'granter', 'sql_lab') or (role.name ilike '%gam%' ));
)and (role.name not in ('Public', 'granter', 'sql_lab')) or (role.name ilike '%gam%' );
-- role ids : [17, 18, 20, 22, 23, 24, 26, 27, 29, 38, 39, 25, 44]


Expand Down
18 changes: 11 additions & 7 deletions reportingSystem/superset_db_sqllite_to_postgres.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,22 @@ docker run -d -p 8088:8088 \
-v /var/log/superset:/app/superset_home \
118388513628.dkr.ecr.ap-south-1.amazonaws.com/avniproject/reporting-superset:4.0.1

docker logs -f superset_4.0.1
docker logs -f avnisuperset_4.0.1

tail -f /var/log/superset/superset.log
tail -f /var/log/superset/superset.log

docker exec -it -u root avnisuperset_4.0.1 bash
superset db upgrade
superset db init
```

5. important commands for docker container
```shell
docker logs -f superset_4.0.1
docker exec -it -u root superset_4.0.1 bash
docker start superset_4.0.1
docker stop superset_4.0.1
docker restart superset_4.0.1
docker logs -f avnisuperset_4.0.1
docker exec -it -u root avnisuperset_4.0.1 bash
docker start avnisuperset_4.0.1
docker stop avnisuperset_4.0.1
docker restart avnisuperset_4.0.1
docker inspect avnisuperset_4.0.1
```

Expand Down

0 comments on commit 31ab05b

Please sign in to comment.