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: block events for missing courses #355

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Conversation

Ian2012
Copy link
Contributor

@Ian2012 Ian2012 commented Oct 3, 2023

Description: A setting to allow to send missing courses

JIRA: Link to JIRA ticket

Dependencies: dependencies on other outstanding PRs, issues, etc.

Merge deadline: List merge deadline (if any)

Installation instructions: List any non-trivial installation
instructions.

Testing instructions:

  1. Open page A
  2. Do thing B
  3. Expect C to happen
  4. If D happened instead - check failed.

Merge checklist:

  • All reviewers approved
  • CI build is green
  • Version bumped
  • Changelog record added
  • Documentation updated (not only docstrings)
  • Commits are squashed

Post merge:

  • Create a tag
  • Check new version is pushed to PyPI after tag-triggered build is
    finished.

Author concerns: List any concerns about this PR - inelegant
solutions, hacks, quick-and-dirty implementations, concerns about
migrations, etc.

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Oct 3, 2023
@openedx-webhooks
Copy link

Thanks for the pull request, @Ian2012! 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.

@Ian2012 Ian2012 force-pushed the cag/missing-courses branch from 057ae74 to d10cc1f Compare October 3, 2023 17:16
@Ian2012 Ian2012 changed the title refactor¡: send event for missing courses configurable fix: send event for missing courses configurable Oct 3, 2023
return {
"display_name": "Unknown Course",
}
raise ValueError(f"Course with id {course_id} does not exist.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't remember, will this be caught upstream so it doesn't break bulk export?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The only helper that raises an exception is get_anonymous_user_id and it raises a ValueError exception. It shouldn't break the workflow.

@ziafazal Am I right?

Copy link
Contributor

Choose a reason for hiding this comment

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

@Ian2012 yes ValueError is caught here so it should not break.

@Ian2012 Ian2012 force-pushed the cag/missing-courses branch from d10cc1f to e48b7c0 Compare October 3, 2023 17:49
@Ian2012 Ian2012 changed the title fix: send event for missing courses configurable fix: block events for missing courses Oct 3, 2023
@Ian2012 Ian2012 merged commit 91f9b68 into master Oct 10, 2023
@Ian2012 Ian2012 deleted the cag/missing-courses branch October 10, 2023 15:18
@openedx-webhooks
Copy link

@Ian2012 🎉 Your pull request was 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
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants