You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On our Operator model, we have configured the documents and contacts fields to be a Many-to-Many (M2M) relationship. It should instead be a One-to-Many relationship - we don't ever want multiple operators to have access to the same document or contact model instances.
Tech Debt Triage
The purpose of our technical debt triage process is to analyze technical debt to determine risk level of the technical debt and the value in tackling that technical debt.
Risk Value Scoring:
Level
Value
High
3
Medium
2
Low
1
Technical Debt - Risk Types
Level
Value
Business Area Risk - Risk of business area visibility / damage to user experience
0
3
Developer Fault Risk - How likely will this tech debt cause a future error related to coding on top of it
0
3
System Fault Risk - Risk of system errors or application downtime
0
1
Time Scale Risk - Compound risk effect if left alone. How much more difficult to fix or dangerous will this become over time?
0
2
Time Sink Risk - How much will this tech debt slow the development process down
0
1
TOTAL SCORE:
0
10
Development Checklist:
delete the documents and contacts fields on the Operator model (shouldn't negatively impact prod data - the OperatorDocuments and OperatorContacts tables are empty)
delete the documents M2M field on the Operation model -- documents are operation-specific
add an operation = models.ForeignKey() field on the Document model
(no action required - the operation-contacts M2M field should remain as is)
run the django script to auto-generate a new migration
if necessary, update mock data fixtures
The text was updated successfully, but these errors were encountered:
Sepehr-Sobhani
changed the title
Reg2 - replace M2M fields for contacts & documents on Operator model [10]
Reg2 - replace M2M fields for contacts & delete documents on Operator model [10]
Jan 14, 2025
As part of this ticket, we need to update the code to incorporate the new reference. Instead of using an M2M relation (.set() or .add()), we now need to associate the operator directly with the contact table.
Description of the Tech Debt
On our
Operator
model, we have configured thedocuments
andcontacts
fields to be a Many-to-Many (M2M) relationship. It should instead be a One-to-Many relationship - we don't ever want multiple operators to have access to the same document or contact model instances.Tech Debt Triage
The purpose of our technical debt triage process is to analyze technical debt to determine risk level of the technical debt and the value in tackling that technical debt.
Risk Value Scoring:
Development Checklist:
documents
andcontacts
fields on theOperator
model (shouldn't negatively impact prod data - the OperatorDocuments and OperatorContacts tables are empty)documents
M2M field on theOperation
model -- documents are operation-specificoperation = models.ForeignKey()
field on theDocument
modelThe text was updated successfully, but these errors were encountered: