2024-09-11 11:31:26 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Restore workspace contents in mongo/elastic
|
|
|
|
./tool-pg.sh backup-restore ./sanity-ws sanity-ws
|
|
|
|
|
|
|
|
./tool-pg.sh upgrade-workspace sanity-ws
|
|
|
|
|
|
|
|
# Re-assign user to workspace.
|
|
|
|
./tool-pg.sh assign-workspace user1 sanity-ws
|
|
|
|
./tool-pg.sh assign-workspace user2 sanity-ws
|
|
|
|
./tool-pg.sh set-user-role user1 sanity-ws OWNER
|
|
|
|
./tool-pg.sh set-user-role user2 sanity-ws OWNER
|
|
|
|
|
|
|
|
./tool-pg.sh configure sanity-ws --enable=*
|
|
|
|
./tool-pg.sh configure sanity-ws --list
|
|
|
|
|
|
|
|
# setup issue createdOn for yesterday
|
2024-10-21 19:23:26 +03:00
|
|
|
./tool-pg.sh change-field sanity-ws --objectId 65e47f1f1b875b51e3b4b983 --objectClass tracker:class:Issue --attribute createdOn --value $(($(date +%s)*1000 - 86400000)) --type number
|