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

Ensure that the original error gets preserved by the ErrorModule #4

Merged
merged 2 commits into from
Jun 5, 2013

Conversation

dianakhuang
Copy link
Contributor

For LMS-300

Before, we would blow away the error message that was passed into ErrorModule, which is not very useful for debugging the underlying problems. This pull request should ensure that we preserve the incoming error.

@brianhw @wedaly

error_msg = exc_info_to_str(sys.exc_info())
syntax_error = exc_info_to_str(sys.exc_info())
if error_msg is not None:
error_msg = error_msg + syntax_error
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we really need the syntax_error if there is already an error message. I would venture to say that we don't even need to do the XML parsing if an error_msg is provided. It's purpose is entirely for import/export -- arguably the original purpose of this method.

Actually, what would make more sense is to write a completely separate classmethod for ErrorDescriptor that constructs the class from text input, rather than XML, and to use this for the module_render wrapper functionality. Leave the from_xml as it originally was.

@wedaly
Copy link
Contributor

wedaly commented Jun 3, 2013

👍

@dianakhuang
Copy link
Contributor Author

@brianhw @wedaly I made some updates to how the error module displays descriptor information. Could you take another look?

@brianhw
Copy link
Contributor

brianhw commented Jun 4, 2013

Yes, I like that change. Ship-it.

@wedaly
Copy link
Contributor

wedaly commented Jun 5, 2013

👍 with the change

dianakhuang added a commit that referenced this pull request Jun 5, 2013
Ensure that the original error gets preserved by the ErrorModule
@dianakhuang dianakhuang merged commit ff7b851 into master Jun 5, 2013
@dianakhuang dianakhuang deleted the diana/fix-error-descriptor branch June 5, 2013 14:39
nasthagiri added a commit that referenced this pull request Jun 2, 2014
cpennington added a commit that referenced this pull request Jun 25, 2014
Updated github.txt commit hash for opaque-keys
doctoryes pushed a commit that referenced this pull request Sep 15, 2014
doctoryes pushed a commit that referenced this pull request Sep 23, 2014
downzer0 pushed a commit that referenced this pull request Nov 17, 2014
downzer0 pushed a commit that referenced this pull request Nov 18, 2014
downzer0 pushed a commit that referenced this pull request Nov 21, 2014
chrisrossi referenced this pull request in jazkarta/edx-platform Dec 9, 2014
apolinario added a commit to overdrive-diy/edx-platform that referenced this pull request Dec 12, 2014
shrlyhe pushed a commit that referenced this pull request Jun 5, 2017
# This is the 1st commit message:
ENT-385 change error msg for confirm email

# This is the commit message #2:

remove changed msgid from po files

# This is the commit message #3:

add name to AUTHORS file

# This is the commit message #4:

remove lastfailed file

# This is the commit message #5:

GradingPolicyChanged Signal Handler

https://openedx.atlassian.net/browse/EDUCATOR-393

# This is the commit message #6:

EDUCATOR-435 | Include enrollment status in in course and problem grade reports.

# This is the commit message #7:

Change visibility to access.

EDUCATOR-396

# This is the commit message #8:

LEARNER-923 Make Pattern Library support tabs transparent

# This is the commit message #9:

Conform to WCAG 2 AA contrast minimums for Google OAuth.

Also apply variables for FB/Linkedin OAuth2 rather than
leave color hashes hanging around.

# This is the commit message #10:

Updated auto_auth endpoint to always return JSON

Defaulting to a plaintext response makes no sense for an endpoint that is intended to be used by machines for testing. The endpoint now returns JSON only unless a redirect action is triggered.

# This is the commit message #1:

Fix the activation email support link in the dashboard sidebar

# This is the commit message #2:

Mask grades on progress page according to "Show Correctness" setting.

# This is the commit message #3:

More celery logging

# This is the commit message #4:

Eventing for grading policy change

# This is the commit message #5:

More specific grace_course logging

# This is the commit message #6:

Add course overrides of waffle flags.

# This is the commit message #7:

Mark test as flaky, and remove flaky from a fixed test.

EDUCATOR-511

# This is the commit message #8:

Fix for LEARNER-859: Updating styling on the course updates page to more clearly differentiate between multiple updates. Specifically:
- Updated styling on date in the top left corner
- Added horizontal line between updates
- Removed ability to toggle updates on and off
- Cleaned up code to always show all updates:
kdmccormick added a commit that referenced this pull request Jun 15, 2017
@jcdyer jcdyer mentioned this pull request Oct 18, 2017
4 tasks
prachi1705 added a commit to kkux/edx-platform that referenced this pull request Feb 6, 2019
prachi1705 pushed a commit to kkux/edx-platform that referenced this pull request Feb 18, 2019
prachi1705 pushed a commit to kkux/edx-platform that referenced this pull request Feb 20, 2019
prachi1705 added a commit to kkux/edx-platform that referenced this pull request Mar 4, 2019
prachi1705 added a commit to kkux/edx-platform that referenced this pull request Mar 4, 2019
prachi1705 pushed a commit to kkux/edx-platform that referenced this pull request Mar 4, 2019
mumarkhan999 pushed a commit to mumarkhan999/edx-platform that referenced this pull request Mar 4, 2019
pomegranited referenced this pull request in edx-olive/edx-platform-old May 8, 2019
feanil pushed a commit that referenced this pull request Sep 30, 2019
yasir1brahim referenced this pull request in yasir1brahim/edx-platform Apr 19, 2021
Implemented Reviews Tab on lms

Approved-by: Oksana Slusarenko
lpm0073 referenced this pull request in grid-synergy/edx-platform Apr 27, 2021
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 2022
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 2022
* feat: add packages dir to .gitignore

* Investigate exam redirect (openedx#2)

* feat: remove exam redirect

* feat: take control over exam instructions

* refactor: use fedx code structure

* fix: remove debug logging, remove redirect check

Co-authored-by: Vladas Tamoshaitis <vladas.tamoshaitis@raccoongang.com>

* Add state and reducer for check microfrontend_special_exams waffle flag (openedx#4)

* feat: add state and reducer for check microfrontend_special_exams waffle flag

* fix: rename special exams enabled flag

* fix: rename reducer for setting special exams enabled flag

* refactor: timer feature

* feat(tests): extend tests + fix failing ones, fix quality

* fix: revert removing package lock file

Co-authored-by: Vladas Tamoshaitis <vladas.tamoshaitis@raccoongang.com>

* fix: naming of waffle flag helpers to reflect relation with mfe

* fix: change naming of the waffle flag

* fix: revert remove package lock file

* feat: switch to @edx npm package

* fix: Remove redundant references from .gitignore

* fix: add is_mfe_special_exams_enabled to courseMetadata.factory.js

* fix: fix tests for 'Sequence' content wrapped in 'SequenceExamWrapper'

Co-authored-by: Sagirov Eugeniy <sagirov19@gmail.com>
Co-authored-by: Vladas Tamoshaitis <vladas.tamoshaitis@raccoongang.com>
Co-authored-by: Sagirov Evgeniy <34642612+UvgenGen@users.noreply.github.com>
Co-authored-by: Igor Degtiarov <igor.degtiarov@raccoongang.com>
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