- Issue created by @mherchel
- Status changed to Active
over 1 year ago 4:07pm 3 June 2023 - π³π±Netherlands bbrala Netherlands
Lets add a todo list of the stuff that needs moving.
- πΊπΈUnited States dww
Thanks for organizing all this as a meta issue!
From reading some of the child issues, it seems like the idea is that each issue will open MRs vs this one branch, not against core itself? So someone will decide to merge MRs into here and then the final commit to core will be a monolithic, giant commit? Itβd be great to be clear in this parent meta issue so everyone working on this knows what to expect.
Also, not clear what we need a table for here. π seems like a
<dl>
would be easier to work with and make more semantic sense. π€ Unless there are going to be more columns that donβt yet exist for other things?Thanks again!
-Derek - π³π±Netherlands bbrala Netherlands
Yeah we merge against this feature branch. I will open the branches and mr's to this branch today so we dont need to figure that out later.
THere were more columns in my original table, but that broke the layout of the issue. I will convert it to a definition list when i arrive in the contrib rooms in pittsburgh.
- e0ipso Can Picafort
We will also need a plan to move
sdc_library_info_build
to the corresponding location. Likely close to the code that is firinghook_library_info_build
. - πΊπΈUnited States dww
Fantastic, thanks! That's much more clear. π
Today is packed, then I travel tomorrow, but hopefully I can spare some cycles on some of the child issues next week... π€ Following them all now, at least. π
Cheers,
-Derek - Merge request !4147Issue #3352256: [META] Move code from the experimental SDC module to core β (Closed) created by bbrala
- Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - π³π±Netherlands bbrala Netherlands
I've also opened a draft merge request to this issue for each child issue. Mostly because we don't use the default workflow since we are merging those issues towards this issue branch instead of main itself.
π Move SDC sdc.module functions to Core namespace Fixed might need splitting, because it is about 2 functions in the module file.
Also i didnt open an issue for the tests, they would also need updating in eather the issues that change them, or centrally. But i think there will be less discussion on those, since they might live in places based on the results of the child issues.
- π³π±Netherlands bbrala Netherlands
Currently the MR in this issue is not mergable, but that should resolve itself when code has actually changed in the branch. Which is hasn't right now.
- Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - πΊπΈUnited States dww
Whoops. I was trying to help move π Move isRenderArray from SDC to Drupal\Core\Render\Element Fixed forward, cherry-pick'ed my commit into this branch and pushed. I now realize I believe y'all wanted that in MR form, not a direct push. π¬ Should I revert, or do y'all wanna just leave it? It was already RTBC when it was a stand-alone commit. Sorry!
- e0ipso Can Picafort
@dww first one is in. Thanks for moving it! Let's keep rolling them in!
- Status changed to Needs work
about 1 year ago 8:46pm 1 November 2023 - e0ipso Can Picafort
π Move SDC *.schema.json to Core namespace Active was merged. Creditting @plopesc for that part.
- e0ipso Can Picafort
π Move SDC Component namespace to Core namespace Postponed is merged.
- e0ipso Can Picafort
π Move SDC ComponentNegotiator to Core namespace Needs review is also done. Thanks to @plopesc again!
- e0ipso Can Picafort
I just re-rolled 11.x. Likely we won't need to do this again since this issue is the last blocker for stable.
- πͺπΈSpain plopesc Valladolid
plopesc β changed the visibility of the branch 3352256-meta-move-code-merge to hidden.
- e0ipso Can Picafort
π Move SDC Exceptions to Core namespace Fixed made it to this branch.
- e0ipso Can Picafort
π Move SDC Discovery namespace to Core namespace Fixed was pretty uncontroversial.
- e0ipso Can Picafort
We have π Move SDC Component to Core namespace Active now!
- e0ipso Can Picafort
Merged π Move SDC sdc.module functions to Core namespace Fixed . One step closer.
- e0ipso Can Picafort
π [SDC] Catch missing imports and deprecation messages Fixed was the next in line to complete.
- πͺπΈSpain plopesc Valladolid
Added reference to π Remove SDC deprecated twig functions before 11.0.0 Postponed
- e0ipso Can Picafort
π Move SDC Twig\TwigExtension to Core namespace Active is in! So close!
- e0ipso Can Picafort
π Move SDC Component to Core namespace Active is now merged here.
- Status changed to Needs review
11 months ago 3:14pm 20 December 2023 - e0ipso Can Picafort
Tests are green and all the initial tasks are done. I think it's time for a review.
- e0ipso Can Picafort
I scaffolded https://www.drupal.org/node/3410260 β so we can have a URL to reference in the deprecation messages.
- π¬π§United Kingdom catch
@e0ipso if the entire module is deprecated, then the code doesn't need to be deprecated too as such - people will know they need to uninstall it.
- Status changed to Needs work
11 months ago 3:19pm 22 December 2023 - e0ipso Can Picafort
I think I got the class_alias wrong. I believe I need to change the alias direction.
- e0ipso Can Picafort
I also see this error:
Drupal\Core\Extension\InfoParserException: Extension Single Directory Components (core/modules/sdc/sdc.info.yml) has 'lifecycle: deprecated' but is missing a 'lifecycle_link' entry. in Drupal\Core\Extension\InfoParserDynamic->parse() (line 95 of core/lib/Drupal/Core/Extension/InfoParserDynamic.php).
- Status changed to Needs review
10 months ago 9:20pm 4 January 2024 - Status changed to Needs work
10 months ago 8:36am 5 January 2024 - e0ipso Can Picafort
I forgot to remove the dependency of Umami on SDC. Let's see if tests pass now.
- Status changed to Needs review
10 months ago 8:55am 5 January 2024 - Status changed to Needs work
10 months ago 1:27pm 16 January 2024 The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- Status changed to Needs review
10 months ago 9:29am 20 January 2024 - π³πΏNew Zealand quietone
The IS has this
Once we have all the smaller issues merged, we will work to clear the release manager and commit manager tags from the big MR,
But what is 'the big MR'?
- e0ipso Can Picafort
@quietone we created a feature branch for this issue. We then opened MRs to this issue's branch to start contributing code in smaller bits. This allowed us to have a more manageable scope for peer review and for comments. All the code accumulated in this branch, as soon as we thought it was ready.
Now this issue's branch contains all the code, it is the big MR against 11.x.
I hope that makes sense.
- Status changed to RTBC
9 months ago 10:44am 14 February 2024 - πͺπΈSpain plopesc Valladolid
Given that Mateu, Stephen and myself have been reviewing all the individual parts that make up this MR, I feel confident in setting this to RTBC.
Thank you!
- Status changed to Needs work
9 months ago 11:13am 14 February 2024 - π¬π§United Kingdom catch
The MR pipeline failed three weeks ago, I just re-ran it and it failed again.
- Status changed to Needs review
9 months ago 2:24pm 14 February 2024 - e0ipso Can Picafort
This commit above adapts some of the code after π \Drupal\Core\Asset\LibraryDiscoveryParser should use FileCache to cache the parsed yaml Active .
Let's see if we get a green.
- Status changed to RTBC
9 months ago 4:45pm 14 February 2024 - πͺπΈSpain plopesc Valladolid
Once the MR has been rebased and the merge conflicts solved, I think it is OK to move it back to RTBC.
Thank you!
- Status changed to Needs work
9 months ago 5:14pm 14 February 2024 - π¬π§United Kingdom longwave UK
After applying the MR there are a number of references to
sdc
remaining, added some comments to see if we can reduce/remove these. - Status changed to Needs review
9 months ago 4:05pm 15 February 2024 - Status changed to Needs work
9 months ago 6:31pm 16 February 2024 - π¬π§United Kingdom longwave UK
Added another round of questions/feedback to the MR.
- e0ipso Can Picafort
@longwave most of those comments belong to code that has been moved, rather than changed. This MR is scoped only to moving the code that was approved in the experimental module to its final home. There will be minor changes in code to ensure BC, and some new code in the LibraryDiscoveryParser, but that should be it.
Even if the diff is very big, the changes are not that big.
That being said, I am interested in pursuing the conversations you started but I fear that might derail the scope of this big-enough MR. What do you thing is the best way to address your concerns? Would a follow up issue be a good place for it, or would you rather do it all here?
- π¬π§United Kingdom longwave UK
As mentioned in Slack the only three things I am really concerned about here are:
- The library prefix - do we need to consider BC?
- TwigExtension is getting quite large, should the component extension just be a separate service?
- The BC layer for the component validator service is incorrect.
I think the others can wait for followups.
- π¬π§United Kingdom longwave UK
Oh, would also be interested in your thoughts on service naming as well, because all other core services have friendly string names instead of just class names.
- e0ipso Can Picafort
The library prefix - do we need to consider BC?
Yes. This is how we tried to handle it. This section of the code generates the libraries with the old names for backwards compatibility reasons.
I see that there is a small error with the wording of the deprecation message that I will fix right away.
The relevant conversations can be found in π Move SDC sdc.module functions to Core namespace Fixed and in its corresponding MR.
- e0ipso Can Picafort
TwigExtension is getting quite large, should the component extension just be a separate service?
Yeah. We touched on that during our conversations while moving it. This is the comment from @plopesc:
Creating a new twig extension would be much simpler, but in the long term, I believe that will be better to have a single one.
I'll work on the BC approach for now.Do you think that reverting the changes to
TwigExtension
and moving the SDC Twig extension toDrupal\Core\Template\ComponentsTwigExtension
is a better approach? I felt good about both options back in the day, so I'll be happy to implement it.The relevant conversations can be found in π Move SDC Twig\TwigExtension to Core namespace Active , and its corresponding MR.
- e0ipso Can Picafort
The BC layer for the component validator service is incorrect.
You are correct, I will push a fix right away.
- e0ipso Can Picafort
@longwave thank you so much for your rounds of review. I know this is a big MR, with lots of context, and most of it is hidden behind children issues. I tried to organize it in sub-issues to facilitate development and review, it turns out it's been more difficult for everyone involved. Sorry.
- e0ipso Can Picafort
Throwing something at the CI before logging off. I will finish applying the feedback in the morning.
- e0ipso Can Picafort
Oh, would also be interested in your thoughts on service naming as well, because all other core services have friendly string names instead of just class names.
This is something suggested by @larowlan in the MR that got SDC in core as experimental.
- Status changed to Needs review
9 months ago 8:51am 20 February 2024 - π¬π§United Kingdom longwave UK
Thanks for fixing the BC layer in the constructor.
I added a question about the library BC layer - not sure
strtr()
does what you expect here, as it replaces bytes in a string?Going to ask the framework managers for input on:
- Whether to have one combined TwigExtension class or keep the components TwigExtension as a separate service
- Whether to add class aliases or if we are OK just to name services with their FQCN
- e0ipso Can Picafort
@longwave I fixed the library bc layer and added a test for it.
- π¬π§United Kingdom longwave UK
Tagging for the framework managers to answer #93 but other than that I think we are done here, thank you for all your work on getting this in!
- π¬π§United Kingdom catch
Eventually we're likely to remove service aliases for things where we don't expect anyone to interact with the service name, but not sure why we're setting a precedent here. On the other hand, is it worth adding the aliases only to remove them later. Don't feel strongly about this to be honest.
I'm confused about what's going on with the TwigExtension - it looks like there's now a dedicated component twig extension, but there are still two additional arguments for the main twig extension, was the separate twig extension already created and those are just cruft, or am I missing something? Looking at the long list of arguments to TwigExtension, I think keeping two separate classes makes sense, but then why would we be adding extra dependencies to the main one?
- Status changed to Needs work
9 months ago 9:43am 23 February 2024 - Status changed to Needs review
9 months ago 10:50am 23 February 2024 - e0ipso Can Picafort
Sorry @longwave it seems the suppression file had a syntax issue. It is fixed now.
- e0ipso Can Picafort
@catch you are correct, that is some cruft from the other day when I split that service in two. I will fix now.
- π«π·France nod_ Lille
Just wanted to raise a point for Framework Managers about the $schema URL in the components definition.
What we expect folks to add to their metadata yml file is
$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/v1/metadata.schema.json
for better DX so that IDEs can provide autocompletion.I'm not sure pointing to the repo HEAD is the best thing. We can change the schema version by adding a
v2
folder and updating the URL, keeping all the versions all the time in the repo.what I'm not sure is if this URL is going to last 10 years, and if having all the different versions in HEAD is what we want, sounds like it could be somewhere else and not tied to the source of Drupal. Then again it makes sense to have it in the source since that's where all the stuff is defined to begin with.
I don't have a good answer, just questions but I don't think they should hold up this patch.
- Status changed to Needs work
9 months ago 1:16pm 28 February 2024 The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- π«π·France nod_ Lille
I committed a couple of umami components, please update their $schema url as part of this MR :)
π Create new SDC component for Umami Banner RTBC
β¨ Create header component for Umami, with JS Fixed - Status changed to Needs review
8 months ago 11:20pm 13 March 2024 - Status changed to RTBC
8 months ago 6:37am 14 March 2024 - πͺπΈSpain plopesc Valladolid
Feedback has been addressed and tests are green.
I think we can move it back to RTBC.
- Status changed to Needs review
8 months ago 9:42am 14 March 2024 - π¬π§United Kingdom longwave UK
Added some questions about the schema URLs.
- e0ipso Can Picafort
Added some questions about the schema URLs.
Yeah. I have addressed that. Sorry for the hasty change, I keep finding myself out of context for this issue every time I work on it. Thanks for catching it. Schema URLs are not super important but we got to get them right.
- Status changed to RTBC
8 months ago 1:25pm 15 March 2024 - π¬π§United Kingdom longwave UK
I've read over the MR multiple times now and there are only really minor nits remaining that ultimately don't matter and could be fixed in followups if needed, so this looks ready to go to me now.
- Status changed to Needs work
8 months ago 5:02am 20 March 2024 The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- Status changed to RTBC
8 months ago 8:54am 20 March 2024 - Status changed to Needs work
8 months ago 7:07pm 20 March 2024 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Nice work folks, left a couple of items on the MR, mostly minor stuff
- Status changed to Needs review
8 months ago 2:45pm 26 March 2024 - e0ipso Can Picafort
Review feedback implemented. Everything is back to green. Setting back to NR.
- Status changed to Needs work
8 months ago 2:47pm 26 March 2024 - e0ipso Can Picafort
Oh no, I might have been looking at the wrong thing. I see an issue about deprecation messages. Investigating.
- Status changed to Needs review
8 months ago 3:33pm 26 March 2024 - e0ipso Can Picafort
Review feedback implemented. Everything is back to green. Setting back to NR.
[dΓ©jΓ vu]
- Status changed to RTBC
8 months ago 4:53pm 26 March 2024 - π¬π§United Kingdom longwave UK
I retitled the CR as it sounded previously like we were deprecating SDC if you did not read it carefully. All the recent changes look good so back to RTBC.
- e0ipso Can Picafort
Resolved merge conflicts and fixed an issue number to point the the CR.
- Status changed to Needs review
8 months ago 5:41am 27 March 2024 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Looks like one item still open in the MR
- Status changed to RTBC
8 months ago 10:32pm 27 March 2024 -
larowlan β
committed 069d3c01 on 10.3.x
Issue #3352256 by e0ipso, plopesc, bbrala, longwave, dww, catch,...
-
larowlan β
committed 069d3c01 on 10.3.x
-
larowlan β
committed e1e95969 on 11.x
Issue #3352256 by e0ipso, plopesc, bbrala, longwave, dww, catch,...
-
larowlan β
committed e1e95969 on 11.x
- Status changed to Fixed
8 months ago 10:37pm 27 March 2024 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Committed to 11.x and backported to 10.3.x
Published change record
π Congratulations - huge effort
Added a release note snippet
Automatically closed - issue fixed for 2 weeks with no activity.
- πΊπΈUnited States agentrickard Georgia (US)
agentrickard β changed the visibility of the branch 11.x to hidden.
- πΊπΈUnited States agentrickard Georgia (US)
agentrickard β changed the visibility of the branch 11.x to hidden.