Skip to content

Commit

Permalink
Merge pull request #317 from fecgov/release/sprint-44
Browse files Browse the repository at this point in the history
Release/sprint 44
  • Loading branch information
sasha-dresden authored Jul 11, 2024
2 parents 61ef16e + b80088e commit c9cb19f
Show file tree
Hide file tree
Showing 155 changed files with 3,007 additions and 3,343 deletions.
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
about: Create a report to help us improve
title: 'Potential Bug: [Insert title here]'
labels: bug
assignees: WiseQA

---

**Where was the issue found:**
- Committee ID:
- Environment:
- Browser:

**Please describe the issue clearly and concisely**
A clear and concise description of what the bug is.

Approximate time the issue was found:

**To Reproduce**
How to replicate the issue:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/issue-template.md

This file was deleted.

18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,24 @@ git push --set-upstream origin hotfix/my-fix
## Additional developer notes
This section covers a few topics we think might help developers after setup.

### Register changes to the validation JSON files in the fecfile-web-app and fecfile-web-api repositories
After modified the JSON schema files, those changes must be registered in the [fecfile-web-app](https://github.com/fecgov/fecfile-web-app) and [fecfile-web-api](https://github.com/fecgov/fecfile-web-api) repositories using the hash of the commit of the edits.

In the fecfile-web-app repo:
1) Update the commit hash in the [package.json](https://github.com/fecgov/fecfile-web-app/blob/develop/front-end/package.json) file for the fecfile-validate dependency
2) Remove the package-lock.json file
3) Rebuild the package-lock.json file to commit it to the repo with the "npm install" command

In the fecfile-web-api repo:
1) Update the commit hash for the fecfile-validate dependency in the [requirements.txt](https://github.com/fecgov/fecfile-web-api/blob/develop/requirements.txt) file.

### How to update the online documentation
The online documentation for the validation JSON files is hosted on GitHub pages at https://fecgov.github.io/fecfile-validate/
To update this documentation when changes are made to the JSON validation files, we use the [json-schema-for-humans](https://pypi.org/project/json-schema-for-humans/) python package. To generate the documentation, follow these steps:
1) pip install -r requirements.txt
2) cd schema
3) ../bin/generate_schema_docs.sh

### Git Secrets
Set up git secrets to protect oneself from committing sensitive information such as passwords to the repository.
- First install AWS git-secret utility in your PATH so it can be run at the command line: https://github.com/awslabs/git-secrets#installing-git-secrets
Expand Down
2 changes: 1 addition & 1 deletion bin/generate-spec-table.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"FIELD_FORM_ASSOCIATION",
]

if "transaction_type_identifier" in data["properties"]:
if not args.filename.startswith("Sch"):
COLUMNS = COLUMNS[1:]
FEC_PROPERTIES = FEC_PROPERTIES[1:]

Expand Down
40 changes: 20 additions & 20 deletions docs/BUSINESS_LABOR_NON_CONTRIBUTION_ACCOUNT.html

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions docs/C1_LOAN_AGREEMENT.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/C2_LOAN_GUARANTOR.html

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions docs/CANDIDATE_CONTRIBUTIONS.html

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions docs/COM_IN_KIND_OUTS.html

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions docs/COM_IN_KIND_RECEIPTS.html

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions docs/CONDUIT_EARMARKS.html

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions docs/CONDUIT_EARMARK_OUTS.html

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions docs/Contact_Candidate.html

Large diffs are not rendered by default.

20 changes: 0 additions & 20 deletions docs/Contact_Candidate_spec.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!DOCTYPE html><html lang="en"><head><title>Contact_Candidate</title><link rel="stylesheet" href="spec_table.css"></head><body><table><caption>Specification for Contact_Candidate</caption><tr>
<th>COL SEQ</th>
<th>FIELD DESCRIPTION</th>
<th>TYPE</th>
<th>REQUIRED</th>
Expand All @@ -10,7 +9,6 @@
<th>VALIDATION RULES</th>
</tr>
<tr>
<td>1</td>
<td>TYPE</td>
<td>Dropdown</td>
<td>X (error)</td>
Expand All @@ -21,7 +19,6 @@
<td><ul><li>REQUIRED</li><li>must equal: CAN</li></td>
</tr>
<tr>
<td>2</td>
<td>CANDIDATE ID</td>
<td>A/N-9</td>
<td>X (error)</td>
Expand All @@ -32,7 +29,6 @@
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 1</li><li>max length: 9</li><li>regex: ^P[0-9]{8}$|^[H|S][0-9]{1}[A-Z]{2}[0-9]{5}$</li></td>
</tr>
<tr>
<td>3</td>
<td>LAST NAME</td>
<td>A/N-30</td>
<td>X (error)</td>
Expand All @@ -43,7 +39,6 @@
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 1</li><li>max length: 30</li><li>regex: ^[ -~]{0,30}$</li></td>
</tr>
<tr>
<td>4</td>
<td>FIRST NAME</td>
<td>A/N-20</td>
<td>X (error)</td>
Expand All @@ -54,7 +49,6 @@
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 1</li><li>max length: 20</li><li>regex: ^[ -~]{0,20}$</li></td>
</tr>
<tr>
<td>5</td>
<td>MIDDLE NAME</td>
<td>A/N-20</td>
<td></td>
Expand All @@ -65,7 +59,6 @@
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 20</li><li>regex: ^[ -~]{0,20}$</li></td>
</tr>
<tr>
<td>6</td>
<td>PREFIX</td>
<td>A/N-10</td>
<td></td>
Expand All @@ -76,7 +69,6 @@
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 10</li><li>regex: ^[ -~]{0,10}$</li></td>
</tr>
<tr>
<td>7</td>
<td>SUFFIX</td>
<td>A/N-10</td>
<td></td>
Expand All @@ -87,7 +79,6 @@
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 10</li><li>regex: ^[ -~]{0,10}$</li></td>
</tr>
<tr>
<td>8</td>
<td>STREET 1</td>
<td>A/N-34</td>
<td>X (error)</td>
Expand All @@ -98,7 +89,6 @@
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 1</li><li>max length: 34</li><li>regex: ^[ -~]{0,34}$</li></td>
</tr>
<tr>
<td>9</td>
<td>STREET 2</td>
<td>A/N-34</td>
<td></td>
Expand All @@ -109,7 +99,6 @@
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 34</li><li>regex: ^[ -~]{0,34}$</li></td>
</tr>
<tr>
<td>10</td>
<td>CITY</td>
<td>A/N-30</td>
<td>X (error)</td>
Expand All @@ -120,7 +109,6 @@
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 1</li><li>max length: 30</li><li>regex: ^[ -~]{0,30}$</li></td>
</tr>
<tr>
<td>11</td>
<td>STATE</td>
<td>A/N-2</td>
<td>X (error)</td>
Expand All @@ -131,7 +119,6 @@
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 2</li><li>max length: 2</li><li>regex: ^[A-Z]{2}$</li></td>
</tr>
<tr>
<td>12</td>
<td>ZIP</td>
<td>A/N-9</td>
<td>X (error)</td>
Expand All @@ -142,7 +129,6 @@
<td><ul><li>REQUIRED if COUNTRY equals USA</li><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 9</li><li>regex: ^[ -~]{0,9}$</li></td>
</tr>
<tr>
<td>13</td>
<td>EMPLOYER</td>
<td>A/N-38</td>
<td></td>
Expand All @@ -153,7 +139,6 @@
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 38</li><li>regex: ^[ -~]{0,38}$</li></td>
</tr>
<tr>
<td>14</td>
<td>OCCUPATION</td>
<td>A/N-38</td>
<td></td>
Expand All @@ -164,7 +149,6 @@
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 38</li><li>regex: ^[ -~]{0,38}$</li></td>
</tr>
<tr>
<td>15</td>
<td>CANDIDATE OFFICE</td>
<td>Dropdown</td>
<td>X (error)</td>
Expand All @@ -177,7 +161,6 @@
<td><ul><li>REQUIRED</li><li>type: string</li><li>must be one of: ['H', 'S', 'P']</li></td>
</tr>
<tr>
<td>16</td>
<td>CANDIDATE STATE</td>
<td>A/N-2</td>
<td>X (error)</td>
Expand All @@ -188,7 +171,6 @@
<td><ul><li>REQUIRED if CANDIDATE_OFFICE equals S</li><li>REQUIRED if CANDIDATE_OFFICE equals H</li><li>type: ['string', 'null']</li><li>min length: 2</li><li>max length: 2</li><li>regex: ^[A-Z]{2}$</li></td>
</tr>
<tr>
<td>17</td>
<td>CANDIDATE DISTRICT</td>
<td>A/N-2</td>
<td>X (error)</td>
Expand All @@ -199,7 +181,6 @@
<td><ul><li>REQUIRED if CANDIDATE_OFFICE equals H</li><li>type: ['string', 'null']</li><li>min length: 2</li><li>max length: 2</li><li>regex: ^[0-9]{2}$</li></td>
</tr>
<tr>
<td></td>
<td>TELEPHONE</td>
<td>N-10</td>
<td></td>
Expand All @@ -210,7 +191,6 @@
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 15</li><li>regex: ^\+\d{1,3} \d{10}$</li></td>
</tr>
<tr>
<td></td>
<td>COUNTRY</td>
<td>Dropdown</td>
<td>X (error)</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/Contact_Committee.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions docs/Contact_Committee_spec.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!DOCTYPE html><html lang="en"><head><title>Contact_Committee</title><link rel="stylesheet" href="spec_table.css"></head><body><table><caption>Specification for Contact_Committee</caption><tr>
<th>COL SEQ</th>
<th>FIELD DESCRIPTION</th>
<th>TYPE</th>
<th>REQUIRED</th>
Expand All @@ -10,7 +9,6 @@
<th>VALIDATION RULES</th>
</tr>
<tr>
<td>1</td>
<td>TYPE</td>
<td>Dropdown</td>
<td>X (error)</td>
Expand All @@ -21,7 +19,6 @@
<td><ul><li>REQUIRED</li><li>must equal: COM</li></td>
</tr>
<tr>
<td>2</td>
<td>COMMITTEE ID</td>
<td>A/N-9</td>
<td>X (error)</td>
Expand All @@ -32,7 +29,6 @@
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 1</li><li>max length: 9</li><li>regex: ^C[0-9]{8}$</li></td>
</tr>
<tr>
<td>3</td>
<td>NAME</td>
<td>A/N-200</td>
<td>X (error)</td>
Expand All @@ -43,7 +39,6 @@
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 1</li><li>max length: 200</li><li>regex: ^[ -~]{0,200}$</li></td>
</tr>
<tr>
<td>4</td>
<td>STREET 1</td>
<td>A/N-34</td>
<td>X (error)</td>
Expand All @@ -54,7 +49,6 @@
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 1</li><li>max length: 34</li><li>regex: ^[ -~]{0,34}$</li></td>
</tr>
<tr>
<td>5</td>
<td>STREET 2</td>
<td>A/N-34</td>
<td></td>
Expand All @@ -65,7 +59,6 @@
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 34</li><li>regex: ^[ -~]{0,34}$</li></td>
</tr>
<tr>
<td>6</td>
<td>CITY</td>
<td>A/N-30</td>
<td>X (error)</td>
Expand All @@ -76,7 +69,6 @@
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 1</li><li>max length: 30</li><li>regex: ^[ -~]{0,30}$</li></td>
</tr>
<tr>
<td>7</td>
<td>STATE</td>
<td>A/N-2</td>
<td>X (error)</td>
Expand All @@ -87,7 +79,6 @@
<td><ul><li>REQUIRED</li><li>type: string</li><li>min length: 1</li><li>max length: 2</li><li>regex: ^[ -~]{0,2}$</li></td>
</tr>
<tr>
<td>8</td>
<td>ZIP</td>
<td>A/N-9</td>
<td>X (error)</td>
Expand All @@ -98,7 +89,6 @@
<td><ul><li>REQUIRED if COUNTRY equals USA</li><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 9</li><li>regex: ^[ -~]{0,9}$</li></td>
</tr>
<tr>
<td>12</td>
<td>TELEPHONE</td>
<td>N-10</td>
<td></td>
Expand All @@ -109,7 +99,6 @@
<td><ul><li>type: ['string', 'null']</li><li>min length: 0</li><li>max length: 15</li><li>regex: ^\+\d{1,3} \d{10}$</li></td>
</tr>
<tr>
<td></td>
<td>COUNTRY</td>
<td>Dropdown</td>
<td>X (error)</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/Contact_Individual.html

Large diffs are not rendered by default.

Loading

0 comments on commit c9cb19f

Please sign in to comment.