- Issue created by @ivnish
- Status changed to Needs review
10 months ago 8:22am 10 April 2024 - Status changed to Needs work
10 months ago 3:27pm 10 April 2024 - ๐บ๐ธUnited States smustgrave
Will need some form of upgrade path for the new settings.
Also tagging for sub-maintainer for their thoughts.
- ivnish Kazakhstan
Will need some form of upgrade path for the new settings.
Upgrade path is not needed in this case. The new setting is disabled by default and does not affect existing sites.
- Status changed to Needs review
10 months ago 7:13pm 10 April 2024 - ๐บ๐ธUnited States smustgrave
The upgrade hook should set the new config to false.
If I go to the olivero settings, change nothing, click save, and do a config export I'll get a new change now because the schema is different.
- Status changed to RTBC
10 months ago 12:54pm 11 April 2024 - Status changed to Needs review
10 months ago 9:27pm 11 April 2024 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Thanks folks we still need a subsystem maintainer opinion here - would suggest pinging one of the olivero maintainers in #frontend in slack
- Status changed to Needs work
10 months ago 9:30pm 11 April 2024 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Left some comments on the MR - thanks folks
- Status changed to Needs review
10 months ago 10:34am 12 April 2024 - Issue was unassigned.
- Status changed to RTBC
10 months ago 7:03am 16 April 2024 - Status changed to Fixed
10 months ago 9:09am 16 April 2024 - Status changed to Needs work
10 months ago 9:28am 16 April 2024 - Status changed to Needs review
10 months ago 10:28am 16 April 2024 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
The config changes look v nice... a couple of other thoughts...
We can add an update test to \Drupal\Tests\olivero\Functional\Update\OliveroPostUpdateTest
I think we can test the functionality in core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroCommentTest.js - ๐ซ๐ทFrance andypost
I bet it needs change record, moreover it reminds me that we have comment type entity to store this kind of data
Personally I find comment field formatter or comment type is a better place to store position of the form.
Also it needs to revisit D6/7 migrations as there was related setting
- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
@andypost pointed out that the comment field already includes a setting for 'form location' but that's only if its on the same page or a separate reply page. I think its ok for a theme to make a setting for how to position the form when its on the same page.
$element['form_location'] = [ '#type' => 'checkbox', '#title' => $this->t('Show reply form on the same page as comments'), '#default_value' => $settings['form_location'], ];
- Status changed to Needs work
10 months ago 12:57pm 24 April 2024 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to Needs review
6 months ago 9:34am 12 August 2024 - ivnish Kazakhstan
Added a "update test"
Also change record draft was created https://www.drupal.org/node/3467555 โ
- ๐ซ๐ทFrance andypost
+1 to get in, just can't test 11.x with Bartok properly for BC but it's contributed theme now
- Status changed to Needs work
6 months ago 8:35am 16 August 2024 - ๐ฎ๐ณIndia Kanchan Bhogade
Hi
I have reproduced the issue on Drupal 11 with the Olivero theme.
But the MR is falling for Drupal 11Testing steps:
Just create a new node with commentsAttaching screenshot for reference
- Status changed to Needs review
6 months ago 8:46am 16 August 2024 - ivnish Kazakhstan
@Kanchan Bhogade MR successfully applied to 11.x branch. See https://git.drupalcode.org/issue/drupal-3439844/-/pipelines/251360
- ๐ฎ๐ณIndia Kanchan Bhogade
Hi
I have reproduced the issue on Drupal 11 with the Olivero theme.
The MR is applied cleanly...Testing steps:
Just create a new node with commentsTest Result:
I have added 2 comments, but after applying the MR, the added comments are not visible only the count of comments is visible.Attaching Screenshots
- Status changed to RTBC
6 months ago 9:02am 18 August 2024 - ๐ง๐พBelarus krakenbite
I cannot reproduce issue from #34
All works as expected
Attaching Screenshots too
- Status changed to Needs review
5 months ago 11:12am 25 August 2024 - ๐ฌ๐งUnited Kingdom catch
Don't think this has been reviewed by an Olivero maintainer yet so tagging for that.
I think this is really something that should be configurable centrally in Drupal core, probably as a formatter setting. However we'd still need to remove the hard-coding of the form position in Olivero if we do that, but it would mean the position moves to the formatter settings instead of Olivero. Moving back to needs review for discussion.
- ๐ซ๐ทFrance andypost
should be configurable centrally in Drupal core, probably as a formatter setting
++ to get more opinions as there setting and default value when new theme enabled is tricky and same time option for comment form gonna be added in โจ Allow a sitebuilder to change the Comment form heading Needs work
- ๐ซ๐ทFrance andypost
Re #27
theme to make a setting for how to position the form when its on the same page
consider a case when you have 2 comment fields for the entity and and wanna configure it at comment field/type level...
- ๐ซ๐ทFrance andypost
Looking back I find @catch choice is preferable as initial intent was #1920044: Move comment field settings that relate to rendering to formatter options โ
- ivnish Kazakhstan
Hey, folks! I don't agree about formatter. 99% themes render comment form after comments list, only olivero before. Formatter setting will not be used by most users. And not every olivero users too.
I use olivero in my blog and formatter setting is not relevant for me. If this issue will not be commited to olivero, I have to refuse this issue :(
- ๐ฌ๐งUnited Kingdom catch
99% themes render comment form after comments list, only olivero before.
Some sites will want to render the comment form before the comments and will be overriding themes, so the formatter would help in that direction too.
- ๐ฎ๐ณIndia sagarmohite0031
Hello
I have reproduced the issue for Olivero theme on Drupal 11.
The MR is applied successfully.Testing steps-
Created new node and added comments.Test Result:
Results are same before and after applied MR.
Check attachments. - ๐ซ๐ทFrance andypost
I think it all means that Olivero doing too many things that is not ready in comment module, like hardcoding comment form placement and comment count โจ Support per comment field comment count tokens Active via https://git.drupalcode.org/project/drupal/-/blob/11.x/core/themes/oliver...
- ๐บ๐ธUnited States smustgrave
@sagarmohite0031 why did you remove all the tags?
The Needs Review Queue Bot โ tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
The Needs Review Queue Bot โ tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- First commit to issue fork.
- ๐ฎ๐ณIndia mrinalini9 New Delhi
Fixed PHPStan issues reported by the bot in #51 but still some tests are failing that need to be fixed.
Thanks!