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: refactor legacy assessment actions and add assessment mfe bff handler #2074

Merged
merged 22 commits into from
Oct 25, 2023

Conversation

jansenk
Copy link
Contributor

@jansenk jansenk commented Oct 13, 2023

TL;DR - - Add mfe BFF handler for submitting assessments

JIRA: AU-1302

What changed?

  • Refactor legacy assessment actions to create shared assessment xblock api layer
  • Implement assessment handler for mfe bff

FYI: @openedx/content-aurora

@jansenk jansenk requested a review from a team as a code owner October 13, 2023 18:50
@jansenk jansenk changed the base branch from feat/2023-dual-ui to jkantor/bff-file-actions October 13, 2023 18:52
@jansenk jansenk force-pushed the jkantor/assess-actions-mfe branch from 44ba76a to 07652e5 Compare October 13, 2023 18:52
@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (feat/2023-dual-ui@668ee6c). Click here to learn what that means.

Additional details and impacted files
@@                 Coverage Diff                  @@
##             feat/2023-dual-ui    #2074   +/-   ##
====================================================
  Coverage                     ?   94.26%           
====================================================
  Files                        ?      192           
  Lines                        ?    20426           
  Branches                     ?     1854           
====================================================
  Hits                         ?    19255           
  Misses                       ?      916           
  Partials                     ?      255           
Flag Coverage Δ
unittests 94.26% <0.00%> (?)

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.

Base automatically changed from jkantor/bff-file-actions to feat/2023-dual-ui October 16, 2023 15:17
@jansenk jansenk force-pushed the jkantor/assess-actions-mfe branch from 4db0c30 to dccdf74 Compare October 16, 2023 15:19
@jansenk jansenk changed the title Jkantor/assess actions mfe feat: refactor legacy assessment actions and add assessment mfe bff handler Oct 17, 2023
@jansenk jansenk force-pushed the jkantor/assess-actions-mfe branch from 8542bdd to 025558e Compare October 17, 2023 18:58
Copy link
Contributor

@nsprenkle nsprenkle left a comment

Choose a reason for hiding this comment

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

Mostly looks good, with the following caveats:

  1. I initial page context load should also fetch a submission to assess. Proposing refactor to get_peer_submission to check if you have an active one and return that, else get a new one.
  2. Trying to understand why refactors include moving files around.

Copy link
Contributor

@nsprenkle nsprenkle left a comment

Choose a reason for hiding this comment

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

LGTM

@jansenk jansenk merged commit c8e2b6d into feat/2023-dual-ui Oct 25, 2023
@jansenk jansenk deleted the jkantor/assess-actions-mfe branch October 25, 2023 16:22
nsprenkle pushed a commit that referenced this pull request Nov 6, 2023
…andler (#2074)

* refactor: legacy peer assessment handler and api action

* refactor: legacy self assessment api handler

* refactor: legacy staff assessment handler and api action

* refactor: legacy student training handler and api action

* refactor: legacy ui mixins folder structure

* refactor: peer review uuid matching

* feat: mfe handler to submit assessment

* test: add tests and style cleanup for mfe assessment handler

* feat: get_active_assessment peer api function

* feat: auto-pull peer unless jumping
nsprenkle pushed a commit that referenced this pull request Nov 6, 2023
…andler (#2074)

* refactor: legacy peer assessment handler and api action

* refactor: legacy self assessment api handler

* refactor: legacy staff assessment handler and api action

* refactor: legacy student training handler and api action

* refactor: legacy ui mixins folder structure

* refactor: peer review uuid matching

* feat: mfe handler to submit assessment

* test: add tests and style cleanup for mfe assessment handler

* feat: get_active_assessment peer api function

* feat: auto-pull peer unless jumping
nsprenkle pushed a commit that referenced this pull request Nov 6, 2023
…andler (#2074)

* refactor: legacy peer assessment handler and api action

* refactor: legacy self assessment api handler

* refactor: legacy staff assessment handler and api action

* refactor: legacy student training handler and api action

* refactor: legacy ui mixins folder structure

* refactor: peer review uuid matching

* feat: mfe handler to submit assessment

* test: add tests and style cleanup for mfe assessment handler

* feat: get_active_assessment peer api function

* feat: auto-pull peer unless jumping
nsprenkle added a commit that referenced this pull request Nov 7, 2023
Add support for multiple UIs, currently legacy and a new MFE view. Includes:

* make: legacy template (#2046)

* chore: add lms+cms restart script to install-local-ora

* refactor: move data gathering pieces of mixins into xblock/apis

* feat: new xblock/ui_mixins/legacy to replace existing view/handler behaviors from mixins, leveraging our new APIs.

* refactor: remaining non-core-xblock functionality from xblock to xblock/utils. Updated references to changed file locations.

* feat: add page context MFE endpoint

* refactor: allow peeking a peer assessment

* chore: update translations

* feat: Add logic to display the new ORA UI templates (#2054)

* feat: xblock iframe

* feat: conditional render of new views based on mobile or waffle

* feat: BFF Assessments Data (#2063)

* feat: add url generation to file parsing

* refactor: legacy upload files

* refactor: legacy delete file

* refactor: legacy file upload url generation

* refactor: has any files in upload space

* chore: fix studio base view (#2078)

* docs: update some comments / docstrings

* fix: add missing teams step

* feat: xblock view (#2080)

* feat: disable MFE views for unsupported use-cases (#2090)

* feat: refactor legacy assessment actions and add assessment mfe bff handler (#2074)

* refactor: legacy peer assessment handler and api action

* refactor: legacy self assessment api handler

* refactor: legacy staff assessment handler and api action

* refactor: legacy student training handler and api action

* refactor: legacy ui mixins folder structure

* refactor: peer review uuid matching

* feat: get_active_assessment peer api function

---------

Co-authored-by: Nathan Sprenkle <[email protected]>
Co-authored-by: Jenkins <[email protected]>
Co-authored-by: Ben Warzeski <[email protected]>
Co-authored-by: Leangseu Kim <[email protected]>
BryanttV pushed a commit to eduNEXT/edx-ora2 that referenced this pull request Feb 6, 2024
…andler (openedx#2074)

* refactor: legacy peer assessment handler and api action

* refactor: legacy self assessment api handler

* refactor: legacy staff assessment handler and api action

* refactor: legacy student training handler and api action

* refactor: legacy ui mixins folder structure

* refactor: peer review uuid matching

* feat: mfe handler to submit assessment

* test: add tests and style cleanup for mfe assessment handler

* feat: get_active_assessment peer api function

* feat: auto-pull peer unless jumping
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.

2 participants