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

feat: serial workflow advance fix #2149

Merged
merged 5 commits into from
Jan 2, 2024

Conversation

nsprenkle
Copy link
Contributor

TL;DR - Check both graded and complete workflow status indicators to confirm we've completed a workflow step instead of just complete.

What changed?

In the new ORA UI we serially progress through steps, blocking movement forward to a subsequent step until all requirements are met for the current step. This blocks us from determining workflow status directly (as previously, we would jump forward as far as you are able to view, skipping peer if it was followed by an additional step) and requires us to manually determine how far we have progressed.

Previous checks incorrectly determined this by only checking complete (whether you have finished your required work on a step) instead of also checking graded (whether you have received required external grades e.g. from peers).

This adds the additional check that both complete and graded must be True for a step to be considered finished.

Developer Checklist

Reviewer Checklist

Collectively, these should be completed by reviewers of this PR:

  • I've done a visual code review
  • I've tested the new functionality

FYI: @openedx/content-aurora

Copy link

codecov bot commented Dec 20, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (671bbc5) 94.93% compared to head (78f3251) 94.93%.

Files Patch % Lines
openassessment/xblock/apis/workflow_api.py 60.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2149   +/-   ##
=======================================
  Coverage   94.93%   94.93%           
=======================================
  Files         191      191           
  Lines       20568    20570    +2     
  Branches     1864     1864           
=======================================
+ Hits        19526    19528    +2     
  Misses        779      779           
  Partials      263      263           
Flag Coverage Δ
unittests 94.93% <66.66%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nsprenkle nsprenkle force-pushed the nsprenkle/bff-serial-workflow-advance-fix branch from 56b76c3 to 78f3251 Compare December 20, 2023 17:57
@nsprenkle nsprenkle marked this pull request as ready for review January 2, 2024 20:37
@nsprenkle nsprenkle requested a review from a team as a code owner January 2, 2024 20:37
Copy link
Contributor

@mattcarter mattcarter left a comment

Choose a reason for hiding this comment

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

Approved.

Copy link
Contributor

@leangseu-edx leangseu-edx left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@nsprenkle nsprenkle merged commit f3bd8f1 into master Jan 2, 2024
8 of 9 checks passed
@nsprenkle nsprenkle deleted the nsprenkle/bff-serial-workflow-advance-fix branch January 2, 2024 21:17
BryanttV pushed a commit to eduNEXT/edx-ora2 that referenced this pull request Feb 6, 2024
* fix: also check "graded" on workflow when advancing

* chore: bump ORA to 6.0.21

* style: more consistent styling in workflow API file
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