- Issue created by @pdureau
- 🇫🇷France pdureau Paris
2 feedbacks
Remove the merge logic from stories
You removed the call to
::mergeStories()
without replacing it byStoryPluginManager::getComponentStories()
:- // ::mergeStories() is a temporary compatibility layer. - // @todo Replace by StoryPluginManager::getComponentStories() before 2.0.0 - // release. - $component = $this->storyPluginManager->mergeStories($component['id'], $component);
So, I am afraid it is not working well. Did you test by looking the component library?
What else?
Do you know any other similar compatibility layers to remove? I am not sure I was thinking about everything while authoring this ticket.
- 🇩🇪Germany Christian.wiedemann
ah sorry, missunderstood the comment. I just opend the library but there are no stories inside the ui patterns in any test module. A test module would be great and some render tests.
Here is my list what we should change:
- Move this hook function ui_patterns_field_config_delete(FieldConfigInterface $field_config): void TO ::UiPatternsEntitySchemaSubscriber
- Remove ui_patterns_plugin_filter_block__ui_patterns_alter
- Remove ui_patterns_test_theme. I think we don't need it anymore
- Remove test components alert, close_button, prop_types_tests
- Remove ui-patterns-actions.html.twig
- Not sure about ui_patterns_legacy.
- Not sure about ui_patterns_blocks.
- Not sure about ui_patterns_field_formatters.
- 🇫🇷France pdureau Paris
I just opend the library but there are no stories inside the ui patterns in any test module.
Maybe because you wrote
$component = $this->storyPluginManager->getComponentStories($component['id']);
Instead of:
$component['stories] = $this->storyPluginManager->getComponentStories($component['id']);
- 🇩🇪Germany Christian.wiedemann
now I got it :) Mostly it is better to understand before deleting stuff:). But do you have a sample story format that I can ready test it. Inside the ui_patterns there is no sample or test component or?
- 🇩🇪Germany Christian.wiedemann
Maybe we discuss this issue on thursday together with Mikael.
- 🇫🇷France pdureau Paris
Careful, I have rebased your MR. It looks mergeable to me.
But do you have a sample story format that I can ready test it.
I usually test with public implementations:
- https://git.drupalcode.org/project/ui_suite_bootstrap/-/tree/5.1.x/compo...
- https://git.drupalcode.org/project/ui_suite_daisyui/-/tree/4.0.x/components
You kept the issue on your side, you want to test before merging?
Here is my list what we should change:
- Move this hook function ui_patterns_field_config_delete(FieldConfigInterface $field_config): void TO ::UiPatternsEntitySchemaSubscriber
- Remove ui_patterns_plugin_filter_block__ui_patterns_alter
- Remove ui_patterns_test_theme. I think we don't need it anymore
- Remove test components alert, close_button, prop_types_tests
- Remove ui-patterns-actions.html.twig
- Not sure about ui_patterns_legacy.
- Not sure about ui_patterns_blocks.
- Not sure about ui_patterns_field_formatters.
That's great, thanks, I will create a dedicated issue.
- 🇫🇷France just_like_good_vibes PARIS
you mean adding an automatic test for stories? or which test(s)?
- 🇫🇷France just_like_good_vibes PARIS
i don't know why it's for me, i send it back to christian :)
-
pdureau →
committed 7962d952 on 2.0.x authored by
christian.wiedemann →
Issue #3490872 by christian.wiedemann, pdureau, just_like_good_vibes:...
-
pdureau →
committed 7962d952 on 2.0.x authored by
christian.wiedemann →
Automatically closed - issue fixed for 2 weeks with no activity.