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 ObjectTag taxonomy rule [FC-0036] #33757

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

pomegranited
Copy link
Contributor

@pomegranited pomegranited commented Nov 21, 2023

Description

There is a bug in the ObjectTag rules which appears when the REST API tries to fetch all ObjectTags for a given object_id (without limiting to a specific taxonomy). This PR illustrates the issue by adding a test which fails, and then fixes it by fixing the rule.

Supporting information

Relates to openedx/modular-learning#118

Testing instructions

This change is covered by tests, but to test manually:

  1. Run this branch in your devstack
  2. Enable waffle flag new_studio_mfe.use_tagging_taxonomy_list_page
  3. Load sample taxonomy and tag data as described here.
  4. Login using the staff account (can't use a superuser; superusers bypass permissions rule checks).
  5. Visit the created Sample Taxonomy Course (1)
  6. Expand out the first section/subsection to show the Tag icons for those units tag_icon
  7. Click a Tag icon. The tagging drawer should load without error.

Deadline

None

Other information

Private-ref: FAL-3530

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

openedx-webhooks commented Nov 21, 2023

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

@pomegranited pomegranited changed the title [FC-0036] Fix ObjectTag taxonomy rule Fix ObjectTag taxonomy rule [FC-0036] Nov 21, 2023
@pomegranited pomegranited marked this pull request as ready for review November 21, 2023 07:07
@open-craft-grove
Copy link

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove
Copy link

Sandbox deployment started.

@open-craft-grove
Copy link

Sandbox deployment failed.

Check failure logs here https://grove-stage-build-logs.nyc3.digitaloceanspaces.com/34602668-5582826732.log

Please check the settings and requirements and retry deployment by updating the pull request or posting a /grove sandbox update comment.

Copy link
Contributor

@ChrisChV ChrisChV left a comment

Choose a reason for hiding this comment

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

@pomegranited Looks good 👍

  • I tested this: I followed the testing instructions with a unit
  • I read through the code and considered the security, stability and performance implications of the changes.
  • [n/a] I tested that the UI can be used with a keyboard only (tab order, keyboard controls).
  • Includes tests for bugfixes and/or features added.
  • Includes documentation
  • [n/a] Includes fixtures that create objects required for manual testing.

@ChrisChV
Copy link
Contributor

@pomegranited I updated the branch to temporarily use it in the sandbox.

@open-craft-grove
Copy link

Sandbox update request received. Deployment will start soon.

@open-craft-grove
Copy link

Sandbox deployment started.

@open-craft-grove
Copy link

Sandbox deployment successful.

Sandbox LMS is available at pr-33757-139931.staging.do.opencraft.hosting
Sandbox Studio is available at studio.pr-33757-139931.staging.do.opencraft.hosting

@open-craft-grove
Copy link

Sandbox update request received. Deployment will start soon.

@open-craft-grove
Copy link

Sandbox deployment started.

@pomegranited pomegranited force-pushed the jill/fix-objecttag-rule branch from 882a5ae to 42c0c2e Compare November 27, 2023 01:32
@open-craft-grove
Copy link

Sandbox update request received. Deployment will start soon.

@open-craft-grove
Copy link

Sandbox deployment successful.

Sandbox LMS is available at pr-33757-139931.staging.do.opencraft.hosting
Sandbox Studio is available at studio.pr-33757-139931.staging.do.opencraft.hosting

@open-craft-grove
Copy link

Sandbox deployment started.

@open-craft-grove
Copy link

Sandbox deployment successful.

Sandbox LMS is available at pr-33757-139931.staging.do.opencraft.hosting
Sandbox Studio is available at studio.pr-33757-139931.staging.do.opencraft.hosting

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

@bradenmacdonald
Copy link
Contributor

@pomegranited Some GitHub issues are affecting this PR. I was planning to merge it today but I'll have to try tomorrow instead.

@bradenmacdonald bradenmacdonald merged commit 7ff1506 into openedx:master Nov 28, 2023
63 checks passed
@bradenmacdonald bradenmacdonald deleted the jill/fix-objecttag-rule branch November 28, 2023 17:37
@openedx-webhooks
Copy link

@pomegranited 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@open-craft-grove
Copy link

Sandbox destroy request received.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

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.

6 participants