Skip to content

Rulemaking comment eligibility logic #6460

@patphongs

Description

@patphongs

What we’re after

Comment eligibility logic

Rulemaking was marked with “is_open_for_comment=true" at the rulemaking level.
Individual documents were marked as "is_comment_eligible = false”. We need this to be true as well in order for the comment button to appear.

If either the admin close date or comment close date is set, and that date is not earlier than today, the is_open_for_comment flag is set to true; otherwise, it is set to false.
The is_comment_eligible flag logic is determined at the document level. It is set to true when all of the following conditions are met:
doc.category_id = 4
is_open_for_comment = true
At least one qualifying calendar event exists for the rulemaking (i.e., a calendar event from the approved list)
If any of these conditions are not met, is_comment_eligible is set to false.

Key Event Hierarchy Description
106881 Policy - Notice of Availability (NOA) - close of comment period close of comment period
107212 Policy - Request for Additional Comment - close of comment period close of comment period
112434 Policy - Reopening of Comment Period - close of comment period close of comment period
108851 Policy - Interim Rule - close of comment period close of comment period
107093 Policy - Notice of Proposed Rulemaking (NPRM) - close of comment period close of comment period
112588 Policy - Notice of Disposition (NOD) - close of comment period close of comment period
106993 Policy - Notice of Inquiry (NOI) - close of comment period close of comment period
107034 Policy - Advance Notice of Proposed Rulemaking (ANPRM) - close of comment period close of comment period
112451 Policy - Supplemental Notice of Proposed Rulemaking (NPRM) - close of comment period close of comment period
108818 Policy - Extension of Comment Period - close of extended comment period close of extended comment period

Action items:

Confirm with OGC that the calendar events mentioned are indeed the required ones, and that the referenced logic is triggered when a new rulemaking is submitted from the LawManager and FRAPS systems.

Completion criteria

  • is_comment_eligible flag is set at document level when its eligible for comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions