mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
084eca268e
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
18 lines
678 B
Bash
Executable File
18 lines
678 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Restore workspace contents in mongo/elastic
|
|
./tool.sh backup-restore ./sanity-ws sanity-ws
|
|
|
|
./tool.sh upgrade-workspace sanity-ws --indexes --force
|
|
|
|
# Re-assign user to workspace.
|
|
./tool.sh assign-workspace user1 sanity-ws
|
|
./tool.sh assign-workspace user2 sanity-ws
|
|
./tool.sh set-user-role user1 sanity-ws OWNER
|
|
./tool.sh set-user-role user2 sanity-ws OWNER
|
|
|
|
./tool.sh configure sanity-ws --enable=*
|
|
./tool.sh configure sanity-ws --list
|
|
|
|
# setup issue createdOn for yesterday
|
|
./tool.sh change-field sanity-ws --objectId 65e47f1f1b875b51e3b4b983 --objectClass tracker:class:Issue --attribute createdOn --value $(($(date +%s)*1000 - 86400000)) --type number |