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

Add Mur disposition category filter #5988

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/integration/test_current_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ def test_mur_with_disposition(self, get_bucket, get_credential):
'dispositions': [
{
'disposition': 'Conciliation-PPC',
'mur_disposition_category_id': '7',
'respondent': 'Open Elections LLC',
'penalty': Decimal('50000.00'),
'citations': [
Expand Down
14 changes: 10 additions & 4 deletions webservices/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ def make_seek_args(field=fields.Int, description=None):

'case_no': fields.List(IStr, required=False, description=docs.CASE_NO),
'case_respondents': IStr(required=False, description=docs.CASE_RESPONDONTS),
'case_dispositions': fields.List(IStr, required=False, description=docs.CASE_DISPOSTIONS),
'case_election_cycles': fields.Int(required=False, description=docs.CASE_ELECTION_CYCLES),
'case_min_open_date': Date(required=False, description=docs.CASE_MIN_OPEN_DATE),
'case_max_open_date': Date(required=False, description=docs.CASE_MAX_OPEN_DATE),
Expand All @@ -362,15 +361,22 @@ def make_seek_args(field=fields.Int, description=None):
'case_statutory_citation': fields.List(IStr, required=False, description=docs.STATUTORY_CITATION),
'case_citation_require_all': fields.Bool(description=docs.CITATION_REQUIRE_ALL),
'q_exclude': IStr(required=False, description=docs.Q_EXCLUDE),

# case_doc_category_id is the key of case_document_category
'case_doc_category_id': fields.List(IStr(
validate=validate.OneOf(
['1', '2', '3', '4', '5', '6', '1001', '1002', '1003', '1004', '1005', '1006', '2001'])),
['', '1', '2', '3', '4', '5', '6', '1001', '1002', '1003', '1004', '1005', '1006', '2001'])),
description=docs.CASE_DOCUMENT_CATEGORY_DESCRIPTION),

'mur_type': fields.Str(
required=False, validate=validate.OneOf(["archived", "current"]), description=docs.MUR_TYPE),
'mur_disposition_category_id': fields.List(IStr(
validate=validate.OneOf([
'', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10',
'11', '12', '13', '14', '15', '16', '17', '18', '19', '20',
'21', '22', '23', '24', '25', '26', '27', '28', '29', '30',
'31', '32', '33', '34', '35', '36', '37', '38', '39', '40',
'41', '42', '43', '44', '45', '46', '47', '48'])),
description=docs.MUR_DISPOSITION_CATEGORY_DISCRIPTION
),

'af_name': fields.List(IStr, required=False, description=docs.AF_NAME),
'af_committee_id': Committee_ID(required=False, description=docs.AF_COMMITTEE_ID),
Expand Down
54 changes: 53 additions & 1 deletion webservices/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2190,7 +2190,7 @@ def add_ytd(var):
'''

CASE_DOCUMENT_CATEGORY_DESCRIPTION = '''
Select one or more case_doc_category_id to filter by corresponding CASE_DOCUMENT_CATEGORY:\n\
Select one or more case document category id to filter by corresponding case document category:\n\
- 1 - Conciliation and Settlement Agreements\n\
- 2 - Complaint, Responses, Designation of Counsel and Extensions of Time\n\
- 3 - General Counsel Reports, Briefs, Notifications and Responses\n\
Expand All @@ -2206,6 +2206,58 @@ def add_ytd(var):
- 2001 - Administrative Fine Case\n\
'''

MUR_DISPOSITION_CATEGORY_DISCRIPTION = '''
Select one or more MUR disposition category id to filter by corresponding MUR disposition category:\n\
- 1 - Approved by Commission\n\
- 2 - Approved In Part Recs.\n\
- 3 - Approved Recs.\n\
- 4 - Case Activated\n\
- 5 - Case Activation\n\
- 6 - Conciliation-PC\n\
- 7 - Conciliation-PPC\n\
- 8 - Dismiss and Remind\n\
- 9 - Dismissed\n\
- 10 - Dismissed - Agreement Rejected\n\
- 11 - Dismissed-Low Rated\n\
- 12 - Dismissed-Other\n\
- 13 - Dismissed-Stale\n\
- 14 - Dismiss pursuant to prosecutorial discretion\n\
- 15 - Dismiss pursuant to prosecutorial discretion, and caution\n\
- 16 - Enforcement - Disposition - Dismissed "Dismiss" - Dismiss and Caution\n\
- 17 - Failed to Approve Recs.\n\
- 18 - First General Counsel Report\n\
- 19 - Formal Discovery Authorized\n\
- 20 - Investigative Activity\n\
- 21 - Mailed to Respondent\n\
- 22 - Merged\n\
- 23 - No PCTB\n\
- 24 - No RTB\n\
- 25 - Offer from Respondent Received\n\
- 26 - Other\n\
- 27 - PC Brief\n\
- 28 - PC Conciliation Approved\n\
- 29 - PC/NFA\n\
- 30 - PCTB Finding\n\
- 31 - Pre-PCC Commenced\n\
- 32 - Received\n\
- 33 - Received from Audit Division\n\
- 34 - Received from Commission\n\
- 35 - Received from OGC\n\
- 36 - Received from RAD\n\
- 37 - Request for Extension of Time Approved\n\
- 38 - Request for Extension of Time Approved/Denied\n\
- 39 - Request for Extension of Time Received\n\
- 40 - Response Received\n\
- 41 - RTB Finding\n\
- 42 - RTB/NFA\n\
- 43 - Settlement Agreement\n\
- 44 - Suit Authorization\n\
- 45 - Take no action\n\
- 46 - Take No Further Action\n\
- 47 - To Respondent\n\
- 48 - Transferred to ADR\n\
'''

MUR_TYPE = '''
Type of MUR : current or archived
'''
Expand Down
Loading