-
Notifications
You must be signed in to change notification settings - Fork 40
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
Withdrawn AO issue #1390
Comments
Looks like the logic here is the cause: https://github.com/18F/fec-cms/blob/develop/fec/fec/static/js/legal/SearchResults.js#L15 |
Currently, the AO endpoint has a boolean |
It looks like in the database, the |
Unless there is diligence over the AO summary, |
@vrajmohan I agree - I don't like programming around inconsistent data. Maybe a better option would be to explore updating the data on our end so Stage = |
Agreed-upon solution is to hard-code the withdrawn AO that is marked as final in the database until its stage can be changed to withdrawn in the database.
|
It appears that a few withdrawn AOs are not showing up as withdrawn within the
Date issued
column. These AOs include AO 2017-11 and AO 2009-05.https://www.fec.gov/data/legal/search/advisory-opinions/?type=advisory_opinions&ao_category=W
Verify that ao.stage data maps to AO status (0 = pending, 2 = withdrawn, 1 = final)
Replace AO
is_pending
with withao_status
Verify searches still work in API where
ao_category=W
Test AO search with
status
parameterCMS - change logic for display date for withdrawn AO's to check AO status, not date = 1/1/1900. This was providing unreliable data.
Test AO 2009-05
Test AO 2017-11
Thanks @vrajmohan for your help!
The text was updated successfully, but these errors were encountered: