Skip to content

Conversation

@xitij2000
Copy link
Contributor

For smaller courses, there is a feature under the new provider
for grouping topics at the subsection level so that when
navigating the course, all topics under a subsection show up in
the sidebar instead of just the current unit.

This implements that functionality by checking if the discussion
is loaded in-context, and if grouping at subsection is enabled,
and if so, displaying the current subsection's topics.

@openedx-webhooks
Copy link

Thanks for the pull request, @xitij2000!

When this pull request is ready, tag your edX technical lead.

@openedx-webhooks openedx-webhooks added the blended PR is managed through 2U's blended developmnt program label Sep 6, 2022
xitij2000 added a commit to open-craft/frontend-app-learning that referenced this pull request Sep 6, 2022
To enable grouping by subsection in the discussions MFE, this PR updates
the embed URL to the one that supports grouping.

ref: openedx/frontend-app-discussions#281
@codecov
Copy link

codecov bot commented Sep 6, 2022

Codecov Report

Base: 84.29% // Head: 84.44% // Increases project coverage by +0.15% 🎉

Coverage data is based on head (ff95b00) compared to base (c5bda33).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #281      +/-   ##
==========================================
+ Coverage   84.29%   84.44%   +0.15%     
==========================================
  Files         131      131              
  Lines        2521     2540      +19     
  Branches      673      679       +6     
==========================================
+ Hits         2125     2145      +20     
+ Misses        373      372       -1     
  Partials       23       23              
Impacted Files Coverage Δ
src/discussions/data/slices.js 83.33% <ø> (ø)
src/data/selectors.js 100.00% <100.00%> (+5.88%) ⬆️
src/discussions/data/hooks.js 94.04% <100.00%> (+0.62%) ⬆️
src/discussions/data/selectors.js 100.00% <100.00%> (ø)
src/discussions/posts/PostsView.jsx 75.60% <100.00%> (+1.25%) ⬆️
src/discussions/posts/post-editor/PostEditor.jsx 87.36% <100.00%> (+0.27%) ⬆️
src/discussions/posts/post/PostLink.jsx 85.71% <100.00%> (+0.42%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

xitij2000 added a commit to open-craft/frontend-app-learning that referenced this pull request Sep 8, 2022
To enable grouping by subsection in the discussions MFE, this PR updates
the embed URL to the one that supports grouping.

ref: openedx/frontend-app-discussions#281
@xitij2000 xitij2000 force-pushed the kshitij/group-at-subsection branch 2 times, most recently from f831c8a to a74b54f Compare September 9, 2022 03:29
Copy link
Contributor

@tecoholic tecoholic left a comment

Choose a reason for hiding this comment

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

@xitij2000 👍

  • I tested this: Setup both learning MFE and discussion MFE branches, enabled in-context and subsection grouping and verified that discussion topics from other units from the same sub-section are shown (See attached image)
  • I read through the code
  • I checked for accessibility issues
  • Includes documentation

image

@mehaknasir
Copy link
Contributor

mehaknasir commented Oct 7, 2022

@xitij2000 can you please rebase it? I have tested and approved this PR.

@mehaknasir
Copy link
Contributor

just a side test case is on click add post button FE crashes in your branch on selectTopic selector. please handle that before you merge

For smaller courses, there is a feature under the new provider
for grouping topics at the subsection level so that when
navigating the course, all topics under a subsection show up in
the sidebar instead of just the current unit.

This implements that functionality by checking if the discussion
is loaded in-context, and if grouping at subsection is enabled,
and if so, displaying the current subsection's topics.
@xitij2000 xitij2000 force-pushed the kshitij/group-at-subsection branch from a74b54f to ff95b00 Compare October 12, 2022 07:13
saadyousafarbi pushed a commit to openedx/frontend-app-learning that referenced this pull request Oct 12, 2022
…968)

To enable grouping by subsection in the discussions MFE, this PR updates
the embed URL to the one that supports grouping.

ref: openedx/frontend-app-discussions#281
@saadyousafarbi saadyousafarbi merged commit 50b2e15 into master Oct 12, 2022
@openedx-webhooks
Copy link

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

@xitij2000 xitij2000 deleted the kshitij/group-at-subsection branch October 19, 2022 06:36
arbrandes pushed a commit to openedx/frontend-app-learning that referenced this pull request Nov 14, 2022
…968)

To enable grouping by subsection in the discussions MFE, this PR updates
the embed URL to the one that supports grouping.

ref: openedx/frontend-app-discussions#281
moonesque pushed a commit to edSPIRIT/frontend-app-discussions that referenced this pull request Nov 12, 2023
…penedx#281)

* feat: add reported email notifications setting in legacy discussions

* feat: display reported content email notification based on a flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blended PR is managed through 2U's blended developmnt program

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants