Skip to content

F/2393 add custom config support #9

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

Merged
merged 2 commits into from
Nov 16, 2021

Conversation

sonofflynn89
Copy link
Collaborator

@sonofflynn89 sonofflynn89 commented Nov 15, 2021

As part of 2393, this plugin now utilizes the custom configuration found at site.data.feeds.dcatAP201.

In order to accomplish this, I overhauled the plugin to:

  • Follow the functional (rather than object oriented) model. This allowed for flexibility in handling different feed schemas.
  • Utilize the adlib library to interpolate the dynamic feed schemas.
  • Scrub protected fields from custom configurations and merge remaining customizations with the default schema.
  • Test situations where custom configurations are used.

Many changes were made to bring this plugin into better alignment with the DCAT-US 1.1 plugin, which already had this functionality.

…AP201

- The plugin now uses the adlib library to populate feeds
- The DcatDataset class has been converted into functions
@sonofflynn89
Copy link
Collaborator Author

I highly recommend viewing the changes in the VSCode Web View by pressing . while in the files tab.

Copy link
Contributor

@drspacemanphd drspacemanphd left a comment

Choose a reason for hiding this comment

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

Great job. More or less the same as how we do it in 1.1

@sonofflynn89 sonofflynn89 merged commit 817c1cf into main Nov 16, 2021
@drewdaemon
Copy link
Contributor

Really nice work @sonofflynn89 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants