Closed (fixed)
Project:
Scheduler
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2026 at 21:59 UTC
Updated:
16 May 2026 at 14:05 UTC
Jump to comment: Most recent
This module is incorrectly using a YAML anchor for config schema instead of reusable types, which means other modules cannot opt-in to scheduling easily.
# Use the saved alias to repeat the schema for Media entity type.
media.type.*.third_party.scheduler: *third_party_settings_alias
# Repeat the schema for Commerce Product entity type.
commerce_product.commerce_product_type.*.third_party.scheduler: *third_party_settings_alias
# Repeat the schema for Taxonomy Terms
taxonomy.vocabulary.*.third_party.scheduler: *third_party_settings_alias
This should be type: scheduler_third_party_settings
see https://git.drupalcode.org/project/ai_context/-/blob/e1a359c3a525de75c4d...
to support a new entity type, the schema has to be copied which will lead to bugs
Setup a proper type so it's reusable
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mglamanComment #4
kristen polThanks, Matt. This would make this easier:
#3577429: Move scheduler feature to submodule or progressive enhancement
To be clear, no upgrade path is required because all the original config still remains, so this only adds additional support.
Comment #5
kristen polMatt, did you mean to link to the schema file under "steps to reproduce"?
I wouldn't consider that steps to reproduce ;)
We should have something more detailed and step-by-step.
Comment #6
mglamanI did, to show the problem. That ai_context has to copy it verbatim which is a bug
Comment #7
kristen polThanks for adding the clarifying text
Comment #9
jonathan1055 commentedThis looks helpful, thank you. I think I made those original anchors without knowing too much about yaml syntax. You solution is much better.
I've just re-based the MR, and can merge this soon if it will help with your work on #3355087: Support for non-bundle entity types
Comment #10
mglamanThanks! I think it'll help there since I duplicated it, I believe. Mobile so haven't double checked. This way it's a nice succinct fix outside of that issue
Comment #11
mglamanBack on computer; yes, this will help out over there!
Comment #12
jonathan1055 commentedTested locally and works fine. Also I think each of these settings is covered by one or other of the phpunit tests, and they all pass green. RTBC and I have set a Merge Train running.
Comment #14
mglamanThe commit is in! Thank you
Comment #16
jonathan1055 commentedand thank you too. I've just updated the credit record.