mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-12 12:39:43 +02:00
Merge main to get pa11y fix
This commit is contained in:
commit
5d0421eb16
14 changed files with 58 additions and 12 deletions
12
.github/workflows/test.yaml
vendored
12
.github/workflows/test.yaml
vendored
|
@ -32,6 +32,17 @@ jobs:
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
run: docker compose run app python manage.py test
|
run: docker compose run app python manage.py test
|
||||||
|
|
||||||
|
django-migrations-complete:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Check for complete migrations
|
||||||
|
working-directory: ./src
|
||||||
|
run: |
|
||||||
|
docker compose run app ./manage.py makemigrations --dry-run --verbosity 3 && \
|
||||||
|
docker compose run app ./manage.py makemigrations --check
|
||||||
|
|
||||||
pa11y-scan:
|
pa11y-scan:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
@ -53,5 +64,6 @@ jobs:
|
||||||
- name: run pa11y
|
- name: run pa11y
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
run: |
|
run: |
|
||||||
|
sleep 10;
|
||||||
npm i -g pa11y-ci
|
npm i -g pa11y-ci
|
||||||
pa11y-ci
|
pa11y-ci
|
||||||
|
|
|
@ -22,6 +22,18 @@ Visit the running application at [http://localhost:8080](http://localhost:8080).
|
||||||
|
|
||||||
We use the branch convention of `initials/branch-topic` (ex: `lmm/fix-footer`). This allows for automated deployment to a developer sandbox namespaced to the initials.
|
We use the branch convention of `initials/branch-topic` (ex: `lmm/fix-footer`). This allows for automated deployment to a developer sandbox namespaced to the initials.
|
||||||
|
|
||||||
|
## Merging and PRs
|
||||||
|
|
||||||
|
To bring your feature branch up-to-date wih main:
|
||||||
|
|
||||||
|
```
|
||||||
|
git checkout main
|
||||||
|
git pull
|
||||||
|
git checkout <feature-branch>
|
||||||
|
git merge orgin/main
|
||||||
|
git push
|
||||||
|
```
|
||||||
|
|
||||||
## Setting Vars
|
## Setting Vars
|
||||||
|
|
||||||
Non-secret environment variables for local development are set in [src/docker-compose.yml](../../src/docker-compose.yml).
|
Non-secret environment variables for local development are set in [src/docker-compose.yml](../../src/docker-compose.yml).
|
||||||
|
@ -34,6 +46,28 @@ DJANGO_SECRET_LOGIN_KEY="<...>"
|
||||||
|
|
||||||
You'll need to create the `.env` file yourself. Get the secrets from Cloud.gov by running `cf env getgov-YOURSANDBOX`. More information is available in [rotate_application_secrets.md](../operations/runbooks/rotate_application_secrets.md).
|
You'll need to create the `.env` file yourself. Get the secrets from Cloud.gov by running `cf env getgov-YOURSANDBOX`. More information is available in [rotate_application_secrets.md](../operations/runbooks/rotate_application_secrets.md).
|
||||||
|
|
||||||
|
## Adding user to /admin
|
||||||
|
|
||||||
|
The endpoint /admin can be used to view and manage site content, including but not limited to user information and the list of current applications in the database. To be able to view and use /admin locally:
|
||||||
|
|
||||||
|
1. Login via login.gov
|
||||||
|
2. Go to the home page and make sure you can see the part where you can submit an application
|
||||||
|
3. Go to /admin and it will tell you that UUID is not authorized, copy that UUID for use in 4
|
||||||
|
4. in src/registrar/fixtures.py add to the ADMINS list in that file by adding your UUID as your username along with your first and last name. See below:
|
||||||
|
|
||||||
|
```
|
||||||
|
ADMINS = [
|
||||||
|
{
|
||||||
|
"username": "<UUID here>",
|
||||||
|
"first_name": "",
|
||||||
|
"last_name": "",
|
||||||
|
},
|
||||||
|
...
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
|
5. In the browser, navigate to /admins. To verify that all is working correctly, under "domain applications" you should see fake domains with various fake statuses.
|
||||||
|
|
||||||
## Viewing Logs
|
## Viewing Logs
|
||||||
|
|
||||||
If you run via `docker-compose up`, you'll see the logs in your terminal.
|
If you run via `docker-compose up`, you'll see the logs in your terminal.
|
||||||
|
|
|
@ -21,4 +21,4 @@ CISA lacks a scalable, efficient, and secure method of managing the .gov TLD pro
|
||||||
| **Growth and use:** Regular growth in the overall number of .gov domains registered, with clear increases in election orgs, major metro areas, and state legislatures/courts | - Raw count of registered .gov domains increases <br /> - Number of YoY applications per month increases <br /> - Percent of 100 most populous cities, counties, etc. (per Census data) using .gov domains increases |
|
| **Growth and use:** Regular growth in the overall number of .gov domains registered, with clear increases in election orgs, major metro areas, and state legislatures/courts | - Raw count of registered .gov domains increases <br /> - Number of YoY applications per month increases <br /> - Percent of 100 most populous cities, counties, etc. (per Census data) using .gov domains increases |
|
||||||
| **Data:** The program maintains authoritative contacts at, metadata about, and hostname information for all registered .gov domains, and is able to track that .gov domains are actually used | - Time-to-generate internal reports decreases <br /> - Results of periodic data quality audit show improvements month-over-month |
|
| **Data:** The program maintains authoritative contacts at, metadata about, and hostname information for all registered .gov domains, and is able to track that .gov domains are actually used | - Time-to-generate internal reports decreases <br /> - Results of periodic data quality audit show improvements month-over-month |
|
||||||
| **User satisfaction:** Getting a .gov domain is as easy and intuitive as possible | - Completion rate of form improves <br /> - Time from domain request to approval decreases <br /> - Number of domains requiring analyst data changes decreases |
|
| **User satisfaction:** Getting a .gov domain is as easy and intuitive as possible | - Completion rate of form improves <br /> - Time from domain request to approval decreases <br /> - Number of domains requiring analyst data changes decreases |
|
||||||
| **Program reputation and experience:** The .gov program is viewed as trustworthy and responsive | - Response time for inquiries decreases <br /> - Resolution time decreases <br /> - Rate of repeat issues for tickets decreases <br /> - Number of SLTT organizations in CoP increases |
|
| **Program reputation and experience:** The .gov program is viewed as trustworthy and responsive | - Response time for inquiries decreases <br /> - Resolution time decreases <br /> - Rate of repeat issues for tickets decreases <br /> - Number of SLTT organizations in Community of Practice increases |
|
||||||
|
|
|
@ -6,7 +6,7 @@ applications:
|
||||||
path: ../../src
|
path: ../../src
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 512M
|
memory: 512M
|
||||||
stack: cflinuxfs3
|
stack: cflinuxfs4
|
||||||
timeout: 180
|
timeout: 180
|
||||||
command: ./run.sh
|
command: ./run.sh
|
||||||
health-check-type: http
|
health-check-type: http
|
||||||
|
|
|
@ -6,7 +6,7 @@ applications:
|
||||||
path: ../../src
|
path: ../../src
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 512M
|
memory: 512M
|
||||||
stack: cflinuxfs3
|
stack: cflinuxfs4
|
||||||
timeout: 180
|
timeout: 180
|
||||||
command: ./run.sh
|
command: ./run.sh
|
||||||
health-check-type: http
|
health-check-type: http
|
||||||
|
|
|
@ -6,7 +6,7 @@ applications:
|
||||||
path: ../../src
|
path: ../../src
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 512M
|
memory: 512M
|
||||||
stack: cflinuxfs3
|
stack: cflinuxfs4
|
||||||
timeout: 180
|
timeout: 180
|
||||||
command: ./run.sh
|
command: ./run.sh
|
||||||
health-check-type: http
|
health-check-type: http
|
||||||
|
|
|
@ -6,7 +6,7 @@ applications:
|
||||||
path: ../../src
|
path: ../../src
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 512M
|
memory: 512M
|
||||||
stack: cflinuxfs3
|
stack: cflinuxfs4
|
||||||
timeout: 180
|
timeout: 180
|
||||||
command: ./run.sh
|
command: ./run.sh
|
||||||
health-check-type: http
|
health-check-type: http
|
||||||
|
|
|
@ -6,7 +6,7 @@ applications:
|
||||||
path: ../../src
|
path: ../../src
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 512M
|
memory: 512M
|
||||||
stack: cflinuxfs3
|
stack: cflinuxfs4
|
||||||
timeout: 180
|
timeout: 180
|
||||||
command: ./run.sh
|
command: ./run.sh
|
||||||
health-check-type: http
|
health-check-type: http
|
||||||
|
|
|
@ -6,7 +6,7 @@ applications:
|
||||||
path: ../../src
|
path: ../../src
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 512M
|
memory: 512M
|
||||||
stack: cflinuxfs3
|
stack: cflinuxfs4
|
||||||
timeout: 180
|
timeout: 180
|
||||||
command: ./run.sh
|
command: ./run.sh
|
||||||
health-check-type: http
|
health-check-type: http
|
||||||
|
|
|
@ -6,7 +6,7 @@ applications:
|
||||||
path: ../../src
|
path: ../../src
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 512M
|
memory: 512M
|
||||||
stack: cflinuxfs3
|
stack: cflinuxfs4
|
||||||
timeout: 180
|
timeout: 180
|
||||||
command: ./run.sh
|
command: ./run.sh
|
||||||
health-check-type: http
|
health-check-type: http
|
||||||
|
|
|
@ -6,7 +6,7 @@ applications:
|
||||||
path: ../../src
|
path: ../../src
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 512M
|
memory: 512M
|
||||||
stack: cflinuxfs3
|
stack: cflinuxfs4
|
||||||
timeout: 180
|
timeout: 180
|
||||||
command: ./run.sh
|
command: ./run.sh
|
||||||
health-check-type: http
|
health-check-type: http
|
||||||
|
|
|
@ -6,7 +6,7 @@ applications:
|
||||||
path: ../../src
|
path: ../../src
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 512M
|
memory: 512M
|
||||||
stack: cflinuxfs3
|
stack: cflinuxfs4
|
||||||
timeout: 180
|
timeout: 180
|
||||||
command: ./run.sh
|
command: ./run.sh
|
||||||
health-check-type: http
|
health-check-type: http
|
||||||
|
|
|
@ -6,7 +6,7 @@ applications:
|
||||||
path: ../../src
|
path: ../../src
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 512M
|
memory: 512M
|
||||||
stack: cflinuxfs3
|
stack: cflinuxfs4
|
||||||
timeout: 180
|
timeout: 180
|
||||||
command: ./run.sh
|
command: ./run.sh
|
||||||
health-check-type: http
|
health-check-type: http
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"concurrency": 1,
|
"concurrency": 1,
|
||||||
"timeout": 10000,
|
"timeout": 30000,
|
||||||
"hideElements": "a[href='/whoami/']"
|
"hideElements": "a[href='/whoami/']"
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue