-
Notifications
You must be signed in to change notification settings - Fork 106
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
Remove undisplay MUR disposition category #6047
base: release/public-20241112
Are you sure you want to change the base?
Remove undisplay MUR disposition category #6047
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release/public-20241112 #6047 +/- ##
===========================================================
- Coverage 86.59% 86.58% -0.02%
===========================================================
Files 82 82
Lines 9080 9088 +8
===========================================================
+ Hits 7863 7869 +6
- Misses 1217 1219 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fec-jli In docs.py you need to update the MUR_DISPOSITION_CATEGORY_DISCRIPTION
constant to include just the new 18 disposition categories and remove the rest.
|
||
# Get the allowed displayed MUR disposition category list from table fecmur.ref_case_disposition_category | ||
category_list = [dict(row) for row in conn.execute(CASE_DISPOSITION_CATEGORY, "MUR")] | ||
# print(category_list): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fec-jli can you remove the print statement and all the commented lines from this file after line#627? docs.py already have all the description i think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, Thanks @pkfec
916d7f1
to
aefd985
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fec-jli mur_dispostion_category filter works as expected, thanks!
Summary (required)
This PR add a new table (fecmur.ref_case_disposition_category) to store displayed final disposition categories for three cases (MUR, ADR and AF)
The new MUR disposition category list:
ref_case_disposition_category.csv
Required reviewers
1-2 developers
Impacted areas of the application
legal search endpoint
Completion criteria
Related PRs
#5988
#5991
How to test
1)Checkout branch
2)Setup local ES
3Upload legal doc on local ES.
These commands for reference:
python cli.py create_index case_index
python cli.py delete_index case_index
python cli.py load_adrs
python cli.py load_admin_fines
python cli.py load_current_murs
python cli.py load_current_murs 8182
4)
pytest
andflask run
5)Test urls
http://127.0.0.1:5000/v1/legal/search/?type=murs&case_no=8182
there are 8 items under
dispositions
section that allmur_disposition_category_id": 6,
compare with prod:
https://api.open.fec.gov/v1/legal/search?type=murs&case_no=8182
&api_key=DEMO_KEY
There are 9 items under
dispositions
section (mur_disposition_category_id": 12,
)that include one unpublished dispositon
mur_disposition_category_id": "37"
,6)make sure filter by mur_disposition_category_id work correctly
http://127.0.0.1:5000/v1/legal/search/?type=murs&mur_disposition_category_id=6
7)test in dev (MUR documents already are upload to dev)
https://fec-dev-api.app.cloud.gov/v1/legal/search?type=murs&case_no=8182&api_key=DEMO_KEY