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

Refactor Wings::Valkyrie::ResourceFactory to use a converter class #3503

Merged
merged 1 commit into from
Feb 1, 2019

Conversation

no-reply
Copy link
Member

Introduces Wings::ActiveFedoraConverter and uses it in the
ResourceFactory. The converter knows how to get an id and attributes to build
an AF model for a given ValkyrieResource.

It currently counts on #internal_resource being present, and assumes that the
id is the first entry in #alternate_ids. We may need to revisit either of
these assumptions later.

@samvera/hyrax-code-reviewers

lib/wings/active_fedora_converter.rb Outdated Show resolved Hide resolved
revgum
revgum previously approved these changes Jan 31, 2019
@no-reply no-reply force-pushed the valkyrie-resource-factory-spec branch from 1b76743 to 1bafdcd Compare January 31, 2019 20:55
@laritakr laritakr added the wings label Jan 31, 2019
@no-reply no-reply force-pushed the valkyrie-resource-factory-spec branch 3 times, most recently from 9672cb0 to 9d4e939 Compare February 1, 2019 15:08
revgum
revgum previously approved these changes Feb 1, 2019
Introduces `Wings::ActiveFedoraConverter` and uses it in the
`ResourceFactory`. The converter knows how to get an id and attributes to build
an AF model for a given `ValkyrieResource`.

It currently counts on `#internal_resource` being present, and assumes that the
id is the first entry in `#alternate_ids`. We may need to revisit either of
these assumptions later.
@no-reply no-reply force-pushed the valkyrie-resource-factory-spec branch from eac8bc2 to bf0bf4b Compare February 1, 2019 16:19
@no-reply no-reply merged commit e2a0259 into master Feb 1, 2019
@no-reply no-reply deleted the valkyrie-resource-factory-spec branch February 1, 2019 16:56
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