- First commit to issue fork.
- Merge request !6287Update ViewsBlock.php; hide disabled view blocks from the block adding list. → (Open) created by sijumpk
- Status changed to Needs review
11 months ago 1:31pm 23 January 2024 - 🇮🇳India sijumpk
Updated in such a way that the disabled blocks wont appear on add new block UI/layout, but existing added blocks will appear as such in UI.
- Assigned to divya.sejekan
- 🇮🇳India divya.sejekan
@sijumpk I tried With the MR !6287 - 11.x and also 3076346-views-blocks-that
The issue is not resolved.Testing steps :
1. Add a block , and individual blocks
2. disabled individual block
3. This block still appears in block UI or layout builder. - Issue was unassigned.
- Status changed to Needs work
11 months ago 12:24pm 25 January 2024 - Status changed to Needs review
11 months ago 12:39pm 25 January 2024 - 🇮🇳India sijumpk
@divya.sejekan, In order to see the updated list after disabling the block, you should reloaded blocks UI page or reopened the "Place block" popup after closing it.
- Status changed to Needs work
11 months ago 2:27pm 25 January 2024 - 🇺🇸United States smustgrave
This will need a failing test to show the issue.
Issue summary also needs to be updated to use the standard issue template.
Did not test.
- last update
11 months ago Build Successful - Status changed to Needs review
11 months ago 4:36am 2 February 2024 - 🇮🇳India sijumpk
Added failing test as patch file, disabled_views_block_failing_test.patch →
- Status changed to Needs work
11 months ago 4:00pm 2 February 2024 - 🇺🇸United States smustgrave
Have not reviewed. Still appears to need an issue summary update. No need to add a failing patch, there's the test-only feature of the MR.
- 🇮🇳India sijumpk
Problem/Motivation
Disbled block type displays of views appears in block UI/layout builder adding list.
Steps to reproduce
- Create a standard D11 installation
- Go to Content view edit page (admin/structure/views/view/content)
- Add a Block type display to the view and rename it "Test block"
- In the view edit page disable the block by cliking "Disable Test block" link
- Save the view
- Go to Claro's Block layout page (admin/structure/block/list/claro)
- Click on "Place block" button for any region
- Our disabled block, "Test block", appears in the list
Proposed resolution
Hide disabled view blocks from the block adding list.
Merge request link
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
- Status changed to Needs review
11 months ago 10:58am 3 February 2024 - Status changed to Needs work
11 months ago 4:15pm 6 February 2024 - 🇺🇸United States smustgrave
Running the test-only feature though shows the test is passing without the fix. https://git.drupalcode.org/issue/drupal-3076346/-/jobs/697927
- Status changed to Needs review
11 months ago 5:39am 7 February 2024 - 🇮🇳India sijumpk
The error fixing portion is reverted back, and now there is just the test in the current MR. You can see that its getting failed with the desired error message. https://git.drupalcode.org/issue/drupal-3076346/-/jobs/762582.
So technically the test-only feature should also have to fail. How can this be possible? I also did a rebasing this time, maybe that helped. Anyway if you can check the current failed MR and confirm about the test case, I will add back the fix to the MR.
- 🇮🇳India sijumpk
Tried removing the problem fixing portion from the code, leaving test only in MR. By doing so the MR got failed with the desired error message. You can see the job results here
https://git.drupalcode.org/issue/drupal-3076346/-/jobs/762582
Now the fix is added back to the code, and MR is getting completed without errors. No idea how the test-only pipeline got passed last time. Now I have rebased the code also, so this time lets hope test-only will work as expected.
- Status changed to Needs work
10 months ago 12:47pm 13 February 2024 - 🇮🇳India djsagar
Hi All,
After MR !6287, The test block hide from Place block option,
But i also tested the issue by following Steps- Create a standard D11 installation
- Go to Content view edit page (admin/structure/views/view/content)
- Add a Block type display to the view and rename it "Test block"
- In the view edit page disable the block by cliking "Disable Test block" link
- Save the view
- Go to Claro's Block layout page (admin/structure/block/list/claro)
- Click on "Place block" button for any region
- Our disabled block, "Test block", appears in the list
User can place the block after disable block in view, but block not appears in any page. maybe i miss some step.
- Merge request !6580Resolve #3076346 "Disabled block view display showing" → (Open) created by sijumpk
- Status changed to Needs review
10 months ago 2:25pm 13 February 2024 - 🇮🇳India sijumpk
Had committed the problem fixing code to 11.x branch, because of that the test-only pipeline was not showing any problem. Now 11.x is reverted back to its original state and added changes (the fix and updated test) to a separate branch. Here is the test result for test-only pipeline https://git.drupalcode.org/issue/drupal-3076346/-/jobs/806000. And its getting failed as expected. Please review it.
- Status changed to Needs work
10 months ago 4:19pm 19 February 2024 - 🇺🇸United States smustgrave
Sorry re-read the title and just realized this was also mentioning layout builder. Think we need to add test coverage there as well. Maybe can extend existing to check the list but in layout builder.
That test should be in layout builder module though.
- Status changed to Needs review
10 months ago 1:31pm 23 February 2024 - 🇮🇳India sijumpk
@smustgrave, it was a point worth watching. I missed that portion and Layout builder is using its own logic to list the blocks. Now its fixed and also a test case for that added to an existing test file.
- Status changed to RTBC
10 months ago 8:17pm 23 February 2024 - Status changed to Needs work
10 months ago 11:07am 5 March 2024