You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a supervisor I want know which Version of a Task I'm reviewing so that when I approve the Task I now that I approved a certain Version along with the Task.
Acceptance Criteria
Add a new column to Review class which holds the Version relation (Review.version and Review.version_id).
Update Review.__init__() to accept a Version instance with the version argument.
Add a _validate_version method:
Validates the Version instance.
Check if the Version.task is matching Review.task.
Update Task class:
Update Task.request_review to accept a Version instance.
Add a new request_review method for the Version class that calls the Version.task.request_review() and attaches itself to the review.
Add Alembic migration scripts:
Add the Reviews.version_id column.
The text was updated successfully, but these errors were encountered:
- [#121] Added `Version.reviews` mapped column.
- [#121] Added `Version.request_review()` which is a shortcut to the `request_review` method in the related `Task` instance.
User Story
As a supervisor I want know which
Version
of aTask
I'm reviewing so that when I approve theTask
I now that I approved a certainVersion
along with theTask
.Acceptance Criteria
Review
class which holds theVersion
relation (Review.version
andReview.version_id
).Review.__init__()
to accept aVersion
instance with theversion
argument._validate_version
method:Version
instance.Version.task
is matchingReview.task
.Task
class:Task.request_review
to accept aVersion
instance.request_review
method for theVersion
class that calls theVersion.task.request_review()
and attaches itself to the review.Reviews.version_id
column.The text was updated successfully, but these errors were encountered: