Kelowna, BC
Account created on 3 March 2009, over 16 years ago
  • Software Architect at ImageX 
#

Merge Requests

More

Recent comments

🇨🇦Canada AaronChristian Kelowna, BC

aaronchristian made their first commit to this issue’s fork.

🇨🇦Canada AaronChristian Kelowna, BC

I tired the patch and it works well for exporting the uuid in the default layout builder layout (entity_view_display).

However its not using the blocks UUID to load the inline block. It still wants to load the block based on the block content ID, which can change between environments.

Is there another patch that would load the block based on the UUID instead of the actual ID?

🇨🇦Canada AaronChristian Kelowna, BC

I just realized there is a sub-module now for this called `single_content_sync_revisions`.

🇨🇦Canada AaronChristian Kelowna, BC

I tested this, however I still get the warnings in my drush console when using a deploy script to import my content.

🇨🇦Canada AaronChristian Kelowna, BC

@rbrandon, just tested and it works well, but it looks like you're missing the route to the settings form in the last MR.

password_policy.settings:
  path: '/admin/config/security/password-policy/settings'
  defaults:
    _form: '\Drupal\password_policy\Form\SettingsForm'
    _title: 'Password Policy Settings'
  requirements:
    _permission: 'administer site configuration'
🇨🇦Canada AaronChristian Kelowna, BC

Did a bit more testing, looks like some paragraphs don't get included on the export of one of my content blocks.

Lets take this one back as it looks like it needs a bit more work!

🇨🇦Canada AaronChristian Kelowna, BC

Tested the patch on Drupal 10.4.2. It applied cleanly, and it fixed the frontend. However when trying to edit any menus i received the following error:

Drupal\Core\Database\InvalidQueryException: Query condition 'parent IN ()' cannot be empty. in Drupal\Core\Database\Query\Condition->condition() (line 108 of core/lib/Drupal/Core/Database/Query/Condition.php).

I tried the other patch and got things to work along with a bit of extra twig logic.

https://www.drupal.org/project/drupal/issues/3456536#comment-16000668 🐛 show as expanded is forced to true if menu item has children and you are on child trail Active

🇨🇦Canada AaronChristian Kelowna, BC

This seems to fix the issue for me.

Previously {{ item.is_expanded }} was being forced to true when on the active menu item.

Debugging it reveals false when on the active menu item and it has children, even when its not set to "expanded".

" alt="Expanded - True" />

After applying the patch;

And then just to ensure your menu doesn't print out, ensure you have some logic like;

{% if item.below and item.is_expanded %}
  {{ menus.menu_links(item.below, attributes, menu_level + 1, item) }}
{% endif %}

Thanks for the patch!

🇨🇦Canada AaronChristian Kelowna, BC

@igorgoncalves

This worked really well, thanks for making this a priority this week my friend!

I tested this on all the various places I was able to crash the export previously and they all seem to work as expected.

I'll keep my eye on the "partial export" feature, I think that will be the game changer for this module.

Thanks for the exception module, its always been a HUGE pain point of Drupal, I'm glad there are people out there pushing initiatives like this through for the community.

I'll leave this one open for a bit for others to test with the supplied file I posted above, and then with the patch in place.

Looks good from my side, I would be happy to mark this one as RTBC in the next few days as I work through some more use cases.

🇨🇦Canada AaronChristian Kelowna, BC

Thanks for looking into this one @jannakh.

I had a few patches applied previously so my errors line numbers might have been off, I removed them and started with a fresh install of 1.4.10 and am still noticing a failure on export. The patch seems to address import, and that works as expected, but on the export it fails.

I have a legacy site that has a lot of nodes with a number of paragraphs with links in each of them. When I uncomment lines 116-134 and run the export it actually processes the page and when it finally finishes loading I see it loads all the nodes and their fields, so my file for a single page was over 19MB!

I've attached a really basic file you can test with to reproduce the issue.

This is just menu_link_content, but for some reason it will load the whole referenced node and all its fields. Is it necessary to load all the embedded entities and their field values for links?

Thanks!

🇨🇦Canada AaronChristian Kelowna, BC

Thanks for testing @borg_git

For some reason I'm still encountering this error, even outside of CKEditor.

Here's a menu link im trying to export.

🇨🇦Canada AaronChristian Kelowna, BC

I see the patch doesnt apply anymore, i'm working on a fix, should have something in the next few days to clean things back up.

🇨🇦Canada AaronChristian Kelowna, BC

Before:

After:

🇨🇦Canada AaronChristian Kelowna, BC

Thanks @pinesso,

This is fixed in the dev branch now!

Production build 0.71.5 2024