-
Notifications
You must be signed in to change notification settings - Fork 7
Kaustav/test master pr #787
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
base: master
Are you sure you want to change the base?
Conversation
…nder email to disabled users (openedx#36514)
* feat!: upgrading api to DRF.
This PR adds contentstore.use_react_markdown_editor course waffle flag in cms. This flag helps in enabling the markdown editor in the authoring mfe. This PR also adds the markdown_edited field in the Problem Xblock to persist the user's choice of switching to the markdown editor on the authoring MFE. More details in the authoring MFE PR: openedx/frontend-app-authoring#1805
fix: Restructuring to send course_id and score to edx submission fix: Refactoring of sending information to sent_to_submission fix: Elimination of unnecessary functions fix: Added usage comment to ProblemBlock in XqueueInterface constructor fix: update doc ADR fix: setting for Quality Others test (ubuntu-24.04, 3.11, 20) fix: Deprecation for django-trans-escape-filter-parse-error test: Add @pytest.mark.django_db decorator to test functions test: Fix for pylint being disabled fix: updated changes for pylint disable fix: update error from docs ADR-0005 update: xmodule/docs/decisions/0005-send-data-to-edx-submission.rst Co-authored-by: Sarina Canelake <[email protected]> update: xmodule/docs/decisions/0005-send-data-to-edx-submission.rst Co-authored-by: Sarina Canelake <[email protected]> fix: Adjusted correction fix: update date for docs ADR Revert "fix: update date for docs ADR" This reverts commit 0b4229c. fix: replace call created_submission to create_external_grader_detail fix: update test xqueue_submission fix: add docstring in test_xqueue_submission fix: update date doc ADR fix: update version edx-submission 3.8.6 fix: add @pytest.mark.xfail fix: add 20 chances in test_capa_block: fix: increase retry attempts for seed generation in ProblemBlockTest fix: change version to edx-submission lib fix: new version edx-submission in testings fix: replace parameter file to files fix: update variable grader_file_name and points_possible fix: Adjustment in the is_flag_active function to always take the last record edited in the waffle fix: wrap large line of code fix: update function is_flag_active fix: code style adjustment fix: changes for 60 retry feat: use CourseWaffleFlag to determine xqueue callback path fix: Code style adjustment fix: remove deprecated xqueue callback route and simplify callback type logic fix: Deleting a comment in the ADR document fix: add log in self.block is None fix: Code style adjustment in log
…x#36478) This commit adds a new message handler to the XBlockContainerPage CMS view, that allows the MFE to send a signal to the IFrame and scroll to a specific XBlock.
Adds support for adding Containers to Collections.
…exec During dark launch of remote codejail, we want to ensure we always run both local and remote execution -- otherwise we're missing data for the remote side in an important situation. This will help answer the question of whether the unexpected exception happens on both sides, even though it may not look exactly the same due to differences in how unexpected errors are handled. An example input that provokes this in unsafe execution mode is `raise BaseException("hi")`; in safe execution mode, printing to `sys.__stdout__` should also produce an appropriate error.
- Catch all exceptions, not just Exception, to better prevent errors from interfering with mainline responses. - Introduce a separate try block around the monitoring code so that bugs there don't cause issues. - Print exception information as well for both sides (but only if not a SafeExecException, which is redundant with emsg). Some formatting changes to log messages as well. Example outputs: For `1/0`: ``` 2025-04-14 17:26:34,239 INFO 10232 [xmodule.capa.safe_exec.safe_exec] [user 3] [ip 172.18.0.1] safe_exec.py:240 - Remote execution in darklaunch mode produces globals={'expect': None, 'ans': '1/0'}, emsg=None, exception=None 2025-04-14 17:26:34,239 INFO 10232 [xmodule.capa.safe_exec.safe_exec] [user 3] [ip 172.18.0.1] safe_exec.py:245 - Local execution in darklaunch mode produces globals={'expect': None, 'ans': '1/0'}, emsg='ZeroDivisionError: division by zero', exception=None ``` For `raise BaseException("hi")`: ``` 2025-04-14 17:26:13,359 INFO 10232 [xmodule.capa.safe_exec.safe_exec] [user 3] [ip 172.18.0.1] safe_exec.py:240 - Remote execution in darklaunch mode produces globals={'expect': None, 'ans': 'raise BaseException("hi")'}, emsg=None, exception=None 2025-04-14 17:26:13,359 INFO 10232 [xmodule.capa.safe_exec.safe_exec] [user 3] [ip 172.18.0.1] safe_exec.py:245 - Local execution in darklaunch mode produces globals={'expect': None, 'ans': 'raise BaseException("hi")'}, emsg='hi', exception=BaseException('hi') ``` With codejail-service down, and `out = 1 + 2`: ``` 2025-04-14 17:30:28,597 INFO 12484 [xmodule.capa.safe_exec.safe_exec] [user 3] [ip 172.18.0.1] safe_exec.py:241 - Remote execution in darklaunch mode produces globals={'expect': None, 'ans': 'out = 1 + 2', 'out': 3, 'cfn_return': {'input_list': [{'ok': True, 'msg': 'Output:\n3', 'grade_decimal': 1}]}}, emsg=None, exception=CodejailServiceUnavailable('Codejail API Service is unavailable. Please try again in a few minutes.') 2025-04-14 17:30:28,597 INFO 12484 [xmodule.capa.safe_exec.safe_exec] [user 3] [ip 172.18.0.1] safe_exec.py:246 - Local execution in darklaunch mode produces globals={'expect': None, 'ans': 'out = 1 + 2', 'out': 3, 'cfn_return': {'input_list': [{'ok': True, 'msg': 'Output:\n3', 'grade_decimal': 1}]}}, emsg=None, exception=None ```
- Separate test for misconfiguration - Add helper method for generic dark launch testing - Test two darklaunch scenarios: Globals interference, and error that would previously have caused the remote side not to run - Rename mocks to have our usual `mock_` prefix
We were running local exec before making the copy of globals_dict for remote_exec, so remote exec has been getting a polluted version of the globals.
* fix: don't allow pasting xblocks with children into libraries * fix: IntegrityError: "Column 'md5_hash' cannot be null" * feat: allow pasting a unit from a course into a library * feat: auto-generate a nice block_id when pasting into a library * test: add test for pasting unit from course into library * fix: better handle potentially missing display_names during paste * chore: clarifications and import cleanups
* feat: [AXM-1899] add default advanced modules * test: [AXM-1899] add check for default advanced modules list --------- Co-authored-by: Andrii <[email protected]>
Restructure codejail darklaunch to better capture errors, fix globals pollution.
* Fix the issue described in openedx/frontend-app-authoring#1352 (comment)
We were previously not recording who was doing write/delete/reset operations. Prior to openedx-learning 0.23.0, we didn't have a place to write the user for a reset-to-publish. Upgrades the openedx-learning pin, 0.22 -> 0.23
A new application has been created, described in this ADR: openedx#36545 have been created, as well as related models for mapping original content and new content created during the import process. Python and Django APIs, as well as a Django admin interface, will soon follow.
…enedx#36534) - Fix bug where we were overwriting `remote_emsg` with None, and add test that would have caught it. - Suppress differences due solely to the codejail sandbox directory name differing (in stack traces), and add test for this. Configurable because we'll need to add an additional search/replace pair for the sandbox venv paths. - Add a variety of custom attributes, replacing existing ones. The attrs now have a prefixed naming scheme to simplify searching. - Add slug to log output so we can more readily correlate traces and logs, as well as logs across services. - Fix typo in error message. - Fix existing import sort order lint.
…enedx#36543) * feat: REST API to publish the changes to a container * fix: trigger LIBRARY_CONTAINER_UPDATED when component published for components in containers. --------- Co-authored-by: Jillian Vogel <[email protected]>
chore: added logs for debuging Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
This reverts commit 0a05dc2.
We need to make globals JSON-friendly before sending them across the network. Addresses edx/edx-arch-experiments#1016
…dx-enterprise-334c0fe feat: Upgrade Python dependency edx-enterprise
fix: Updates task in topics sync API
…simple-history chore: remove version constraint on django-simple-history
…pdowns Single Select Autocomplete Added to Student Admin
…edx#36854) * fix: wrap sequence metadata view in bulk actions contextmanager * style: line too long
…penedx#36831) The UpstreamSyncMixin introduced in [1] which is added as a XBlock mixin, currently contains four fields - `upstream`, `upstream_version`, `upstream_version_declined`, and `upstream_display_name`. These fields are coming through in the course advanced settings API endpoint (`/api/contentstore/v0/advanced_settings/{course_id}`), and subsequently show up in the Advanced Settings view in the frontend-app-authoring MFE, which they shouldn't. This PR resolves this issue by adding the fields from the `UpstreamSyncMixin` into the FIELDS_EXCLUDE_LIST [2] of the `CourseMetadata` class. Unless the API is called with `fetch_all=1` (the authoring MFE uses `fetch_all=0`), then these fields will be filtered out. [1] https://github.com/openedx/edx-platform/blob/master/cms/lib/xblock/upstream_sync.py#L289 [2] https://github.com/openedx/edx-platform/blob/master/cms/djangoapps/models/settings/course_metadata.py#L41 Fixes: openedx/frontend-app-authoring#2018
…on-requirements-c080f96 chore: Upgrade Python requirements
…2 and django52) (openedx#36628) * feat!: upgrade codebase for compatibility with Django 4.2 and 5.2.
* feat: export ora2 data to DRF
Thank you for your pull request! Congratulations on completing the Open edX tutorial! A team member will be by to take a look shortly. |
Sandbox deployment successful 🚀 |
Sandbox deployment successful 🚀 |
Sandbox deployment failed 💥 |
Sandbox deployment successful 🚀 |
No description provided.