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: mfe file actions with legacy refactor #2059

Merged
merged 20 commits into from
Oct 16, 2023

Conversation

jansenk
Copy link
Contributor

@jansenk jansenk commented Sep 29, 2023

TL;DR - File actions refactors and BFF MFE endpoints

JIRA: AU-1391

What changed?

  • Refactored legacy actions into shared API that raises exceptions for error states
  • legacy handlers now call into shared api and handle request-level validations and error handling in handler method
  • added mfe handlers to call into shared api and do request-level validations and error handling
  • wrote tests for mfe handlers

Developer Checklist

FYI: @openedx/content-aurora

@jansenk jansenk requested a review from a team as a code owner September 29, 2023 06:02
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.

Looks good, only not approving because the paths differ from our contract. Make sure to update to align to contract or update the contract and communicate changes to @muselesscreator

openassessment/xblock/ui_mixins/mfe/constants.py Outdated Show resolved Hide resolved
openassessment/xblock/ui_mixins/mfe/mixin.py Outdated Show resolved Hide resolved
Base automatically changed from jkantor/submission-bff to feat/2023-dual-ui October 12, 2023 12:31
@jansenk jansenk changed the title Jkantor/bff file actions feat: mfe file actions with legacy refactor Oct 13, 2023
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.

Looks good, but you have a serializer dupe that needs to be removed.

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

@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

All modified lines are covered by tests ✅

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

Additional details and impacted files
@@                 Coverage Diff                  @@
##             feat/2023-dual-ui    #2059   +/-   ##
====================================================
  Coverage                     ?   94.96%           
====================================================
  Files                        ?      189           
  Lines                        ?    19433           
  Branches                     ?     1766           
====================================================
  Hits                         ?    18455           
  Misses                       ?      738           
  Partials                     ?      240           
Flag Coverage Δ
unittests 94.96% <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.

@jansenk jansenk merged commit 6f7adf8 into feat/2023-dual-ui Oct 16, 2023
8 checks passed
@jansenk jansenk deleted the jkantor/bff-file-actions branch October 16, 2023 15:17
nsprenkle pushed a commit that referenced this pull request Nov 6, 2023
* feat: submission mfe bff endpoints and api

* refactor: legacy upload files

* refactor: legacy delete file

* refactor: legacy file upload url generation

* refactor: has any files in upload space

* refactor: suffix constants

* feat: add mfe file json handlers
nsprenkle pushed a commit that referenced this pull request Nov 6, 2023
* feat: submission mfe bff endpoints and api

* refactor: legacy upload files

* refactor: legacy delete file

* refactor: legacy file upload url generation

* refactor: has any files in upload space

* refactor: suffix constants

* feat: add mfe file json handlers
nsprenkle pushed a commit that referenced this pull request Nov 6, 2023
* feat: submission mfe bff endpoints and api

* refactor: legacy upload files

* refactor: legacy delete file

* refactor: legacy file upload url generation

* refactor: has any files in upload space

* refactor: suffix constants

* feat: add mfe file json handlers
BryanttV pushed a commit to eduNEXT/edx-ora2 that referenced this pull request Feb 6, 2024
* feat: submission mfe bff endpoints and api

* refactor: legacy upload files

* refactor: legacy delete file

* refactor: legacy file upload url generation

* refactor: has any files in upload space

* refactor: suffix constants

* feat: add mfe file json handlers
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