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: update post when comment is marked as answer; reload topics on open [BD-38] [TNL-9646] [TNL-9703] #104

Merged
merged 1 commit into from Mar 28, 2022

Conversation

xitij2000
Copy link
Contributor

When a comment is marked as an answer, refresh the post it's in so the answered tag appears.
When navigating to the post tab, refresh the topic list.

Peek.2022-03-25.15-43.mp4

@openedx-webhooks openedx-webhooks added blended PR is managed through 2U's blended developmnt program needs triage labels Mar 25, 2022
@openedx-webhooks
Copy link

Thanks for the pull request, @xitij2000! I've created BLENDED-1163 to keep track of it in Jira. More details are on the BD-38 project page.

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

@codecov
Copy link

codecov bot commented Mar 25, 2022

Codecov Report

Merging #104 (59d0932) into master (2c40685) will increase coverage by 0.92%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #104      +/-   ##
==========================================
+ Coverage   85.41%   86.34%   +0.92%     
==========================================
  Files         100      100              
  Lines        1838     1845       +7     
  Branches      451      452       +1     
==========================================
+ Hits         1570     1593      +23     
+ Misses        253      238      -15     
+ Partials       15       14       -1     
Impacted Files Coverage Δ
src/discussions/comments/comment/Comment.jsx 97.36% <100.00%> (+5.70%) ⬆️
src/discussions/topics/TopicsView.jsx 96.66% <100.00%> (+0.66%) ⬆️
src/discussions/posts/data/slices.js 80.85% <0.00%> (+2.12%) ⬆️
src/discussions/posts/data/thunks.js 88.67% <0.00%> (+3.77%) ⬆️
src/discussions/topics/data/thunks.js 80.95% <0.00%> (+4.76%) ⬆️
src/discussions/topics/data/slices.js 68.42% <0.00%> (+10.52%) ⬆️
src/discussions/posts/post/LikeButton.jsx 100.00% <0.00%> (+33.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c40685...59d0932. Read the comment docs.

Copy link

@navinkarkera navinkarkera 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 video of the expected behaviour)
  • 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.

@xitij2000 xitij2000 changed the title fix: update post when comment is marked as answer; reload topics on open [BD-38] [TNL--9646] [TNL-9703] fix: update post when comment is marked as answer; reload topics on open [BD-38] [TNL-9646] [TNL-9703] Mar 28, 2022
When a comment is marked as an answer, refresh the post it's in so the answered tag appears.
When navigating to the post tab, refresh the topic list.
@xitij2000 xitij2000 merged commit 38792dd into master Mar 28, 2022
@xitij2000 xitij2000 deleted the kshitij/tnl-9646 branch March 28, 2022 12:53
@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.

moonesque pushed a commit to edSPIRIT/frontend-app-discussions that referenced this pull request Nov 12, 2023
… according to figma (openedx#104)

Co-authored-by: MehakNasir <mehaknasir@A006-00194.local>
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 merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants