Skip to content

added backup documentation and workup script#76

Open
BenMueller1 wants to merge 3 commits intollemr-conspiracy:masterfrom
BenMueller1:backup-documentation
Open

added backup documentation and workup script#76
BenMueller1 wants to merge 3 commits intollemr-conspiracy:masterfrom
BenMueller1:backup-documentation

Conversation

@BenMueller1
Copy link
Contributor

No description provided.

Comment on lines +12 to +15
If you are on windows and the above command doesn't work, delete the headings in the script files you are calling, rebuild and run the server, and then use the command:
::

docker exec -it llemr_postgres_1 /bin/bash usr/local/bin/backup
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you able to confirm that deleting the headings is necessary? If it is necessary, would it be valid to delete the headings across the board? Having two different versions of the files for different operating systems is not something that I want to have happen

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where exactly is llemr_postgres_1 coming from? This name seems hardcoded, and I wouldn't be surprised if it was different from one person's computer to another. You should detail how to get that name

This command will copy the backups you have created to your local machine:
::

docker cp llemr_postgres_1:./backups .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue with name


docker exec -it llemr_postgres_1 /bin/bash usr/local/bin/backup

Note: If you want to view all of the backups you have created in the postgres container, replace backup with backups in the above commands
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to paste the command again

@@ -0,0 +1,26 @@
Creating Backups and Copy to Host
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide documentation on how to load backups as well?

#!/usr/bin/env bash


countdown() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't edit unnecessary files to adjust whitespace

# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace editing

Comment on lines +5 to +6
Instructions for running this script are located in (PUT THE PLACE THAT I PUT THE DOC FILE IN) [note: I need to make docs for this]
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to do this before I can approve the pull request

Comment on lines +16 to +22
workup_one = WorkupFactory()
workup_two = WorkupFactory()
workup_three = WorkupFactory()

workup_one.written_datetime = d1
workup_two.written_datetime = d2
workup_three.written_datetime = d3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should be able to specify the written datetime when creating the workup. If this is not already allowed, you should edit WorkupFactory to allow this

from .factories import WorkupFactory
import datetime

class testScripts(TestCase):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class name sounds generic, also the first letter should be capitalized. Something like TestUtilityScripts could work


fixtures = ['workup', 'core']

def test_workup_date_checker(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand how this test works when you don't specify the encounter date for the test workups.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should add an additional tests to check individual functions, such as whether the differ by n days function works for exactly n days

@wwick
Copy link
Member

wwick commented May 12, 2022

Make sure to delete the binary file as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants