Thunderstore icon indicating copy to clipboard operation
Thunderstore copied to clipboard

Comments backend

Open nihaals opened this issue 3 years ago • 8 comments

nihaals avatar Dec 31 '20 17:12 nihaals

Codecov Report

Merging #196 (7e5866f) into master (e680345) will increase coverage by 0.14%. The diff coverage is 86.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #196      +/-   ##
==========================================
+ Coverage   83.77%   83.91%   +0.14%     
==========================================
  Files          93       97       +4     
  Lines        2971     3097     +126     
  Branches      307      321      +14     
==========================================
+ Hits         2489     2599     +110     
- Misses        399      409      +10     
- Partials       83       89       +6     
Impacted Files Coverage Δ
django/thunderstore/core/utils.py 82.50% <33.33%> (-6.39%) :arrow_down:
django/thunderstore/social/views.py 51.92% <50.00%> (+0.94%) :arrow_up:
django/thunderstore/repository/models/comment.py 81.48% <81.48%> (ø)
django/thunderstore/repository/models/thread.py 84.21% <84.21%> (ø)
django/thunderstore/account/tasks.py 91.30% <91.30%> (ø)
django/thunderstore/repository/comment.py 94.00% <94.00%> (ø)
...go/thunderstore/community/forms/package_listing.py 100.00% <100.00%> (ø)
...o/thunderstore/community/models/package_listing.py 91.07% <100.00%> (+0.16%) :arrow_up:
django/thunderstore/repository/models/__init__.py 100.00% <100.00%> (ø)
... and 3 more

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 e680345...7e5866f. Read the comment docs.

codecov[bot] avatar Dec 31 '20 17:12 codecov[bot]

Missing tests but it should be reviewable. Especially unsure on how to organise the logic, e.g. where to put comment deleting (possibly letting members/owners of the identity delete comments from random people on their packages) and if the structure of the forms make sense. I imagine the edit form being integrated into the main package page but you might need an edit form for every comment so an API endpoint could make more sense

nihaals avatar Dec 31 '20 17:12 nihaals

Not sure what's happening with the test fail, I've stepped through and the author is definitely being set, just not actually saved for some reason.

nihaals avatar Jan 31 '21 17:01 nihaals

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Feb 13 '21 11:02 CLAassistant

Feedback on Discord:

Change the generic foreign key to a Thread model, where you have a relationship like PackageListing -> Thread -> Comment[].


Threads could probably be made on demand part of the create comment form (as opposed to when creating a package listing or a signal).

nihaals avatar Mar 15 '21 17:03 nihaals

I think with this structure, replies can be part of the same system as regular threads. Original thread about replies.

nihaals avatar Mar 20 '21 14:03 nihaals

Any info on the state of this?

Jan200101 avatar Aug 11 '23 12:08 Jan200101

This'll be picked up again once the new website frontend is out, since the plan is to never add the feature to the legacy (current) website to avoid duplicate work.

MythicManiac avatar Aug 11 '23 15:08 MythicManiac