Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul the directory datastructure to include "Domain" as a child of "Source", to cover cases where a source has changed its domain #962

Open
pgulley opened this issue Feb 3, 2025 · 1 comment
Labels
api Issues or improvements related to the backend api directory enhancement New feature or request

Comments

@pgulley
Copy link
Member

pgulley commented Feb 3, 2025

This is a pretty major database structure change- add a new layer of abstraction, differentiating between a "Source" - representing a news outlet in the most general sense- and a "Domain" - representing a specific webpage which we attempt to index content from. A source should be able to have multiple Domains.

@pgulley pgulley added api Issues or improvements related to the backend api directory enhancement New feature or request labels Feb 3, 2025
@rahulbot
Copy link
Collaborator

rahulbot commented Feb 4, 2025

Any simplicity to be derived by making that a source_aliases table instead of a source_domains table? That would allow source.name to still exist as the primary domain like it is now, but allow a small number of sources to have optional entries in the "alias" table. We'd add a button to the source editing page that allows for converting, creating an entry in alias tabe, automatically copying over feeds, and then deleting. Just wondering if that simplifies for this edge case, or is more complex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues or improvements related to the backend api directory enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants