PublicDataWorks / complaint-manager

Apache License 2.0
5 stars 0 forks source link

Clean up the existing table data #564

Open rnair-tw opened 7 months ago

rnair-tw commented 7 months ago

User Story

As a user who wants keep my data in the system accurate and up to date I want to be able to see fields I understand in my data table So that I am clear about my data in the system

Business Context:

In #528 we exposed previously hidden user data through a table visualization. We now want to restructure and clean up this data so that users are not confused by what they see taken from the raw data tables. This will make it easier for any maintenance moving forward.

In Scope

CARD 1: changes on officers table

CARD 2: changes on cases_officers table

CARD 3: fully update seeders

Acceptance Criteria

There's no mention of windows_username in the codebase or in any database, including local, CI, staging, and prod. Instead, we use employee_id.

When I look at any officer in the officer's table, their supervisor_employee_id accurately points to the employee id of their supervisor. This is true in all environments.

When I look at any row in cases_officer, the supervisor_employee_id accurately points to the employee id of the corresponding supervisor. This is true in all environments.

There's no mention of officer_number in the codebase or in any database.

supervisor_officer_number has been removed and supervisor_employee_id is the new foreign key

Notes

Placeholder card; work is being done in new cards

Checklist

Kickoff

Deskcheck

rnair-tw commented 7 months ago

This needs to be broken down into multiple stories, group the inscope stories into what needs to be done together