Closed ychae closed 4 years ago
Similar approach for
The following functionalities were tested in General Discussion, Project Discussion, Tool Discussion, and Data Catalog Discussion:
General, Tool, and Data Catalog Discussion -
Test
user creates new discussion:
admin
useradmin
userProject Discussion -
Test
user creates new discussion in a project that they created:
admin
user (but can delete the entire discussion)Test
user creates new discussion in a project that they are invited to with READ/WRITE/ADMIN access:
admin
userTest
user adds to an admin
created discussion in a project that they are invited to with READ/WRITE/ADMIN access:
admin
@tschaffter Thanks so much for all the updates to the discussions! Please see my comment above for results from testing -- long story short, all the expected behavior was working great!
The only odd thing I found was that when I deleted threads from a discussion, the participant icon list on the main page didn't update (see screenshot below):
To reproduce:
admin
useradmin
(responses can also be added as test
user)@ychae The discussion is made of two models, Thread
and Message
. The Thread
has a property called contributors
. Each time a Message
is added to a Thread
, contributors
is updated to keep track of the last N users who posted a message. The reason I have added the contributors
property is that it's more efficient to get this information quickly rather than pulling the last N messages and extract their authors. The drawback is that contributors
is a duplicated piece of information and because there is not reference link between messages and contributors, removing a contributor at the time of removing a message is not trivial. Moreover, the discrepancy we see is because a delete message completely disappear. In the future I not do it that way but instead still show that someone posted a message but deleted it. Not deleting purely objects but instead "deactivate" them would also be more provenance friendly. For now I recommend not changing the implementation as someone did contribute at some point in the discussion, even if the contribution has been deleted since.
Ah that makes sense. Thanks for clarifying!
I think this is related to the general auth update but I wanted to track specifics where I could so I don't forget.
When I create a thread as![test-user-parent-thread](https://user-images.githubusercontent.com/12868382/66236275-f0c65480-e6a6-11e9-988d-9a9d0f388914.png)
test user
, the ellipses drop-down doesn't show any options for me. However, when I log in asadmin
all the options are there.As![auth-thread-non-admin](https://user-images.githubusercontent.com/12868382/66236346-1f442f80-e6a7-11e9-81ce-d2ea14ebcdcd.gif)
test user
I have copy link, edit, and delete access to the parent thread once I click into the thread. But I don't get those options to the sub-threads and the thread in the main list of discussions: