- Issue was unassigned.
- ๐ณ๐ฟNew Zealand john pitcairn
Draft change record: https://www.drupal.org/node/3335460 โ
- ๐ณ๐ฟNew Zealand john pitcairn
Have requested a UX review on Slack. Time zones being what they are it probably won't be a realtime conversation...
- Status changed to Needs work
almost 2 years ago 11:25am 23 January 2023 - ๐ซ๐ฎFinland lauriii Finland
Sorry for not reading any of the back scroll โ leaving feedback purely on what I see in the screenshot in the issue summary. I think something we should probably clarify is whether selecting an option will make the block visible or invisible on the selected pages. Also, it's currently unclear what is the behavior when none of the options are selected.
- Status changed to Needs review
almost 2 years ago 7:32am 24 January 2023 - ๐ณ๐ฟNew Zealand john pitcairn
Thanks @Lauriii.
We did have more help text in there earlier. I've added something similar back in:
Shows the block on pages with any matching response status. If nothing is checked, the block is shown on all pages. Other response statuses are not used.
This patch differs only by that change. I've updated the issue summary screenshot.
I have to point out that no other core block condition plugins bother to explain what happens if nothing is selected/entered. Let alone what "negate" means in that context.
- ๐ฎ๐ณIndia malaynayak
Adding a patch compatible with Drupal 9.5.x. Patch #157 fails for Drupal 9.5.4.
- ๐ฆ๐บAustralia klonos 90% Melbourne, Australia - 10% Larissa, Greece
Is it worth it adding 503 to the mix here? (to allow visibility conditions for blocks when in maintenance mode)
- Status changed to Needs work
almost 2 years ago 1:25am 4 March 2023 - ๐บ๐ธUnited States smustgrave
This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. 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 request โ as a guide.
Removing credit for #159 as it's expected for a patch to be tested before uploaded
The last patch doesn't pass commit checks, could you make sure to run
./core/scripts/dev/commit-code-check.sh
before uploading a patch to make sure there are no issues with code formatting. see https://www.drupal.org/docs/develop/development-tools/running-core-devel... โReviewing #157
ResponseStatus
1. Return functions should be typehintedFunctionality everything appears to be working.
Added a block to only appear in 404
Going to /blah I see the block
Going to regular page I do notSame for 403.
Question this was previously tested for usability in #72 what additional feature needs to be tested?
- ๐ณ๐ฟNew Zealand john pitcairn
Question this was previously tested for usability in #72 what additional feature needs to be tested?
That previous usability review asked us to provide only 403/404 checkboxes and add a "negate" checkbox. The plug in was labelled "error pages" at that time.
We tried that, and it caused confusion over what was being negated, especially when no error page was checked.
We decided it is clearer and cleaner to remove the negation, include a "200 success" checkbox, and label the plugin "response status" instead.
We assume we need an additional usability review due to those changes. Do we?
- ๐ณ๐ฟNew Zealand john pitcairn
Is it worth it adding 503 to the mix here? (to allow visibility conditions for blocks when in maintenance mode)
@klonos: what would the checkbox label be? Are there any other circumstances where Drupal/Symfony returns 503? Maybe this could be a followup issue?
- ๐บ๐ธUnited States smustgrave
So then in that case it will need UX review again. Will post to see if they can add to their next call.
Question on the 503, definitely think it would be a follow up thatโs postponed on this ticket. But if you get a 503 then I donโt think the Drupal render system is called
- ๐ฆ๐บAustralia klonos 90% Melbourne, Australia - 10% Larissa, Greece
what would the checkbox label be? Are there any other circumstances where Drupal/Symfony returns 503? Maybe this could be a followup issue?
@ John Pitcairn I haven't checked whether there were other cases where 503 is returned - I just happened to notice that in D7 in drupal_deliver_html_page() there are checks for 404, 403, and also for 503, and in the case of 503 it was only calling things relevant to maintenance status (it is adding a "'503 Service unavailable'" HTTP "Status" header as well).
Anyway, I thought that it might be relevant here, in case people want to add blocks that are shown during maintenance mode only. That's why I brought it up.
Can certainly be a follow-up issue if people think that it is not relevant/appropriate here or that it unnecessarily broadens the initial scope of the issue.
- Status changed to Needs review
over 1 year ago 2:52pm 18 March 2023 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
I think this might be blocked by ๐ [regression] Language switcher block throws exception when no route is matched Fixed
- ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Actually
$exception = \Drupal::requestStack()->getCurrentRequest()->attributes->get('exception');
works with BigPipe so that's good. - ๐ญ๐บHungary Gรกbor Hojtsy Hungary
I think this feature makes a lot of sense, however it did not make it into 10.1, so untagging from release highlights. Would be great to get into 10.2 and then tag for 10.2 release highlights though :)
- Status changed to Needs work
over 1 year ago 5:54pm 31 May 2023 - ๐บ๐ธUnited States smustgrave
Will need a reroll for 11.x
It's been posted to the #ux channel few times also. Believe it's on a radar.
- last update
over 1 year ago 29,423 pass - Status changed to Needs review
over 1 year ago 10:27pm 31 May 2023 - Status changed to RTBC
over 1 year ago 2:20pm 8 June 2023 - ๐บ๐ธUnited States smustgrave
Brought this up at DrupalCon Pittsburgh and the usability tag can be removed as the bulk was done by @ckrina in #72.
So testing this out by placing a block to appear on each status.
Verified the block appears specifically on those codes and not on valid pages.Some good excitement for this feature!
- last update
over 1 year ago 29,441 pass - last update
over 1 year ago 29,441 pass - last update
over 1 year ago 29,446 pass - last update
over 1 year ago 29,450 pass - last update
over 1 year ago 29,451 pass - last update
over 1 year ago 28,547 pass - last update
over 1 year ago 29,450 pass, 1 fail The last submitted patch, 169: 2245767-block-response-status-169.patch, failed testing. View results โ
- Status changed to Fixed
over 1 year ago 12:56pm 19 June 2023 - ๐ฌ๐งUnited Kingdom catch
Still looks good to me.
Committed/pushed to 11.x and tagging for 10.2.0 release highlights.
The re-roll in #180 looks unnecessary so I committed #169.
Did my best with issue credit, but a lot of people and comments on the issue so apologies for any omissions.
- Status changed to Needs work
over 1 year ago 5:11pm 19 June 2023 - ๐ณ๐ฑNetherlands spokje
Seems like this broke HEAD of 11.x, because the new test
\Drupal\KernelTests\Core\Plugin\Condition\ResponseStatusTest
uses thesequences
in its::setUp()
($this->installSchema('system', ['sequences']);
).This was deprecated in ๐ Deprecate Drupal\Core\Database\Connection::nextId() and the {sequences} table and schema Fixed .
- Status changed to Needs review
over 1 year ago 7:54pm 23 July 2023 - last update
over 1 year ago 29,899 pass - ๐บ๐ธUnited States benjifisher Boston area
According to the change record https://www.drupal.org/node/3349345 โ ,
Installing the table
sequences
with the methodKernelTestBase::installSchema()
is deprecated. The following code is no longer necessary and should be removed:$this->installSchema('system', ['sequences']);
I made that change and the test passes locally.
The interdiff compares my patch to the one in #169, since @catch mentioned (#185) that he was ignoring the patch in #180.
I have not looked at the rest of the patch.
- Status changed to RTBC
over 1 year ago 9:45pm 23 July 2023 - ๐บ๐ธUnited States smustgrave
Since this was previously reviewed and only issue was the sequence think its safe to RTBC again
- last update
over 1 year ago 29,902 pass - last update
over 1 year ago 29,906 pass - last update
over 1 year ago 29,908 pass -
lauriii โ
committed badd417e on 11.x
Issue #2245767 by John Pitcairn, andrewmacpherson, danflanagan8,...
-
lauriii โ
committed badd417e on 11.x
- Status changed to Fixed
over 1 year ago 12:06pm 29 July 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 9:38am 19 September 2023 - ๐ณ๐ฟNew Zealand xurizaemon ลtepoti, Aotearoa ๐
@matoeil at https://git.drupalcode.org/project/drupal/-/commit/badd417 you can see this becomes available in Drupal 10.2 (click "Tags containing this commit").