Skip to content

Commit

Permalink
Tasks update (#107)
Browse files Browse the repository at this point in the history
Correct comment in invoke task file and correct spelling of obfuscate throughout (i.e. within files and in file names)
  • Loading branch information
luca-vari authored Nov 3, 2023
1 parent 83b61f7 commit addac1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/scripts/tasks/staging-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ OrmQ.objects.all().delete();\
"
./manage.py shell_plus -c "$SHELL_CMD"

echo -e "\nObsfucating all personally identifiable information."
./manage.py obsfucate_data
echo -e "\nObfuscating all personally identifiable information."
./manage.py obfuscate_data

echo -e "\nDatabase restore finished."
8 changes: 4 additions & 4 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def reset(c):

@task
def restore(c):
"""Reset local database"""
"""Restore local database from production backups"""
run(c, "/app/scripts/tasks/dev-restore.sh")


Expand All @@ -172,9 +172,9 @@ def sync_s3(c):


@task
def obsfucate(c):
"""Obsfucate personally identifiable info from prod"""
run(c, "./manage.py obsfucate_data")
def obfuscate(c):
"""Obfuscate personally identifiable info from prod"""
run(c, "./manage.py obfuscate_data")


def run(c, cmd: str, service="web"):
Expand Down

0 comments on commit addac1f

Please sign in to comment.