Problem/Motivation
During Beta development (July - November), we have introduced some compatibility breaks with some temporary compatibility layers to ease the transition:
ui_patterns_develwas moved tosdc_develbut the module still exist (empty) in the codebase >> remove the module- the stories were moved to there own files but the stories from the compoennt definition are still merged with the new ones >> remove the merge logic
component()Twig function wax replaced byinclude()Twig function but >> removecomponent()Twig function- What else?
Proposed resolution
Remove those temporary compatibility layers.
Issue fork ui_patterns-3490872
Show commands
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 #2
christian.wiedemann commentedComment #4
christian.wiedemann commentedComment #5
pdureau commented2 feedbacks
Remove the merge logic from stories
You removed the call to
::mergeStories()without replacing it byStoryPluginManager::getComponentStories():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.
Comment #6
christian.wiedemann commentedah 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:
Comment #7
christian.wiedemann commentedComment #8
christian.wiedemann commentedComment #9
pdureau commentedMaybe because you wrote
Instead of:
Comment #10
pdureau commentedComment #11
christian.wiedemann commentednow 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?
Comment #12
christian.wiedemann commentedMaybe we discuss this issue on thursday together with Mikael.
Comment #13
christian.wiedemann commentedComment #14
pdureau commentedCareful, I have rebased your MR. It looks mergeable to me.
I usually test with public implementations:
You kept the issue on your side, you want to test before merging?
That's great, thanks, I have created a dedicated issue: #3493134: [2.0.0-rc1] Remove TODOs and obsolete stuff
Comment #15
pdureau commentedIt would be nice to add an automatic test
Comment #16
just_like_good_vibesyou mean adding an automatic test for stories? or which test(s)?
Comment #17
pdureau commentedThose tests belongs to
ui_patterns_libraryand must stay simple and straightforwardComment #18
just_like_good_vibesi don't know why it's for me, i send it back to christian :)
Comment #19
pdureau commentedAuto merge
Comment #21
pdureau commentedComment #23
christian.wiedemann commented