- Issue created by @wim leers
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
This blocks 📌 [later phase] [PP-1] Prune unused `Component` config entity versions Active .
- First commit to issue fork.
- Merge request !1165implement version_ids filtering in ComponentAudit::getConfigEntityDependenciesUsingComponent() → (Open) created by libbna
- 🇮🇳India libbna New Delhi, India
I have implemented the suggested changes. If there are any additional updates or modifications required, please let me know.
- 🇮🇳India libbna New Delhi, India
- Added the array $version_ids = [] parameter to the method signature as requested
- Implemented the filtering structure that loads each config entity when $version_ids is provided
- Maintained backward compatibility (empty array works as before)
What's left:
Need to implement the actual version checking logic inside the filter function (currently has placeholder return true;)
Unsure how component versions are stored in the config entities - need guidance on how to extract/compare versions! - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Thanks for pushing this forward!
Unsure how component versions are stored in the config entities - need guidance on how to extract/compare versions!
See
\Drupal\experience_builder\Entity\VersionedConfigEntityInterface::getVersions()
and\Drupal\experience_builder\Entity\VersionedConfigEntityInterface::getVersionSpecificDependencies()
. - 🇮🇳India libbna New Delhi, India
Apologies for the delay! I've added the implementation for versions_id. Leaving the issue in "Needs Work" status so that others can pick up and work on the test cases.