Remove the tree viewset#2221
Conversation
|
Possibly unrelated: Removing a Topic (only topics as far as I can see) from a channel looks like it works at first (snackbar is good, node removed from node panel) but on page reload after a few seconds, it reappears. Content items are moved to trash as expected. |
|
Great work @rtibbles this is a lot. The JS/Vue looked good to me. I noted a couple issues above and will be happy to test again whenever you'd like another pass. |
529e5aa to
b23fd7a
Compare
|
Have resolved test failures and issues observed from manual testing, think this is ready for broader review now. |
|
One last linting fix. |
Codecov Report
@@ Coverage Diff @@
## develop #2221 +/- ##
===========================================
+ Coverage 80.77% 81.05% +0.28%
===========================================
Files 289 289
Lines 14041 14000 -41
===========================================
+ Hits 11341 11348 +7
+ Misses 2700 2652 -48
Continue to review full report at Codecov.
|
|
OK, for real, that's the last linting fix... |
There was a problem hiding this comment.
@rtibbles Fixes work for me and lent to me finding some new fun bugs in the clipboard (not related to this PR)!
bjester
left a comment
There was a problem hiding this comment.
Aww I kind of miss the tree data structure... Oh well. Looks good to me.
There was a problem hiding this comment.
I've found some more issues that may be related to the PR.
In the following (some may not be related to PR):
- Topic says 6 items, opens to show none.
- Content items are indented related to topics - looking like children of a node they are not children of.
- The only time the context menu options appear at the top of the clipboard drawer is when a whole channel's clipboard node is selected.
- In NodePanel, selecting more than one item and copying it doesn't copy everything.
This happened once:
- Have nodes copied to clipboard.
- Delete those nodes in the clipboard panel
- See the nodes in clipboard panel and node panel get deleted... :(
I did this once and the nodes were deleted in NodePanel and Clipboard but when I refreshed they came back. So I decided to record doing it again for this and when the nodes got deleted in both places it was permanent.
|
@nucleogenesis Ah yeah, doesn't look like the clipboard selection handling is working correctly, at the least. It should look like this when a deep node is selected. Admittedly, I know I left 1 or 2 bugs with the selection logic, but they're not obvious. @rtibbles Let me know if you want any eyes on the selection logic. |
|
I have fixed the deletion issues - there is one extant thing that I am aware of to do with descendant counts in the clipboard. Also, I noticed that toggling a topic's selection toggles through:
I tried to fix this, but the bit maps made my brain hurt. As it is pre-existing, I'd rather leave it. |
|
Going to rebase to address merge conflicts. |
Massively reduce cache timeouts.
And simplified data representation.
Consolidate all contentnode operations onto contentnode viewset.
a14704c to
70c7657
Compare
|
Rebased. |
|
@nucleogenesis I think I have addressed most of your issues, but
May still be extant in places, depending on the exact sequence of actions you take. Would like to come back to that later as part of some other work. |
First, I got this when I 'duplicated / made a copy of' a topic folder that had some contents in it. When I navigated to that copy, I get the above error. Note that this is unrelated to the clipboard itself, but perhaps shares some internals? I cannot replicate using this method, but can with the following: Replicate by copying a topic into another topic - then "go to location" from the snackbar message to where you moved the topic. Similarly to item 5 below, the "Move to where..." modal reflects what my moving behavior suggests it ought to. The changes are just not being reflected in NodePanel when navigating and I get the above error when I try to. It does however show in the TreeView sidebar.
Fixed when item 3 is fixed below
Unless there is an underlying issue with that property not being set in the first place, we just need to handle the case where the
Seems only to be an issue of putting nodes in the channel root when it is empty. Otherwise, it appears to work as expected. Also note that the last 2 items were tested with my fix for the |
There was a problem hiding this comment.
LGTM!
Follow up issues for those not addressed in my last comment:
- #2242 (412 error & nodepanel not reflecting changes properly)



Description
Issue Addressed (if applicable)
Fixes #2105
Fixes #1941
Fixes #1882
Steps to Test