-
-
Notifications
You must be signed in to change notification settings - Fork 45
Implement soft delete #285
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
e839478
d4a25d0
72f4ab6
e9b745d
0ad6e20
6e92539
2301231
de9bba6
5bf3706
3493ef1
13f9a49
f86d8ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It shouldn't be possible to search for text in a deleted comment and find it that way. So we probably need to return an empty string from the getText and Title methods below if is_deleted is true.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done in 0ad6e20 ps: some tests are failing coz of this change, will address later! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add is_deleted to the tal:define above so we only look it up once, and then use it multiple times below.
I think you can just do tal:define="is_deleted reply/is_deleted" because you added a default value to the class at https://github.com/plone/plone.app.discussion/pull/285/files#diff-a5157979e70daaf24e0028ff6713df1ebc872221baca1bb812944b9cc566effcR118, so we don't have to use getattr with a default here.
Then the condition becomes tal:condition="not:is_deleted"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in e9b745d