Skip to content

Conversation

@BryanttV
Copy link
Contributor

@BryanttV BryanttV commented Mar 10, 2025

Description

This PR adds a new section (TeamGroupsSection) to the Group Configurations page. This section is necessary to render the Teams configured in each Group of the course when the functionality to connect Teams with Content Groups is enabled.

Supporting information

Screenshots

Before

image

After

image

Testing instructions

  1. Create a Waffle Flag for your course in {lms_domain}/admin/waffle_utils/waffleflagcourseoverridemodel/

    • Waffle Flag: teams.content_groups_for_teams
    • Course id: [Your Course ID]
    • Enabled: ✅
  2. Enables Teams in the platform using the teams.enable_teams_app flag.

  3. Enable teams for your course in Studio > [Your Course] > Content > Pages & Resources > Teams > Teams toggle

  4. In the same modal of Configure teams, create a few Groups.

  5. Then, go to the LMS > [Your Course] > Teams and create a few Teams within those Groups (Topics/team-sets)

  6. From Studio, go to Settings > Group Configurations.

  7. You can see the new section for each of the groups. These sections are not editable.

  8. Also, you can create Content Groups without any problem.

add-team-groups-section-in-group-configurations.webm

Additional Information

This is how it looks in the legacy interface:

teams-groups-legacy-interface.webm

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

openedx-webhooks commented Mar 10, 2025

Thanks for the pull request, @BryanttV!

This repository is currently maintained by @bradenmacdonald.

Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review.

🔘 Get product approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

Details
Where can I find more information?

If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:

When can I expect my changes to be merged?

Our goal is to get community contributions seen and reviewed as efficiently as possible.

However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@github-project-automation github-project-automation bot moved this to Needs Triage in Contributions Mar 10, 2025
@BryanttV BryanttV marked this pull request as ready for review March 10, 2025 18:20
@codecov
Copy link

