Hello,
I made a new patch and in this case I am correcting both the initial problem of the issue:
- Adding for export single simple configuration name the empty value
- The problem that when we switching back to the '- Select-' state the text area shows 'false' value
I added a gif where you can check that is working (After-patch-2622468-36.gif)
If there's anything I can improve just let me know!Thanks
- 🇮🇳India omkar_yewale Mumbai
I have verified and tested patch #36 on Drupal 9.5 and it working fine.
Both of the issues were addressed.
@Leticia Gauna provide an interdiff file. - Status changed to Needs review
over 1 year ago 8:20pm 13 June 2023 Sorry delay @omkar_yewale!
Here is the interdiff file, the patch is in the comment #36 https://www.drupal.org/project/drupal/issues/2622468#comment-15027683 🐛 Export single simple configuration name has no empty value, resulting in confusing UI RTBC
Thanks
- Status changed to Needs work
over 1 year ago 2:45pm 14 June 2023 - 🇺🇸United States smustgrave
Will need a simple assertion to show the bug is fixed please.
- last update
over 1 year ago 29,810 pass, 2 fail - last update
over 1 year ago 29,811 pass - Status changed to Needs review
over 1 year ago 11:57am 13 July 2023 - last update
over 1 year ago 30,341 pass - 🇺🇸United States smustgrave
Confirmed applying patch #40 that going to the configuration export page the first option is -Select-
- Status changed to RTBC
over 1 year ago 1:51pm 13 July 2023 - last update
over 1 year ago 30,341 pass - last update
over 1 year ago 30,341 pass - last update
over 1 year ago 30,341 pass - last update
over 1 year ago 30,341 pass - last update
over 1 year ago 30,341 pass - Status changed to Needs work
over 1 year ago 10:00pm 24 July 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
+++ b/core/modules/config/src/Form/ConfigSingleExportForm.php @@ -154,8 +154,8 @@ public function updateExport($form, FormStateInterface $form_state) { + $form['export']['#value'] = !$this->configStorage->read($name) ? NULL : Yaml::encode($this->configStorage->read($name)); + $form['export']['#description'] = !$this->configStorage->read($name) ? NULL : $this->t('Filename: %name', ['%name' => $name . '.yml']);
we're calling $this->configStorage->read($name) 3 times here now
How about we do something like this instead
$exists = $this->configStorage->exists($name)
And then use that for our logic instead
Other than that, this looks great - thanks!
- Status changed to Needs review
over 1 year ago 2:10pm 24 August 2023 - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - Status changed to Needs work
over 1 year ago 2:48pm 24 August 2023 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 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
over 1 year ago 8:37am 8 September 2023 - last update
over 1 year ago 30,146 pass - Status changed to RTBC
over 1 year ago 3:31pm 8 September 2023 - last update
over 1 year ago 30,146 pass - last update
over 1 year ago 30,148 pass - last update
over 1 year ago 30,153 pass, 2 fail The last submitted patch, 48: 2622468-48.patch, failed testing. View results →
- last update
over 1 year ago Build Successful - last update
over 1 year ago 30,161 pass - last update
over 1 year ago 30,164 pass - last update
about 1 year ago 30,168 pass - last update
about 1 year ago 30,168 pass - last update
about 1 year ago 30,205 pass - last update
about 1 year ago 30,363 pass - Status changed to Fixed
about 1 year ago 8:42am 28 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.