codeforboston / codeforboston/police-data-trust

Add location linking to PATCH `/agency/{agency_uid}`

Open
#449 1 comment 0 reactions 1 assignee Claimed by @icodesohard View on GitHub
backend
Dominant language
Python
Stars
64
Forks
102
PR merge metrics
No merged PRs in 30d

Description

When an agency is created, it is linked to the location nodes that correspond with the entered data. We should add similar logic to the edit function so that the data and node relationships can remain in sync after changes.

After an edit operation, the old locations should be checked to see if they're still valid. If they are not, the old links should be removed and new links should be added.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.