-
Notifications
You must be signed in to change notification settings - Fork 40
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
Convert admin/content/comment to a View #549
Comments
...I don't know about the milestone here, but I'm guessing not 1.0.0 :p |
Just as a note here so that we don't repeat any mistakes from the conversion of
also, I really don't like the way that the comments are split into "published" and "unapproved" via tabs. I propose having a single list for all comments and making the published/unapproved a filter instead. |
I think I'll take a stab at this... |
@klonos creating the view should be easy. We may need to create actions for the bulk-operations checkbox to match what we have now. I just did that for the files view so LMK if you need help with that part. (we are 15 days from feature freeze - but this issue is tagged as task so may be able to get in after Jan 1) |
Thanx @jenlampton. Health is not favoring me lately (even missed my daughter's birthday party) and I have a huge backlog of issues I need to catch up with. I'll try to get this done to go along with the rest of the issues about our admin views. I'll take a look at how you've done the bulk operations for the manage files view. If I can't figure it out, I'll surely turn to you for help. Thanx 😉 👍 |
Compared to the non-view listing, the manage comments view additionally gets us a "delete" and an "approve" operation in the dropbutton. Question is this though: in the non-view admin page, we had two separate local task tabs for published and unapproved comments. Do we want that recreated with the view listing, or do we prefer having the published/unapproved state of comments as a filter exposed to users. I think the second. Reason being that with the non-view mode splitting the comments to two lists does not allow a specific action (delete for example) to be applied to both published and unpublished comments. If these are in a single list, we can offer that option to the users and still allow them to filter by published/ unapproved (through a filter action instead of selecting between two local tasks tabs). |
The bulk operations for publish/unpublish comments work just fine, but the "approve" link in the dropbutton throws an "access denied". Need to add a |
Alright, I've just put a PR up for review/feedback. Far from complete, but here are the things that need to be done or that I need feedback before proceeding:
That's all I can think of right now. Could use opinions/pointers/thoughts on the above before proceeding. |
...
|
Slightly updated the PR so that the default view config includes |
Here is my initial quick look over this. Will do some more testing with more comments later: RE 2.
I think a single page with exposed filter would be better, as long as the menu includes a link labeled Unapproved Comments loading the filter with status=0. I would see this as an improvement because as an admin I would have quick access to unapproved comments, yet in addition have the options to search for particular comment(s) on the same page. RE 3.
The two separate menu items is a better option because having only single menu item labeled Manage Comment linked to the single views-generated page defaulting to status=0 may confuse some users if they landed on the page with no comments showing.
Having the count in the menu is quite useful and I would consider this as regression if it can't be retained. RE 4.
To me this seems acceptable. RE 5.
Yes, set to "is equal to" will the way to go.
Definitely bad UX without the autocomplete. I think this is a regression from Views in D6. I am pretty sure the autocomplete is part of Views for D6 without extra module. Odd call to have this removed from core. |
Not a redirect, no, but a menu router item that does a
It's in improvement IMO.
I don't like the idea of losing it mid-cycle. There could be people who are using it, and taking it away would make them grumpy. Maybe it would be acceptable in backdrop 2. Maybe we can add a
Because comments are something that need review frequently. Content is almost always published by default, so moderation is an edge case. The special case here matches the use-cases.
In Backdrop the 'comment title' is actually generated from the 'comment body' by default, so a single "Contains" field on the body here is sufficient. If people choose to use a separate title field (or other fields!) they can adjust the view to their needs. Let's keep it simple :)
Let's keep it. :)
That is very strange, indeed! Perhaps a core bug. |
With the release tomorrow, I'm moving this to the next point version. |
This issue is now unblocked, since #2433 went in. Does anyone want to take a stab at building the recent comments list as a view? |
Thanks @herbdool good job 👍 ...I have tested the PR sandbox and have not found anything to not be working as expected. Only a couple of minor nits to pick. Also, would be better if we used human language:
vs:
(same for the "publish" action). Also:
vs:
I have made a pass through the code as well, but my level of experience is usually enough to catch small things, so would need a second pass by a pair of more experienced eyes. PS: I am still ambivalent about having 2 separate tabs for something that could easily be implemented as an exposed filter, but if there's consensus on that, then OK. |
...although this is a task (which means that it could go in with a bug release), I think that the change is big enough to qualify for a minor release. I have added the milestone candidate label accordingly, but feel free to change to the bug milestone if you think it's OK. |
How about...
edit: I also agree with the minor-release milestone. Once we get this to RTBC we can add it :) (as per our new rules about managing issues in milestones: |
...yep, that works too 🙂 👍 |
Thanks @jenlampton @klonos. I've updated with your suggestions. |
Thanks @herbdool 👍 ...the confirmation and success messages for deleting comments have been updated, but I still get:
and:
...whereas instead I'd expect:
and:
I have also looked a bit more into the details of each view, and I have the following suggestions:
|
This is like Zeno's paradox of Achilles and the tortoise! Everytime I think it's done the goalpost has moved a little bit. 😋 "Publish comment was applied to 43 items": this might be outside the scope of this issue since it's language coming from vbo. Regarding URLs I'll have to see. We might want to preserve the existing URL but parameters can be changed. |
Yes on preserving url. Also yes on improving params for views filter names.
…On Sun, May 26, 2019, 8:00 PM Herb ***@***.***> wrote:
This is like Zeno's paradox of Achilles and the tortoise! Everytime I
think it's done the goalpost has moved a little bit. 😋
"Publish comment was applied to 43 items": this might be outside the scope
of this issue since it's language coming from vbo.
Regarding URLs I'll have to see. We might want to preserve the existing
URL but parameters can be changed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#549?email_source=notifications&email_token=AADBER2A5BCHOBZAXKWGHNTPXMXEJA5CNFSM4AZ3ZSR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWIRESI#issuecomment-496046665>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADBER2JBNEYCW4WD5D3KBTPXMXEJANCNFSM4AZ3ZSRQ>
.
|
Why? I have checked, and the previous non-view functionality does not provide any way to search through any of the published/unapproved comments lists. There is nothing in |
Sure 👍 ...can be a follow-up. |
The path part of the URL and the query string part are different. You are
referring to the query string part. I think k we all agree about that, it's
the path part that needs to he preserved.
…On Sun, May 26, 2019, 9:01 PM Gregory Netsas ***@***.***> wrote:
We might want to preserve the existing URL...
Why? I have checked, and the previous non-view functionality does not
provide any way to search through any of the published/unapproved comments
lists. There is nothing in /admin/content/comment/new currently (just
redirects to /admin/content/comment); and I did not recommend changing
/admin/content/comment/approval. Is there anything I'm missing?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#549?email_source=notifications&email_token=AADBER7LQ4VBRTBBFAXZSPTPXM6G5A5CNFSM4AZ3ZSR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWIS25A#issuecomment-496053620>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADBER6JIYRAVCZBU6FODG3PXM6G5ANCNFSM4AZ3ZSRQ>
.
|
Ready for review. |
@quicksketch @docwilmot or @serundeputy are you able to review this? It's been ready for a few months. |
@herbdool The PR needs rebasing to fix some conflicts. |
I fixed the conflicts which also pulled in the latest 1.x changes. So should be ready for testing/review again. |
Many test failures for PHP 8.1 |
We didn't have an issue for that from #151. Here it is ;)
PR by @klonos (single admin page for both published/unapproved comments): backdrop/backdrop#2341(consensus to try combine into single admin page in a new follow-up issue)Alternative PR by @herbdool (separate pages for published/unapproved comments): backdrop/backdrop#2313
The text was updated successfully, but these errors were encountered: