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: create ORA "date_config_type" field #2013

Merged
merged 4 commits into from
Aug 17, 2023
Merged

Conversation

leangseu-edx
Copy link
Contributor

@leangseu-edx leangseu-edx commented Aug 2, 2023

TL;DR - add no_dates field to xblock and let ora use course start, end date.

JIRA: https://2u-internal.atlassian.net/browse/AU-1314

What changed?

  • Create a new field on the ORA xblock date_config_type
  • This field set to manual, subsection and course_end

NOTE: this only work with lms. runtime libs does not seem to work in studio. is_course_staff also not working on studio, so I assume this is acceptable.

Developer Checklist

Testing Instructions

[ How should a reviewer test this PR? ]

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

@leangseu-edx leangseu-edx marked this pull request as ready for review August 2, 2023 13:42
@leangseu-edx leangseu-edx requested a review from a team as a code owner August 2, 2023 13:42
@leangseu-edx leangseu-edx force-pushed the lk/no-dates-field branch 2 times, most recently from 712dcbb to 46db09f Compare August 2, 2023 14:57
@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Patch coverage: 96.29% and no project coverage change.

Comparison is base (dcabc55) 95.09% compared to head (784bd75) 95.09%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2013   +/-   ##
=======================================
  Coverage   95.09%   95.09%           
=======================================
  Files         158      158           
  Lines       17420    17446   +26     
  Branches     1622     1625    +3     
=======================================
+ Hits        16566    16591   +25     
  Misses        641      641           
- Partials      213      214    +1     
Flag Coverage Δ
unittests 95.09% <96.29%> (+<0.01%) ⬆️

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

Files Changed Coverage Δ
openassessment/xblock/openassessmentblock.py 90.32% <85.71%> (-0.08%) ⬇️
openassessment/xblock/defaults.py 100.00% <100.00%> (ø)
openassessment/xblock/test/test_openassessment.py 100.00% <100.00%> (ø)

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

Copy link
Contributor

@jansenk jansenk left a comment

Choose a reason for hiding this comment

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

This is entirely my fault - I forgot to hit "save" on this ticket when I was changing the description. I have gone in and updated the description to the changes we actually want. This is a perfectly valid implementation of the ticket as it was handed to you but isn't actually what we want to do. I take full responsibility for this mistake.

https://2u-internal.atlassian.net/browse/AU-1314

@leangseu-edx leangseu-edx changed the title feat: add no date field feat: create ORA "date_config_type" field Aug 8, 2023
Copy link
Contributor

@jansenk jansenk 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 a few suggestions

openassessment/xblock/openassessmentblock.py Outdated Show resolved Hide resolved
openassessment/xblock/openassessmentblock.py Outdated Show resolved Hide resolved
openassessment/xblock/openassessmentblock.py Show resolved Hide resolved
openassessment/xblock/openassessmentblock.py Outdated Show resolved Hide resolved
@leangseu-edx leangseu-edx merged commit 0c3f7b3 into master Aug 17, 2023
6 checks passed
@leangseu-edx leangseu-edx deleted the lk/no-dates-field branch August 17, 2023 14:34
muselesscreator added a commit that referenced this pull request Aug 21, 2023
* Mattcarter/au-1388 fix make local install (#2018)

* chore: update make install-local-ora to reference cms rather than studio

* chore: version bump

* feat: create ORA "date_config_type" field (#2013)

* feat: add date_config_type field

* docs: remove finished TODO

* chore(i18n): update translations

---------

Co-authored-by: Matthew Carter <[email protected]>
Co-authored-by: leangseu-edx <[email protected]>
Co-authored-by: Ned Batchelder <[email protected]>
Co-authored-by: Jenkins <[email protected]>
BryanttV pushed a commit to eduNEXT/edx-ora2 that referenced this pull request Feb 6, 2024
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