Fix star/bookmarking feature in Content Library#3070
Fix star/bookmarking feature in Content Library#3070rtibbles merged 5 commits intolearningequality:hotfixesfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## hotfixes #3070 +/- ##
============================================
+ Coverage 80.80% 85.97% +5.17%
============================================
Files 281 304 +23
Lines 12659 16467 +3808
============================================
+ Hits 10229 14158 +3929
+ Misses 2430 2309 -121
Continue to review full report at Codecov.
|
rtibbles
left a comment
There was a problem hiding this comment.
Code looks clean, and tests are spot on!
I need to manually test still. Also, would be good to clean up the commit history slightly!
rtibbles
left a comment
There was a problem hiding this comment.
Code looks good. Good test coverage. Manual testing showed no issues!
|
Hi @sairina as and end user I was expecting that if the Starred filter is applied and I click the star icon to remove a starred channel, the unstarred channel will immediately disappear from the list. Currently this is not the case and it remains visible: This is also not consistent with unstarring a channel from the Starred tab where the channel disappears immediately after having been unstarred so the question is can this be applied here as well? |
|
Hi @pcenov, thank you for catching this! I didn't realize that was the expected behavior. Can you file an issue for this specific thing as a follow-up so that we can work on fixing that? |
|
I can't recall if that was specified as the expected in original designs (cc @jtamiace & @khangmach to chime in), but ➕ for what @pcenov is suggesting: to me it also seems that more consistent user-facing behavior would be for a channel to disappear from the view when unstarred, in both the Content library (with the Starred filter on), and the Starred tabs. |
|
I imagine it was previously unspecified - but definitely good for it to be consistent. |
|
This wasn't intentionally specified in the mocks but what ya'll are saying makes sense so I'm on board with running with this. So when the user is..
If they they un-star that starred channel
|

Summary
Description of the change(s) you made
ChannelListPaginationclass forChannelViewSettests_channel.pyto test bookmarking featureupdate_from_changesmethod toChannelViewSetclass to override the one inUpdateModelMixinso that any user can bookmark any channel (the initial problem was thatupdate_from_changesinUpdateModelMixinonly worked with channels that a user could edit, not ones they could only view)Manual verification steps performed
Note: There is a known bug (also see below) where quick clicking on the star icon and on the "Starred" filter will yield incorrect results, and the user will have to refresh the page in order for the accurate results to occur. If this occurs, please refresh the page to see that the correct results do show up after the refresh.
Screenshots (if applicable)
Does this introduce any tech-debt items?
We will need to revisit pagination for channels.
Reviewer guidance
How can a reviewer test these changes?
Please manually test, and note that there is an edge case where if a user bookmarks and clicks on the "Starred" filter very quickly, it will not work (they will have to refresh the page).
Fixes #2933
Contributor's Checklist
Studio-specifc:
pages,components, andlayoutsdirectories as described in the docsTesting:
Reviewer's Checklist
This section is for reviewers to fill out.
yarnandpip)