- ๐ฎ๐ณIndia shalini_jha
I will look into the pipeline failure issues
- ๐บ๐ธUnited States benjifisher Boston area
@baltowen:
Thanks for fixing that. There is still one line that needs to be fixed: see my comment on the MR. I wish I had caught that sooner.
There is also one unrelated test failure:
Drupal\Tests\block\Functional\BlockCacheTest::testCachePerPage
. Again, let's not worry about that until we fix the problem we know about. - ๐ณ๐ฎNicaragua baltowen
Thanks @benjifisher for the review. I have reverted the change of
$storage
. - ๐บ๐ธUnited States benjifisher Boston area
@baltowen:
Thanks for working on this issue. Unfortunately,
core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php
fails after the changes you made. Back to NW.There are also some unrelated tests that fail. For now, do not worry about those.
This issue adds the
$entityTypeBundle
class variable to the test class. After your rebase, that variable is handled correctly: callreveal()
in thesetUp()
method, not in the test methods. But your rebase also changes the way$storage
is handled. That is not in scope for this issue, and Comment #4 on ๐ Drupal\Tests\migrate\Unit\destination\EntityRevisionTest uses weird mocking pattern Active explains why that one variable should not follow that pattern.If you undo the changes to
$storage
in the test class, then that test should pass. Then we can worry about any unrelated test failures. - ๐ณ๐ฎNicaragua baltowen
Hi, I attempted to resolve the merge conflict, please review.
- First commit to issue fork.
- ๐บ๐ธUnited States omerida
Are there any details on how the patch in #254 and earlier break the suggestions functionality? I applied it cleanly and did a diff between the HTML source pre- and post- patch. The only difference highlighted was that the patch removes the spaces between the dot and filenames in one case. I re-rolled the patch to fix that and then the only difference with the patch is that views suggestions show up in the HTML comments.
Line 1737 of the patch is missng a space:
$suggestion = 'โช๏ธ ' . strtr($suggestion, '_', '-') . $extension;
Automatically closed - issue fixed for 2 weeks with no activity.
- ๐ฌ๐งUnited Kingdom catch
In other situations like this (cache IDs in the database backend, maybe field/bundle names), we hash the end of the ID if the entire thing is too long. It's not great for readability but it doesn't require an update path.
- ๐ซ๐ทFrance duaelfr Montpellier, France
Rerolled #53 on HEAD in a MR.
Fixed phpcs and phpstan issues.
Updated the upgrade path to clone tables instead of renaming them. (I wish I could use a Merge query for this but... ๐ Merge queries should allow setting the conditionTable Active ) - @duaelfr opened merge request.
- ๐ซ๐ทFrance duaelfr Montpellier, France
@quietone on ##6:
I think I'd like to have two copies of the same table more than having to maintain that legacy way of handling migrate tables.
If we decided to follow the flag way, one day we would certainly like to deprecate that and prepare a new upgrade path that would be the same as the one we would code today, isn't it? Automatically closed - issue fixed for 2 weeks with no activity.
- ๐ฆ๐ทArgentina andreadruiz Buenos Aires
New patch that works with 11.x. I apply the same as already applied in comment #25. Thank you!
- Issue created by @joachim
- ๐ณ๐ฟNew Zealand quietone
Changing to the DX special tag defined on Issue tags -- special tags โ .
- ๐ณ๐ฟNew Zealand quietone
Changing to the DX special tag defined on Issue tags -- special tags โ .
- ๐บ๐ธUnited States smustgrave
Issue summary appears incomplete, Did not reiew
- ๐ณ๐ฑNetherlands Martijn de Wit ๐ณ๐ฑ The Netherlands
maybe via https://www.drupal.org/project/drupal/issues/3482385#comment-15842192 ๐ Add a feature flag for the procedural hooks bc layer Active
- ๐ฉ๐ชGermany Anybody Porta Westfalica
@JohnAlbin, @laurii, @larowlan: Now that @markhalliwell has left the Drupal Community, shouldn't we still try to get this fixed finally?
To say it in the words of @maskedjellybean in #127:
It's one of those things you just assume you can do. Then when you really need to do it and learn you can't, it's quite frustrating.
Yes, this is a specific case, but I think many Drupal developers / themers run into this one day, as it's just a natural thing that you sometimes need to know about the context.
For one year I now didn't run into this, now it's time again: โจ Pass block context to commerce_cart_block Active ๐So I think this is really relevant for DX (Developer Experience) / FX (Front End Experience) and happy Drupal developing.
My question is: How can we tackle this efficiently? Could someone (powerful ๐) decide, how this should finally be implemented, then we'd be willing to help with the implementation! But coming back and see things stuck again, where lots of work went in already, is frustrating for everyone here.
Would be great if someone who can decide on this, could decide on this. Even if it means a totally different approach or closing this won't fix, but documenting a best practice for the structure and namings to use in such
#context
-passing cases, for example in Block Plugins.Thank you! ๐
- ๐ฎ๐ณIndia shalini_jha
Hi @Joachim,
Iโve reviewed the test failures caused by recent changes to ConfigSchemaChecker. It seems that while some failures relate to changes in the exception messages, others are due to how we handle cases where $key isnโt in the expected foo.bar:bar.biz format. Specifically, weโre seeing integer keys instead of the expected string format, which leads to $error_property being null. This causes the error:
TypeError: Drupal\Component\Utility\Html::escape(): Argument #1 ($text) must be of type string, null given
For example, in scenarios like:
array:4 [ 0 => "[dependencies.theme.0] Theme 'bluemarine' is not installed." 1 => "[theme] Theme 'bluemarine' is not installed." 2 => "[region] This value should not be blank." 3 => "[region] This is not a valid region of the <em class=\"placeholder\">bluemarine</em> theme." ]
Here, $key does not split as expected, leading to null in $error_property. Currently, we havenโt implemented any handling for integer keys, which leads to the failures to these test method i have checked like : testInvalidConfiguration(), testConfigSchemaChecker(), and testBlockMigration() .
Could you please advise on how to handle integer keys? One approach could be to check if the $key is an integer and set $error_property as blank in such cases, or we could use the string representation of the key, like [dependencies.theme.0], as the property. Please let me know if you have a preferred direction for managing this scenario, or if I'm overlooking any potential cases. I am moving this for review to get your input on it. Thank you!
- First commit to issue fork.
- ๐บ๐ธUnited States benjifisher Boston area
No good deed goes unpunished: our follow-up issue ๐ Drupal\Tests\migrate\Unit\destination\EntityRevisionTest uses weird mocking pattern Active was recently Fixed, and it creates a conflict with this issue.
Resolving the conflict is a little more than what I am comfortable doing while acting as a reviewer on this issue. (I already did that once: see Comment #144. The changes now are a little more complicated.)
I rewrote the git history, combining all the commits that change
core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php
, and force-pushed. You can confirm that I only changed history by comparing with the tag for the previous HEAD of the feature branch:$ git diff previous/2630732-11-x-migration-destinations-entity-fields/2024-11-05 && echo done done
That should make it easier to rebase on the current 11.x. I think that is considered a Novice task, so I am adding that tag again.