Skip to content

Propagate license ID across feeds sharing the same license URL #1575

@davidgamez

Description

@davidgamez

Describe the problem

When a license is manually set for a feed, other feeds that reference the same license URL often remain unassigned.
Since license URLs are already normalized and matched in the system, we can leverage this to simplify operations and reduce human error by automatically propagating a license ID to related feeds.

Proposed solution

  • Add an operations-only endpoint (not public API) that:
    • Accepts a source feed ID (or license ID + license URL).
    • Retrieves the normalized license URL for that feed.
    • Finds all other feeds with the same normalized license URL.
    • Updates those feeds to use the same license_id.
    • Add a dry-run parameter to help the retool user to identify the feed that will be affected without persisting the changes
  • Add a retool process(button + modal dialog) within the license section of the feed. (This can be on its own issue)

Safeguards:

  • Only update feeds where license_id is currently NULL (or optionally allow override via a flag).
  • Log or return the list/count of feeds updated for traceability.

Alternatives you've considered

Propagate the license id when the feed license is changed in the retool app. I discarded this one as it's unclear to the retool user that changing one feed license affects other feeds.

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions