#5433 - Improve database_relations with hooks

  • By
  • Added
  • 5 views
Identifier #5433
Issue type Feature request or suggestion
Title Improve database_relations with hooks
Status Open
Tags

Roadmap: Over the horizon (custom)

Handling member Deleted
Addon core
Description Currently, database relations are defined in database_relations.php . However, get_table_purpose_flags, get_table_descriptions, and get_relation_map are usually addon-based.

Perhaps migrate these to addon_registry hook functions for relevant addons.

Another nice feature we could possibly add is a unit test that checks get_relation_map and ensures that, when mapping to fields of tables in other addons (as defined in get_table_purpose_flags perhaps), the relevant addons are listed under "requires" or "recommends" and is not listed under "conflicts with".
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated