bcgov / NRPTI

Natural Resources Public Transparency Initiative
Apache License 2.0
5 stars 15 forks source link

Update BCOGC importers to reflect new act title, using BC Laws API if possible #1179

Closed RFK250 closed 6 months ago

RFK250 commented 9 months ago

Describe the task Update BCOGC importers to use "Energy Resource Activities Act" instead of "Oil and Gas Activities Act" - ideally, using the BC Laws Restful API to do it.

Purpose

  1. When the BC Oil and Gas Commission got renamed to BC Energy Regulator, the name of its parent act was also changed (see description above) - this needs to be changed in NRCED to reflect this.
  2. Currently, the names of acts and regs are hard coded into records. Since NRPTI/NRCED was developed, the BC Laws API has been released. If we use that API to get data for NRCED records on import, then whenever an act changes names (rare) or a section number is changed (more common), then it decreases the risk that development work will be needed just to change those things. This is valuable because it automates a change, reducing costs and effort, and maintains the accuracy of records on NRCED.

Acceptance Criteria

Additional AC for using BC Laws API

Additional context

acatchpole commented 6 months ago

Current strategy :

RFK250 commented 6 months ago

I love this approach not just because it solves the immediate problem and sets the stage for avoiding it in the future, but also because in the long run it opens the door to a future ticket to automatically get descriptions via the API from regulations like this one. Lots of potential value there in improved workflows, automation, and a consistent user experience. Stay on this path. :)

cc @malafry @jakemorr you should consider exploring this at the user story level.

sanjaytkbabu commented 6 months ago

Deployed to dev: https://nrpti-f00029-dev.apps.silver.devops.gov.bc.ca

RFK250 commented 6 months ago

It looks like all the all the AC are met! @jakemorr I would accept this ticket. cc @malafry

sanjaytkbabu commented 6 months ago

deployed to prod