Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for RFAI filings #1826

Merged
merged 2 commits into from
Mar 5, 2018
Merged

Fixes for RFAI filings #1826

merged 2 commits into from
Mar 5, 2018

Conversation

patphongs
Copy link
Member

@patphongs patphongs commented Mar 2, 2018

Summary (required)

Missing from candidate pages

RQ-5s - Request for Additional Information (RFAI) referencing the Statement of Candidacy. Test URL: http://localhost:8000/data/candidate/H8AR04122/?tab=about-candidate

Missing from committee pages

RQ-1 - RFAI referencing the Statement of Organization. Test URL: http://localhost:8000/data/committee/C00637983/?tab=filings
RQ-2 - RFAI referencing Report of Receipts and Expenditures. Test URL: http://localhost:8000/data/committee/C00637983/?tab=filings
RQ-9 - Multicandidate status. Test URL: http://localhost:8000/data/committee/C00659672/?tab=filings

Impacted areas of the application

List general components of the application that this PR will affect:

  • Committee filing page
  • Candidate about page

Screenshots

RFAIs of RQ 2 Only

screen shot 2018-03-02 at 10 06 17 am

RFAIs of RQ 1 Only

screen shot 2018-03-02 at 10 06 27 am

RFAIs of RQ 9 Only

screen shot 2018-03-02 at 10 05 58 am

RFAIs of RQ 5 Only

screen shot 2018-03-04 at 10 36 26 pm

@patphongs patphongs changed the title fixed RFAI filings for RQ1, RQ2, and RQ5 to go into correct table. [WIP] Fixes for RFAI filings Mar 2, 2018
@patphongs patphongs changed the title [WIP] Fixes for RFAI filings Fixes for RFAI filings Mar 5, 2018
@patphongs patphongs requested review from lbeaufort and llienfec March 5, 2018 03:42
@codecov-io
Copy link

Codecov Report

Merging #1826 into develop will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1826      +/-   ##
===========================================
- Coverage    79.42%   79.39%   -0.04%     
===========================================
  Files           45       45              
  Lines         3261     3261              
  Branches       488      488              
===========================================
- Hits          2590     2589       -1     
- Misses         671      672       +1
Impacted Files Coverage Δ
fec/fec/static/js/modules/toc.js 97.43% <0%> (-2.57%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 501b8f3...a0d2a2f. Read the comment docs.

Copy link
Member

@lbeaufort lbeaufort left a comment

Choose a reason for hiding this comment

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

Great work, Pat! I have some questions about constructing the API calls.

form_type: 'F99'
form_type: ['F99','RFAI'],
//exclude all request types except for RQ-5: RFAI referencing Statement of Candidacy
request_type: ['-1','-2','-3','-4','-6','-7','-8','-9'],
Copy link
Member

Choose a reason for hiding this comment

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

Could we just say request_type: ['5'] here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @lbeaufort! Sounds like you figured it out why I had to do it this way. Let me know if you have any further questions.

@@ -571,7 +571,10 @@ $(document).ready(function() {
query: _.extend({
form_type: ['F3', 'F3X', 'F3P', 'F3L', 'F4', 'F5', 'F7', 'F13', 'RFAI'],
report_type: ['-24', '-48'],
sort: ['-coverage_end_date', 'report_type_full', '-beginning_image_number']
//exclude all request types except for RQ-2: RFAI referencing Report of Receipts and Expenditures
request_type: ['-1','-3','-4','-5','-6','-7','-8','-9'],
Copy link
Member

Choose a reason for hiding this comment

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

Could we just say request_type: ['2'] here?

form_type: ['F1']
form_type: ['F1','RFAI'],
//exclude all request types except for RQ-1: RFAI referencing Statement of organization
request_type: ['-2','-3','-4','-5','-6','-7','-8','-9'],
Copy link
Member

Choose a reason for hiding this comment

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

See above - can we just filter for RQ-1's here?

form_type: ['F1M', 'F8', 'F99', 'F12']
form_type: ['F1M', 'F8', 'F99', 'F12','RFAI'],
//exclude all request types except for RQ-9: RFAI referencing Multicandidate status
request_type: ['-1','-2','-3','-4','-5','-6','-7','-8'],
Copy link
Member

Choose a reason for hiding this comment

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

Same comments above - can we just filter for RQ-9?

@lbeaufort
Copy link
Member

@patphongs disregard - this trips me up every time. Once I tested out I realized that specifying the request type would return only those RQ-X's and not the reports as well. Looks good so far!

@lbeaufort lbeaufort merged commit 6faa7b8 into develop Mar 5, 2018
@lbeaufort
Copy link
Member

Great work, @patphongs! Your PR description and local testing links were very helpful.

@lbeaufort lbeaufort deleted the feature/1760-fix-rfai-ms-filings branch March 5, 2018 16:29
@llienfec
Copy link
Contributor

llienfec commented Mar 6, 2018

Great work on this @patphongs and thanks for the thoughtful comments @lbeaufort.

Copy link
Contributor

@llienfec llienfec left a comment

Choose a reason for hiding this comment

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

Headers where each RFAI type should show up look good to me.

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

Successfully merging this pull request may close these issues.

4 participants