Remove all application code for WorkItems::RelatedLinkRestriction and remove fk to work item types

What does this MR do and why?

As a follow up to !199664 (merged), now that we don't rely on the rows seeded in the work_item_related_link_restrictions table.

This MR removes all of the application code related to the ActiveRecord model, the importer and it's specs. Additionally, there is a post deploy migration to remove the FK references to work_item_types. This is a precursor to dropping the table for safety as per the docs

This can all be in a single migration if you’re sure the code is not used. If you want to reduce risk slightly, consider putting the migrations into a second merge request after the application changes are merged. This approach provides an opportunity to roll back.

I am quite confident, but prefer to be cautious 😄

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #553478 (closed)

Edited by Nasser Zahrani

Merge request reports

Loading