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

Display tag counts on course outline [FC-0036] #33696

Merged

Conversation

bradenmacdonald
Copy link
Contributor

Description

When the "tagging/taxonomy" feature flag is on, this updates the course outline page to show the count of tags that are applied to each unit. The data for all units is loaded at once, rather than each unit at a time.

Supporting information

This implements openedx/modular-learning#118 part 1b: "For units which have tags, the number of tags that they have appears next to this tag icon. Clicking the number/icon will also open the tag drawer."

Testing instructions

  1. Enable the new_studio_mfe.use_tagging_taxonomy_list_page waffle flag
  2. Load the taxonomy sample data, ideally the version from this PR which is more random.
  3. View the course outline page for one of the taxonomy sample courses. It should look like the following. Note the tag counts shown.

Screenshot 2023-11-10 at 11 08 42 AM

Deadline

None

Other information

Depends on:

Private ref: FAL-3564.

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

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

@bradenmacdonald bradenmacdonald changed the title Braden/display tag counts on outline Display tag counts on course outline [FC-0036] Nov 10, 2023
@bradenmacdonald bradenmacdonald added the FC Relates to an Axim Funded Contribution project label Nov 10, 2023
@open-craft-grove
Copy link

Sandbox deployment started.

@open-craft-grove
Copy link

Sandbox deployment successful.

Sandbox LMS is available at pr-33696-139931.staging.do.opencraft.hosting
Sandbox Studio is available at studio.pr-33696-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-33696-139931.staging.do.opencraft.hosting
Sandbox Studio is available at studio.pr-33696-139931.staging.do.opencraft.hosting

@@ -18,7 +18,7 @@ def create_taxonomy(
name: str,
description: str | None = None,
enabled=True,
allow_multiple=False,
allow_multiple=True,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

While I was at it, I changed this: all taxonomies should default to allowing multiple tags. We actually don't officially support "single tag only" for now.

Copy link
Member

@yusuf-musleh yusuf-musleh left a comment

Choose a reason for hiding this comment

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

👍 Looks good!

  • I tested this: (followed the instruction, checked the tag numbers appear and are match the numbers in the tag drawer)
  • I read through the code
  • I checked for accessibility issues
  • Includes documentation
  • I made sure any change in configuration variables is reflected in the corresponding client's configuration-secure repository.

@bradenmacdonald
Copy link
Contributor Author

@Agrendalath Could you please review this as CC?

@bradenmacdonald bradenmacdonald force-pushed the braden/display-tag-counts-on-outline branch from 46dc52d to 63db17b Compare November 13, 2023 21:16
@bradenmacdonald bradenmacdonald force-pushed the braden/display-tag-counts-on-outline branch from 63db17b to b855397 Compare November 13, 2023 21:18
@open-craft-grove
Copy link

Sandbox update request received. Deployment will start soon.

Copy link
Member

@Agrendalath Agrendalath left a comment

Choose a reason for hiding this comment

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

👍

  • I tested this: checked that tag counts are displayed correctly in Studio
  • I read through the code
  • I checked for accessibility issues: n/a
  • Includes documentation: n/a

@Agrendalath
Copy link
Member

@bradenmacdonald, sorry for the delayed reply. Looks good to me; we'll need to rebase it before merging, though.

@bradenmacdonald bradenmacdonald merged commit ed37992 into openedx:master Nov 16, 2023
63 checks passed
@bradenmacdonald bradenmacdonald deleted the braden/display-tag-counts-on-outline branch November 16, 2023 18:03
@openedx-webhooks
Copy link

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

@bradenmacdonald
Copy link
Contributor Author

Thanks @Agrendalath !

@open-craft-grove
Copy link

Sandbox update request received. Deployment will start soon.

@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.

@edx-pipeline-bot
Copy link
Contributor

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

andrey-canon pushed a commit to nelc/edx-platform that referenced this pull request May 16, 2024
…enedx#33696)

* feat: display tag counts on outline

* fix: taxonomies should default to allow_multiple=True

* fix: only load counts once per request

* chore: version bump for openedx-learning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FC Relates to an Axim Funded Contribution project 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