- Issue created by @fgm
- Merge request !49Issue #3475381 by fgm: Config Schema is missing the Notify schema โ (Open) created by fgm
- Status changed to Needs review
3 months ago 8:13pm 18 September 2024 - ๐ซ๐ทFrance fgm Paris, France
Suggested patch for review. Fixes the problem for me.
- ๐ฉ๐ชGermany Anybody Porta Westfalica
Added https://git.drupalcode.org/project/backup_migrate/-/blob/5.1.x/src/Core/...
Thanks for the important hint!
- ๐ฉ๐ชGermany Anybody Porta Westfalica
Mhm I'm wondering why CI doesn't complain here and I couldn't find
backup_migrate.backup_migrate_settings.first_profile
We'll have a deeper look. I'm wondering why this didn't pop up earlier, the class and settings are not very young... https://git.drupalcode.org/project/backup_migrate/-/blob/5.1.x/src/Core/...
- ๐ซ๐ทFrance fgm Paris, France
If you do not have a profile created, that config is not instantiated , and nothing is noticed. You need to create a first profile (forgot that in the steps), which will contain the undefined keys.
- ๐ฉ๐ชGermany Anybody Porta Westfalica
Thanks for the clarification @fgm! That's indeed an important step!
- Status changed to Needs work
3 months ago 12:47pm 19 September 2024 - ๐ฉ๐ชGermany Grevil
Changes LGTM! But we need to add an update hook resaving all custom profiles, otherwise we still get the following config inspector errors:
- ๐ฉ๐ชGermany Grevil
There are also further issues with the default "daily_schedule" schedule:
- ๐ฉ๐ชGermany Anybody Porta Westfalica
- ๐ฉ๐ชGermany Grevil
No idea, why "keep" is defined as a text field, expecting numbers and the schema defines it as an integer. We could also clear that up here.
- ๐ฉ๐ชGermany Grevil
Yes, and I guess we should also use "number" instead of "textfield" as the form element type.
- ๐บ๐ธUnited States DamienMcKenna NH, USA
Yes, let's include this in the 5.1.0 release. It's almost there.
- ๐ฉ๐ชGermany Anybody Porta Westfalica
@fgm could you eventually find time to finish this, so 5.1.0 can finally see the daylight?
- ๐ซ๐ทFrance fgm Paris, France
No, I thought you were doing it so didn't look further. I might have some time this weekend.
- ๐ฎ๐ณIndia sudhanshuD Pune, Maharashtra
sudhanshu0542 โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia sudhanshuD Pune, Maharashtra
@fgm, @anybody and @grevil, I made some changes regarding the "keep". This resolves the validation error.
- ivnish Kazakhstan
@sudhanshu0542 I'm not sure that we need to remove "keep" from config, but
keep: null
fixed the schema error
- ivnish Kazakhstan
Looks like RTBC. I don's see any config inspector errors.
- ๐ฉ๐ชGermany Grevil
All tests passed on local
Same here! Couldn't replicate the test failure on both D11 nor D10. Unfortunately, we should investigate the error anyway, as Damien won't push an MR containing failing CI jobs.
I don's see any config inspector errors.
You probably had no custom profiles before updating? Without the schema definition the schema defaults to using integers instead of boolean, so we definitely still need that update hook I mentioned in #9 ๐ Config Schema is missing the Notify schema Needs work .
- ๐ฉ๐ชGermany Anybody Porta Westfalica
@damienmckenna I'd vote to not include this in 5.1.0. There's still no Drupal 11 compatible stable release and there's not much community activity on this issue, I think because it's not that important for many...
Should this really be a blocker?
- ๐บ๐ธUnited States DamienMcKenna NH, USA
Yeah, while I'd love to include this, I don't know why it's failing on gitlab but works locally for me too.
- ๐บ๐ธUnited States DamienMcKenna NH, USA
I think the two email fields could be left as a string, to allow for multiple values, local-only usernames, etc:
notify_success_email: type: email
i.e. only admins should be setting that, so let's leave it more open.
- ๐ฉ๐ชGermany Anybody Porta Westfalica
@damienmckenna maybe ask in Slack if someone has an idea, why it fails here?