Closed (fixed)
Project:
Drupal core
Version:
11.2.x-dev
Component:
node system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2012 at 22:58 UTC
Updated:
3 Jul 2025 at 15:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerThis looks great.
I'm not sure what the proper way of getting patches from contrib to core would be, but i think for really simple patches it might make sense to forward-port them.
Comment #2
smira commentedthis applies cleanly, honestly not sure how to test what approach might be better ;)
Comment #3
jibranIt is a bug it needs some test to show the bug.
Comment #4
jibranAs per #3.
Comment #5
xjm(Merging "node system" and "node.module" components for 8.x; disregard.)
Comment #14
catchThis is still valid.
For adding a test, it would probably need a test view with the filter applied + some nodes, and then check the generated query to make sure it doesn't join on the node_access table.
Comment #15
mohit_aghera commentedComment #16
mohit_aghera commentedComment #17
mohit_aghera commentedAdding test-only patch.
Comment #19
mohit_aghera commentedComment #21
mohit_aghera commentedComment #22
catchTest coverage looks good, couple of nits:
Article vs. page mismatch between the comment and the code.
Maybe 'hook_node_grants()' instead of 'node_grant hook'.
Comment #23
mohit_aghera commentedResolved the feedback on the PR.
Comment #27
acbramley commentedTests have been added and initial feedback addressed, however the MR is still against 9.3.x so will need to be rebased against 10.1.x (is there a tag for rebase vs reroll?)
The issue summary could use a bit of sprucing up but not a deal breaker.
Comment #28
Ankit.Gupta commentedReroll the patch #17 with Drupal 10.1.x
Comment #29
mohit_aghera commentedHi @Ankit.Gupta
We don't need to upload the test-only patch.
Current MR already has the patch and the test case.
Hi @acbramley
I have updated the destination branch for the PR
Will trigger the build to see how it goes.
Comment #32
acbramley commentedRebased onto 11.x and tidied up the test a bit.
Comment #33
smustgrave commentedCan we add an issue summary?
Comment #34
acbramley commentedComment #35
smustgrave commentedShows test coverage
Actual change seems pretty straight forward, no issue and pipeline is green. I did rebase because it was 200+ commits
Comment #38
catchCommitted/pushed to 11.x and cherry-picked to 11.2.x, thanks!