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

Added some additional comments to version service. #273

Merged
merged 1 commit into from May 20, 2019
Merged

Conversation

justinlittman
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented May 20, 2019

Coverage Status

Coverage remained the same at 98.142% when pulling 831e9b5 on version_comments into c612559 on master.

@@ -20,10 +20,15 @@ def initialize(work)
# @option opts [Hash] :vers_md_upd_info If present, used to add to the events datastream and set the desc and significance on the versionMetadata datastream
# @raise [Dor::Exception] if the object hasn't been accessioned, or if a version is already opened
def open(opts = {})
# Object has been accessioned at least once.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure what this means. Does this mean "this method should only be called on an object that has been accessioned at least once?"

# During local development, we need a way to open a new version even if the object has not been accessioned.
raise(Dor::Exception, 'Object net yet accessioned') unless
opts[:assume_accessioned] || Dor::Config.workflow.client.lifecycle('dor', work.pid, 'accessioned')
# Raised if for the current version, there are are any incomplete wf steps and there is a versionWF.
Copy link
Contributor

Choose a reason for hiding this comment

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

Rephrase "Raised when the current version has any incomplete workflow steps and there is a versionWF"

raise Dor::VersionAlreadyOpenError, 'Object already opened for versioning' if open?
# Raised if for the current version, there are any incomplete wf steps and there is an accessionWF.
# The submittedWF is part of the accessionWF.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/submittedWF/submitted milestone

raise Dor::VersionAlreadyOpenError, 'Object already opened for versioning' if open?
# Raised if for the current version, there are any incomplete wf steps and there is an accessionWF.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be rephrased to "Raised when the current version has any incomplete workflow steps and there is an accessionWF"

@justinlittman
Copy link
Contributor Author

@jcoyne Fixed all.

@jcoyne jcoyne merged commit 9485378 into master May 20, 2019
@jcoyne jcoyne deleted the version_comments branch May 20, 2019 15:47
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.

None yet

3 participants