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

fix: no rubric validation added #2092

Closed

Conversation

Inferato
Copy link

@Inferato Inferato commented Oct 25, 2023

TL;DR -
Save ORA w/o prompt cause an error

What changed?

  • Added no prompt validation
  • validate_rubric placed on top of validations

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

@Inferato Inferato requested a review from a team as a code owner October 25, 2023 15:20
@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Oct 25, 2023
@openedx-webhooks
Copy link

openedx-webhooks commented Oct 25, 2023

Thanks for the pull request, @Inferato! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c1b6eea) 95.02% compared to head (c2feab6) 95.02%.
Report is 37 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2092   +/-   ##
=======================================
  Coverage   95.02%   95.02%           
=======================================
  Files         191      191           
  Lines       20520    20529    +9     
  Branches     1856     1857    +1     
=======================================
+ Hits        19499    19508    +9     
  Misses        766      766           
  Partials      255      255           
Flag Coverage Δ
unittests 95.02% <100.00%> (+<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.

@Inferato Inferato self-assigned this Oct 25, 2023
@itsjeyd
Copy link

itsjeyd commented Nov 2, 2023

@Inferato Thank you for your contribution! Please let us know when it is ready for review.

@itsjeyd itsjeyd added the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Nov 2, 2023
@Inferato Inferato force-pushed the lytvynenko/no_rubric_validation_master branch from 5b36251 to 6e8d66d Compare November 16, 2023 16:03
@Inferato Inferato force-pushed the lytvynenko/no_rubric_validation_master branch from 6e8d66d to 3aceed3 Compare November 16, 2023 16:16
@Inferato
Copy link
Author

@itsjeyd Now it's ready for review.

@itsjeyd itsjeyd added waiting for eng review PR is ready for review. Review and merge it, or suggest changes. and removed waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. labels Nov 17, 2023
@itsjeyd
Copy link

itsjeyd commented Nov 17, 2023

@Inferato OK great!

@mattcarter This is ready for engineering review by Aurora.

@itsjeyd itsjeyd requested a review from mattcarter December 7, 2023 13:10
@itsjeyd
Copy link

itsjeyd commented Dec 7, 2023

@mattcarter Friendly ping about scheduling a review for this PR.

CC @openedx/2u-aurora

@itsjeyd itsjeyd requested review from pomegranited and removed request for a team and mattcarter February 2, 2024 14:52
@itsjeyd
Copy link

itsjeyd commented Feb 2, 2024

@pomegranited Perhaps you could have a look at this PR, too?

Copy link
Contributor

@pomegranited pomegranited left a comment

Choose a reason for hiding this comment

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

Hi @Inferato , thank you for submitting this change! It works as described.

I've tested it and it works great, but have left a note about the translation changes. Once you address these issues, I'll approve and get this merged.

  • I tested this on my devstack:
    • Had to enable the course_live.enable_course_live waffle flag
      (Unrelated to this change, editing ORA components in Studio threw missing template errors without this flag?)
    • Added a new ORA2 component to my test course
    • Removed all "prompts" from the component and saved.
      Noted new error: "You must provide at least one prompt."
      (ora2 master raises an IndexError in the backend, but shows the user no details.)
  • I read through the code
  • I checked for accessibility issues by using my keyboard only during testing
  • Includes documentation N/A
  • User-facing strings are extracted for translation

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-ora2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-25 14:38+0000\n"
"POT-Creation-Date: 2023-11-16 19:47+0200\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

@Inferato I notice that most of the changes made to these translation files are just changes to the line length? I'm not sure why that happened.. maybe you have an older version of gettext?

I'm running:

$ gettext --version
gettext (GNU gettext-runtime) 0.19.8.1
Copyright (C) 1995-1997, 2000-2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Ulrich Drepper.

Could you please check/update your gettext and regenerate the translations? And if you could resolve the conflicts at the same time, that would be great :)

@pomegranited pomegranited added the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Feb 6, 2024
@dyudyunov
Copy link
Contributor

Hi @pomegranited

Sorry for the delays, Taras is no longer a member of RG.
Currently, I'm gathering all the PRs he worked on. I will check their statuses and update them if necessary.

I will leave the status update comments on each PR's comments ASAP

@pomegranited
Copy link
Contributor

Hi @dyudyunov no worries, thank you for letting us know.
If you end up having to close this PR and open a new one, feel free to ping me for review.

@itsjeyd itsjeyd removed the waiting for eng review PR is ready for review. Review and merge it, or suggest changes. label Feb 8, 2024
@dyudyunov dyudyunov mentioned this pull request Feb 8, 2024
5 tasks
@dyudyunov
Copy link
Contributor

@pomegranited could you close this PR in favor of #2173?

@openedx-webhooks
Copy link

@Inferato Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants