Skip to content

Update activity applicable_to to match regs #4110

@acatchpole

Description

@acatchpole

Describe the task

Update the applicable_to values to match the values in AC

Description of the Tech Debt
Now that we've built some LFO activities, we should update the list of activities to only show the relevant activities and source types to the SFO/LFO as options. The activity model already has an applicable_to column that we can use to filter on when populating the list of activities shown to the user.

UPDATES:
Due to the way GGERR is written, LFOs and SFOs report on some different activities from Table 1 and Table 2. Because of this, BCIERS should only show operations the relevant activities based on their Operation type (LFO/SFO).

Acceptance Criteria
Given that my Operation type is LFO
Then the list of activities I see matches the LFO-specific list from (Registration Pt 2. Fields excel)

Given that my Operation Type is SFO
Then the list of activities I see matches the SFO-specific list from (Registration Pt 2. Fields excel)

Definition of Done

  • update Activity model so that applicable_to accepts enum[Single Facility Operation, Linear Facilities Operation, all]
  • create a migration to update all applicable_to values to match the lists in the AC
  • third

Additional context

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions