this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: rename dummy data command to load fixtures and update documentation (#3182)

* refactor: rename dummy data command to load fixtures and update documentation

* refactor: update load-fixtures command to include alias for load-dummy-data

authored by

Aakash Singh and committed by
GitHub
f36805eb c4ad067f

+9 -17
+1 -1
.github/workflows/reusable-test.yml
··· 67 67 run: make checkmigration 68 68 69 69 - name: Validate integrity of fixtures 70 - run: make load-dummy-data 70 + run: make load-fixtures 71 71 72 72 - name: Dump db 73 73 if: ${{ inputs.event_name == 'push' || github.event_name == 'push' }}
+1 -1
CONTRIBUTING.md
··· 85 85 - Seed the database with the following command: 86 86 87 87 ```bash 88 - python manage.py load_dummy_data 88 + python manage.py load_fixtures 89 89 ``` 90 90 91 91 - Create a superuser
+2 -4
Makefile
··· 34 34 teardown: 35 35 docker compose -f docker-compose.yaml -f $(docker_config_file) down -v 36 36 37 - load-dummy-data: 38 - docker compose exec backend bash -c "python manage.py load_dummy_data" 39 - 40 - load-fixtures: 37 + #TODO: remove alias load-dummy-data 38 + load-fixtures load-dummy-data: 41 39 docker compose exec backend bash -c "python manage.py load_fixtures" 42 40 43 41 list:
+1 -1
README.md
··· 54 54 make up 55 55 ``` 56 56 57 - to load seed data for testing run: 57 + to load fixtures for testing run: 58 58 59 59 ```bash 60 60 make load-fixtures
-6
care/users/management/commands/load_dummy_data.py
··· 1 - from django.core.management import BaseCommand 2 - 3 - 4 - class Command(BaseCommand): 5 - def handle(self, *args, **options): 6 - print("I'm sorry boss, I dont have any dummy data") # noqa T201
+2 -2
docs/django-commands/configuration.rst
··· 10 10 | | | | 11 11 | | | Example Invocation: :code:`python manage.py createsuperuser` | 12 12 +---------------------+---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 13 - | load_dummy_data | None | This command is used to load dummy data for testing and development purposes only. User "devdistrictadmin" with password "Coronasafe@123" is populated, invokes :code:`load_data kerala` and :code:`seed_data`. This command will intentionally fail to run in staging or production environment. | 13 + | load_fixtures | None | This command is used to load fixtures for testing and development purposes only. User "devdistrictadmin" with password "Coronasafe@123" is populated, invokes :code:`load_data kerala` and :code:`seed_data`. This command will intentionally fail to run in staging or production environment. | 14 14 | | | | 15 - | | | Example Invocation: :code:`python manage.py load_dummy_data` | 15 + | | | Example Invocation: :code:`python manage.py load_fixtures` | 16 16 +---------------------+---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 17 17 | load_data | state_name | This command is used to load all the District/Lsg/Ward Level data for a given state, The data that is imported is scraped from various sources, The admin can change this data at any point through the admin panel, If the state name is given as "all" then all available data is imported into care. | 18 18 | | | |
+2 -2
docs/local-setup/configuration.rst
··· 30 30 31 31 $ make up 32 32 33 - 2. To load dummy data for testing run: 33 + 2. To load fixtures for testing run: 34 34 .. code-block:: bash 35 35 36 - $ make load-dummy-data 36 + $ make load-fixtures 37 37 38 38 2. Open a browser and go to `http://localhost:9000` 39 39