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

Update versioning service to support Valkyrie #5886

Merged
merged 3 commits into from
Oct 11, 2022
Merged

Conversation

marrus-sh
Copy link
Collaborator

  • Allow instances of VersioningService to be created and used to access the versions of a resource
  • Update the Wings Version struct to support some additional properties needed by the versioning presenter (namely created)
  • Initial set of tests for Valkyrie versioning behaviour

See #5876.

Things I’m curious about:

  • Is this appropriation of VersioningService acceptable?
  • What additional tests are necessary here?

@no-reply
Copy link
Contributor

no-reply commented Oct 3, 2022

i think the extension of VersioningService here is great---it doesn't seem to introduce a ton of complexity.

i'm pretty happy with the tests as-is. they seem appropriately scoped to the interface on VersioningService. the only thing that comes to mind is that a "many" case might be wanted (in addition to "one" and "two", or in place of "two"), but i wouldn't block on it, especially given how the implementation depends on #versions_list.

👍🏻

no-reply
no-reply previously approved these changes Oct 3, 2022
- Allow instances of `VersioningService` to be created and used to
  access the versions of a resource
- Update the Wings `Version` struct to support some additional
  properties needed by the versioning presenter (namely `created`)
- Initial set of tests for Valkyrie versioning behaviour
Also adds tests for `#versions` in VersioningService in addition to
the existing static method tests.
@marrus-sh marrus-sh force-pushed the valkyrie-versioning branch from 9299dba to ad4c320 Compare October 3, 2022 23:04
no-reply
no-reply previously approved these changes Oct 3, 2022
no-reply
no-reply previously approved these changes Oct 3, 2022
This makes the presenter code cleaner and provides a standard fallback
when attempting to access versioning for a file which does not exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-valkyrie Release Notes: Valkyrie specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants