Merge remote-tracking branch 'origin/main' into rjm/516-security-email

This commit is contained in:
rachidatecs 2023-05-19 10:25:47 -04:00
commit 899bb76426
No known key found for this signature in database
GPG key ID: 3CEBBFA7325E5525
3 changed files with 64 additions and 3 deletions

View file

@ -0,0 +1,37 @@
name: Standard Issue Tempalte
description: Create an Issue
title: "[Issue]:"
labels: ["research"]
assignees:
- kitsushadow
body:
- type: markdown
attributes:
value: |
Please fill this out best you can
- type: textarea
id: why
attributes:
label: Why or Acceptance Criteria
description: What is the reason we determined we need an issue.
placeholder: This issue is a product of...
value: "While working on X or researching Y it was discovered that Z was an issue that need captured."
validations:
required: true
- type: dropdown
id: type
attributes:
label: Issue Type
description: What type of issue is this
options:
- research (Default)
- dev
- product
validations:
required: true
- type: textarea
id: Dependencies
attributes:
label: Link dependent issues
description: If this ticket is dependent on another issue or blocks a current issue, please link.
render: shell

View file

@ -12,19 +12,34 @@ to get a `psql` shell on the sandbox environment's database.
## Running Migrations ## Running Migrations
When new code changes the database schema, we need to apply Django's migrations. When new code changes the database schema (ie, you change a model or pull some
code that has), we need to apply Django's migrations.
### On Local
```shell
docker-compose exec app bash
./manage.py makemigrations
```
Then perform docker-compose down & docker-compose up to run with the new migrations.
### On Cloud.gov
We can run these using CloudFoundry's tasks to run the `manage.py migrate` We can run these using CloudFoundry's tasks to run the `manage.py migrate`
command in the correct environment. For any developer environment, developers command in the correct environment. For any developer environment, developers
can manually run the task with can manually run the task with
```shell ```shell
cf run-task getgov-ENVIRONMENT --command 'python manage.py migrate' --name migrate cf run-task getgov-ENVIRONMENT --wait --command 'python manage.py migrate' --name migrate
``` ```
(The optional 'wait' argument will wait until the environment is stable)
Optionally, load data from fixtures as well Optionally, load data from fixtures as well
```shell ```shell
cf run-task getgov-ENVIRONMENT --command 'python manage.py load' --name loaddata cf run-task getgov-ENVIRONMENT --wait --command 'python manage.py load' --name loaddata
``` ```
For the `stable` environment, developers don't have credentials so we need to For the `stable` environment, developers don't have credentials so we need to

View file

@ -21,6 +21,15 @@
</a> </a>
</li> </li>
<li class="usa-sidenav__item">
{% url 'todo' as url %}
<a href="{{ url }}"
{% if request.path == url %}class="usa-current"{% endif %}
>
Organization name and mailing address
</a>
</li>
<li class="usa-sidenav__item"> <li class="usa-sidenav__item">
{% url 'todo' as url %} {% url 'todo' as url %}
<a href="{{ url }}" <a href="{{ url }}"