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

Convert resource map to Drupal Entity API #4027

Merged
merged 46 commits into from Feb 5, 2024
Merged

Conversation

paul-m
Copy link
Contributor

@paul-m paul-m commented Sep 24, 2023

  • Creates a full-fledged resource mapping db table as a content entity: ResourceMapping.
    • All the columns in the current mapping schema are defined as base fields (that is, non-attached fields).
    • The table name is the same as the current abstract table implementation: dkan_metastore_resource_mapper
  • Adapt DataResource, Referencer, and ResourceMapper to use the ResourceMapping entity.
  • Add and update tests.

(internal: 17017)

@janette janette added the 2.17 label Dec 29, 2023
@paul-m paul-m marked this pull request as ready for review January 11, 2024 16:50
@dafeder dafeder self-requested a review January 26, 2024 18:54
@paul-m
Copy link
Contributor Author

paul-m commented Feb 1, 2024

Maybe we should add the content add/edit/delete niceties given the existence of #3824

Copy link
Member

@dafeder dafeder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions for more explanatory code comments

modules/metastore/src/ResourceMapper.php Show resolved Hide resolved
@dafeder dafeder merged commit a34c2ab into 2.x Feb 5, 2024
13 checks passed
@dafeder dafeder deleted the entity-resource-mapping branch February 5, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants