- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
I think we should wait for ๐ [policy, then docs] Change how we deprecate classes Fixed here so we can deprecate the whole class (Via the constructor)
- Status changed to Postponed
over 2 years ago 2:27pm 23 January 2023 - ๐บ๐ธUnited States smustgrave
Sounds like a plan. Will postpone until then
- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
The blocker is in, so let's trigger a deprecation in the constructor
- ๐บ๐ธUnited States xjm
The policy has been adopted now, so let's move the deprecation to the constructor.
But wait, why are we removing this handy button? The IS doesn't say. This seems contrary to the whole pattern of making blocks have the same patterns as other content. The content administration page has a button, the content type administration page has a button, etc.
- Status changed to Needs work
over 2 years ago 11:58pm 23 January 2023 - ๐ฌ๐งUnited Kingdom joachim
This issue isn't removing the button, but the text link that's inside the table.
> Block content's admin listing has a 'Add new block' link in the 'results not found' message.
> But there is already an 'add new block' action button like every other content entity list builder.However, this issue disagrees with โจ Add link to add a new entity in an empty entity list controller table Needs work , which wants to add the text link to ALL entity types.
- Status changed to Needs review
over 2 years ago 5:24pm 24 January 2023 - ๐บ๐ธUnited States smustgrave
However, this issue disagrees with #1798540: Add link to add a new entity in an empty entity list controller table, which wants to add the text link to ALL entity types.
That I can't answer. Maybe @xjm or @larowlan?
Added the deprecation to the listing class though.
- ๐ฎ๐ณIndia nayana_mvr
Verified the patch #75 and tested it on Drupal version 10.1.x. The patch works fine and I have added the before and after screenshots for reference. But as mentioned in above comments, the problem statement of this ticket contradicts with the ticket โจ Add link to add a new entity in an empty entity list controller table Needs work
- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
I commented on โจ Add link to add a new entity in an empty entity list controller table Needs work - personally I think that we shouldn't have a specific block-content views area plugin for when things are empty, but instead a generic one. However โจ Add link to add a new entity in an empty entity list controller table Needs work does not address that, it only addresses ListBuilders which in reality or normally overridden with a view for content entities. I've asked over there for an issue summary update to outline if that issue intends to tackle that question too.
From my point of view, I think it makes sense to remove the specific block-content one and provide a generic one, but it'd be good to see confirmation that is possible in โจ Add link to add a new entity in an empty entity list controller table Needs work first.
Less single-use entity thingsโข๏ธ and more generic is the direction I think we should be going in. What do others think? I imagine given the work @joachim has done to make generic entity menu link/action/task handlers he may feel the same way.
- ๐ฎ๐ณIndia saket-001
As mention in issue the patch #75 works fine but no links are there for new entity.
- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
@saket-001 that is the intention of the issue
I think we should postpone this on โจ Add link to add a new entity in an empty entity list controller table Needs work , until it at least gets the issue summary update
- Status changed to Postponed
over 2 years ago 9:45pm 21 February 2023 - ๐บ๐ธUnited States xjm
- First commit to issue fork.
- ๐ฆ๐บAustralia acbramley
Hoping we can unblock this issue based on https://www.drupal.org/project/drupal/issues/1798540#comment-16136875 โจ Add link to add a new entity in an empty entity list controller table Needs work
I've done some testing and reviewed the approach here which seems to be based on #62 and #63
The problem is as soon as we remove the entry from BlockContentViewsData the plugin is no longer functional. Any existing views will not be able to load the plugin and will get a "Broken/missing handler" link on the views UI admin page. We want to remove it so it doesn't leak into new config after being deprecated so I think really the only option here is to write an update hook to update existing views.
I think the upgrade path should be pretty straightforward given we have ViewsConfigUpdater.
With that, I think we can just leave the class as is (not empty it out) so that if for some reason someone is extending it in a way they will at least get the deprecation error and functionality will remain the same?
- Merge request !12320Issue #3095893: Deprecate and remove ListingEmpty plugin โ (Open) created by acbramley
- ๐ฆ๐บAustralia acbramley
ViewsConfigUpdater is pretty hard to grok and quite inconsistent, I based this new stuff on
needsTableCssClassUpdate
which still goes throughprocessDisplayHandlers
for seemingly no reason? In any case this is working. - ๐ฆ๐บAustralia acbramley
Tests are failing because of a deprecation triggered by a different views upgrade path in ๐ Add ViewsConfigUpdater deprecation support for update_table_css_class Active :(