codecov bot commented Mar 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.18%. Comparing base (f900ace) to head (085e54e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1728   +/-   ##
=======================================
  Coverage   95.18%   95.18%           
=======================================
  Files        1319     1320    +1     
  Lines       30022    30031    +9     
  Branches     6748     6750    +2     
=======================================
+ Hits        28575    28584    +9     
  Misses       1378     1378           
  Partials       69       69           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mphilbrick211 mphilbrick211 requested a review from a team March 11, 2025 20:45
@mphilbrick211 mphilbrick211 moved this from Needs Triage to Ready for Review in Contributions Mar 11, 2025
Copy link
Contributor

@dcoa dcoa left a comment

Choose a reason for hiding this comment

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

LGTM!!

@bradenmacdonald @PKulkoRaccoonGang @arbrandes I don't have permission over this repo, do you mind have a look to this PR?

@PKulkoRaccoonGang PKulkoRaccoonGang added the create-sandbox open-craft-grove should create a sandbox environment from this PR label Apr 3, 2025
@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

Copy link
Contributor

@PKulkoRaccoonGang PKulkoRaccoonGang left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! After some testing, I have some suggestions/observations that probably don't apply to this PR. If they don't apply to your scope of work and they are valid, I don't mind moving them to a separate issue 💯

  1. If the course unit page is enabled, the link (which is under This group controls access to:) should be followed without reloading the page.
  2. After I create a team I get an error with status code 500
    Screenshot 2025-04-04 at 12 12 59
  3. After adding a new group, the user must manually scroll the inner content of the Configure teams modal window to the newly added group. Should the modal window content be automatically scrolled to the new group block?
    image
  4. Is it worth showing the icon to collapse the new group creation block if it is not possible to do so until the group is created? I think this can be a bit misleading for users.
    image

@BryanttV BryanttV force-pushed the bav/add-team-groups-section-in-group-configurations branch from 1acce88 to 7267928 Compare July 25, 2025 19:30
@BryanttV
Copy link
Contributor Author

Hi @PKulkoRaccoonGang! Thank you for your review, and I apologize for the delay. I was busy with other things. I've already addressed your suggestions.

Regarding what you found, I agree it should be moved to a separate issue.

FYI, the 500 error has already been reported here: openedx/openedx-platform#36841, and work is in progress to fix it.

@open-craft-grove
Copy link

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@bradenmacdonald
Copy link
Contributor

Hey everyone, what's the status of this PR?

@BryanttV
Copy link
Contributor Author

BryanttV commented Aug 8, 2025

Hi @bradenmacdonald, thanks for your comment! I made the changes requested by @PKulkoRaccoonGang. The PR is ready for re-review.

@bradenmacdonald
Copy link
Contributor

@PKulkoRaccoonGang do you have time to resume your review here?

@bradenmacdonald
Copy link
Contributor

@BryanttV Please reach out to me if you don't hear back from him within a few days.

@BryanttV
Copy link
Contributor Author

Hi @bradenmacdonald! I haven't received a response yet. I'm tagging you so we can move forward.

@openedx-webhooks openedx-webhooks added the core contributor PR author is a Core Contributor (who may or may not have write access to this repo). label Aug 27, 2025
@open-craft-grove
Copy link

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@bradenmacdonald
Copy link
Contributor

Sure @BryanttV , I'll try to review soon then. Could you please merge master into this branch or rebase on master so I'm testing it as it will be when it merges?

@crathbun428 or @jmakowski1123 could one of you confirm this is good to go from a product perspective? I can see there's been extensive discussion of the proposal but it's hard for me to tell the final decision(s) and how this aligns.

@BryanttV BryanttV force-pushed the bav/add-team-groups-section-in-group-configurations branch from 9a0ca07 to c4d79fd Compare August 27, 2025 20:53
@open-craft-grove
Copy link

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@BryanttV
Copy link
Contributor Author

@bradenmacdonald, thanks! rebased with master ✅

Copy link
Contributor

@bradenmacdonald bradenmacdonald left a comment

Choose a reason for hiding this comment

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

When testing this, I found that I'm seeing some team groups listed twice. Let me know if you need more info to debug.

Screenshot 2025-09-04 at 2 39 15 PM

The legacy UI only shows them once:

Screenshot 2025-09-04 at 2 40 44 PM

Also, I'm still unable to create a new content group. It gives the error shown below:

Screenshot 2025-09-04 at 2 41 46 PM

@@ -0,0 +1,24 @@
import { initializeMocks, render } from '../../testUtils';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
import { initializeMocks, render } from '../../testUtils';
import { initializeMocks, render } from '@src/testUtils';

Nit: could this file be .tsx ? We prefer TypeScript for any new files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

File updated, thanks!

Comment on lines 3 to 4
import { AvailableGroup } from '../constants';
import ContentGroupCard from '../content-groups-section/ContentGroupCard';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
import { AvailableGroup } from '../constants';
import ContentGroupCard from '../content-groups-section/ContentGroupCard';
import { AvailableGroup } from '@src/group-configurations/constants';
import ContentGroupCard from '@src/group-configurations/content-groups-section/ContentGroupCard';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, done!

usage: null,
name: 'Team Group: My Group',
parameters: {
course_id: 'course-v1:org+101+101',
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be courseId ? When I rename TeamGroupsSection.test.jsx to .tsx, TypeScript says this is wrong. I guess it depends if you're mocking the raw response or the processed version that's been camelCased.

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 file is mixing snake_case and camelCase. But as I see it, the response should be processed in camelCase. I updated it.

@mphilbrick211 mphilbrick211 moved this from Ready for Review to In Eng Review in Contributions Sep 16, 2025
@mphilbrick211
Copy link

Hi @BryanttV! Friendly ping on this.

@mphilbrick211 mphilbrick211 added the waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. label Oct 29, 2025
@open-craft-grove
Copy link

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Configuration information unavailable

@open-craft-grove
Copy link

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@bradenmacdonald
Copy link
Contributor

@BryanttV are you still planning to finish up this PR?

@BryanttV
Copy link
Contributor Author

@bradenmacdonald, thanks for the ping! Over the last few weeks I've been catching up on some pending PRs and this one of them. I'll update it as soon as possible, sorry for the delay

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@BryanttV BryanttV force-pushed the bav/add-team-groups-section-in-group-configurations branch from c4d79fd to d3289da Compare February 3, 2026 22:39
@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@BryanttV
Copy link
Contributor Author

BryanttV commented Feb 4, 2026

Hi @bradenmacdonald, sorry for the delay, I just made the requested changes!

I was testing, and everything works as expected. I couldn't reproduce the errors you reported. Could you check again with the new changes?

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core contributor PR author is a Core Contributor (who may or may not have write access to this repo). create-sandbox open-craft-grove should create a sandbox environment from this PR open-source-contribution PR author is not from Axim or 2U waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc.

Projects

Status: In Eng Review

Development

Successfully merging this pull request may close these issues.

7 participants