2024-07-01 19:21:52 +03:00
|
|
|
#!/usr/bin/env bash
|
2022-01-25 11:25:20 +03:00
|
|
|
|
|
|
|
# Restore workspace contents in mongo/elastic
|
2023-06-09 13:36:55 +03:00
|
|
|
./tool.sh backup-restore ./sanity-ws sanity-ws
|
|
|
|
|
2024-08-05 08:37:13 +03:00
|
|
|
./tool.sh upgrade-workspace sanity-ws --indexes
|
2022-01-25 11:25:20 +03:00
|
|
|
|
|
|
|
# Re-assign user to workspace.
|
2023-08-26 12:37:26 +03:00
|
|
|
./tool.sh assign-workspace user1 sanity-ws
|
2023-11-22 12:14:26 +03:00
|
|
|
./tool.sh assign-workspace user2 sanity-ws
|
2024-07-02 14:09:44 +03:00
|
|
|
./tool.sh set-user-role user1 sanity-ws OWNER
|
|
|
|
./tool.sh set-user-role user2 sanity-ws OWNER
|
2023-04-25 10:34:10 +03:00
|
|
|
|
|
|
|
./tool.sh configure sanity-ws --enable=*
|
|
|
|
./tool.sh configure sanity-ws --list
|
2024-03-03 19:47:26 +03:00
|
|
|
|
|
|
|
# setup issue createdOn for yesterday
|
2024-10-21 19:23:26 +03:00
|
|
|
./tool.sh change-field sanity-ws --objectId 65e47f1f1b875b51e3b4b983 --objectClass tracker:class:Issue --attribute createdOn --value $(($(date +%s)*1000 - 86400000)) --type number
|