Closed (fixed)
Project:
Drupal core
Version:
10.1.x-dev
Component:
views.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Sep 2022 at 09:27 UTC
Updated:
31 Jan 2023 at 00:24 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
j-leeComment #4
j-leeComment #5
j-leeComment #6
j-leeTest failed because I did not fix them. Must have a look.
Comment #7
j-leeI think I fixed the tests. However, these definitely need a review.
Comment #8
abhijith s commentedApplied MR 2727 on 9.5.x.The empty option appears in node bulk import form after applying this patch.
Before patch:

After patch:

Comment #9
smustgrave commentedUploading a tests-only patch and full patch that is an exact copy of the MR at this commit 81f044f9
Just trying to see the red/green pattern and didn't want to upload just a tests-only patch and have drupal mark it NW.
Reviewing the code
Is it possible to make this use the label of the field? For example if I change my dropdown to say "Operations" the expected error message I would think should say "No Operation selected".
Also think we need a test case for the error message.
Comment #10
smustgrave commentedAlso since this is a UX change tagging for Usability check.
Since screenshots were provided in #8 that tag is not needed
Additional screenshots are not needed.
Comment #11
j-leeThe title of the action field from the view was added to the error message as well as test for it.
Comment #12
smustgrave commentedThanks for the quick turnaround.
See the changes from #9 was addressed.
Marking as RTBC but will still need a usability review.
Comment #13
lendudeVery nice, +1 from me.
Comment #14
smustgrave commentedBelieve https://www.drupal.org/project/drupal/issues/2381293 and https://www.drupal.org/project/media_entity/issues/2855233 can be closed in place of this.
Comment #15
alexpottUnfortunately the latest change on the RTBC does not work in languages that have different rules for capitalisation. Perhaps we should go back to #9. This type of stuff is really hard.
Comment #16
j-lee@alexpott I agree that this is a bad idea. But maybe you can reword the message without changing the spelling. Like this:
Comment #17
smustgrave commented@J-Lee I like that idea. Could make that change?
Comment #18
smustgrave commentedUpdated message around #16
Comment #19
j-leeI removed the strtolower part because of the different spelling rules, as alexpott suggested. With the option title in quotes it should be clear enough, I think.
RTBC for me.
Comment #20
alexpottI like the placeholder idea - but think the implementation should be tweaked. See review in gitlab,
Comment #21
j-leeDone, as suggested in GitLab.
Comment #22
saman malik commentedVerified and tested #9 Patch.
Patch applied successfully and able see to the expected result.
Empty option appears in the node bulk import form after applying this patch.
Comment #23
alexpott@Saman Malik people are working on the merge request in gitlab. Re-uploading the patch from #9 is disruptive to that work. Yes in #15 I suggested going back to it but then things moved on and another idea was proposed. See #19... and all the commits on the MR. Hiding all the files so the MR is the only thing the shows.
Comment #24
alexpottWe need a review of the MR's current state.
Comment #25
saman malik commentedComment #27
j-leeI will update the MR to 10.1. Adding a patch file for 9.5.
It has the status of the current MR.
Comment #31
j-leeI tried to make the change compatible with a rebase to 10.1.x, but something seems to have gone wrong. I am still struggling with the new git version.
I will close the MR again and try again. Sorry for the disturbance.
Comment #33
nod_no worries, I think you need to update the 10.1.x branch from the fork to the latest commit. Otherwise it's possible there will be lots of noise in the merge request.
Comment #35
gaurav-mathur commentedApplied patch #22 on drupal version 10.1.x successfully and working fine,
Refer to screenshot.
Thankyou
Comment #36
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #need-reveiw-queue. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge require as a guide.
Testing #27 as the MR for 10.1 seems empty. but believe #27 is what was intended for the MR. I see all the threads for the 9.5.x MR were resolved before #27 was made. Odd order but believe everything is there!
Testing the code on
Drupal 10.1.x on a standard install
Created a piece of content to make sure the bulk operation appears
Verify I see an empty option.
Comment #39
xjmI closed both merge requests for clarity after verifying that they were identical to the patch.
Comment #40
xjmI tested manually and confirmed the new empty option is available on the content, comment, and user bulk forms all work as expected, and that there is an error message that "No $foo were selected" If I try to submit the form without checking anything.
IMO this is a major usability bug, so promoting and retitling accordingly
Comment #42
xjmSince this is passing the title into a translated string, I manually tested it in Hindi:

Since it is a new string and not translated yet, I added a custom translation:
That seems OK.
We don't need to be quite this... literal with issue comments. "Select the node deletion action" would be sufficient for both these comments. The code explains the rest.
This comment should wrap at 80 characters.
This is a new method and as such should have a return typehint.
Since the comment formatting issues are relatively minor, I changed them on commit with the following diff:
Adding credit for @Abhijith S for manual testing, @J-Lee for work on the patch and MR, @alexpott for review, and @smustgrave for review, testing, triage, and taking the time to provide a test-only patch. (@gaurav-mathur repeated manual testing that had already been done by @Abhijith S, so I have not credited that.)
Committed and pushed to 10.1.x. Since it is a user interface change that could affect views and form alters etc. on existing sites, it is a minor-only fix I did not backport it to 10.0.x and 9.5.x.
Comment #43
xjmActually I realized this doesn't return a string; it returns a
TranslatableMarkup. Followup incoming. This is also wrong in another method on the same class.Comment #44
xjm