Budapest
Account created on 16 November 2012, over 12 years ago
#

Merge Requests

More

Recent comments

📌 | glidejs | Clean-up
🇭🇺Hungary junkuncz Budapest

junkuncz created an issue.

🇭🇺Hungary junkuncz Budapest

@fago you are right. I've just rebased and all looks good (see attachments) cc.: @roderik

🇭🇺Hungary junkuncz Budapest

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

🇭🇺Hungary junkuncz Budapest

Trait has been added and functions are called in FileCeFieldFormatter however there is no action yet (eg.: setting attribute in build()?) based on the configured image style. Honestly I'm not sure about it, the rest is ready for review.

🇭🇺Hungary junkuncz Budapest

Code looks good and functionality is fine.

🇭🇺Hungary junkuncz Budapest

Phpstan report is irrelevant regarding code changes. Ready for review.

🇭🇺Hungary junkuncz Budapest

DONE:
- empty plugin settings forms should not see a "settingsForm" edit icon
- hide "extra fields" on EntityCustomElementsDisplayEditForm
- move some logic from buildForm() to form() (it was a debt from an earlier MR)
- a few tiny code clean-up

🇭🇺Hungary junkuncz Budapest

Okay I'll do the class merge.

Regarding the local tasks: looks like unfortunately we cannot drop out that hook at
https://git.drupalcode.org/project/views_local_tasks/-/blob/1.0.x/views_...
https://git.drupalcode.org/project/custom_elements/-/blob/3.x/modules/cu...

It's weird but probably there is no better way atm.

🇭🇺Hungary junkuncz Budapest

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

🇭🇺Hungary junkuncz Budapest

Changes:

- CE display is prepared for the case when layout_builder module is enabled (hidden form + "Manage Layout" button)
- Views modes are following core approach so "default" one cannot be deleted
- Broken access handler for CE display is fixed

🇭🇺Hungary junkuncz Budapest

junkuncz changed the visibility of the branch 3359601-re-implement-with-new-concept to hidden.

🇭🇺Hungary junkuncz Budapest

junkuncz changed the visibility of the branch 8.x-2.x to hidden.

🇭🇺Hungary junkuncz Budapest

junkuncz changed the visibility of the branch 3.x to hidden.

🇭🇺Hungary junkuncz Budapest

junkuncz changed the visibility of the branch new-ce-formatter to hidden.

🇭🇺Hungary junkuncz Budapest

junkuncz changed the visibility of the branch 3362625-customelementformatter-plugin-type to active.

🇭🇺Hungary junkuncz Budapest

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

🇭🇺Hungary junkuncz Budapest

Since there are a lot of changes in an other MR: https://git.drupalcode.org/project/custom_elements/-/merge_requests/29/d...
we decided to merge this with the failing unit test and fix it here: https://www.drupal.org/project/custom_elements/issues/3362625 📌 CustomElementFormatter plugin type for entity_ce_display Active

🇭🇺Hungary junkuncz Budapest

Okay, added changes. Build is green. Let's handle the 3.x related changes in a dedicated ticket, I'll create it.

🇭🇺Hungary junkuncz Budapest

3427892-stabilise-ci-build-2.x is ready for review.

🇭🇺Hungary junkuncz Budapest

Okay it's time to do another check. (tests are fine locally)

🇭🇺Hungary junkuncz Budapest

Sure, changes have been added.
Looks like test runner is still wrong here, did a check locally and all are still green.

PHPUnit 9.6.17 by Sebastian Bergmann and contributors.

Testing /var/www/html/web/modules/contrib/custom_elements
......                                                              6 / 6 (100%)

Time: 00:28.257, Memory: 4.00 MB

OK (6 tests, 32 assertions)
🇭🇺Hungary junkuncz Budapest

@fago thanks for the review.
Accidentally I started a review instead of clicking on "Add new comment" button so that's why you didn't see my feedbacks.
All remarks should be covered now.
https://git.drupalcode.org/project/custom_elements/-/merge_requests/33#n...
There is a question here.

🇭🇺Hungary junkuncz Budapest

Thanks @fago.
Remarks are addressed, please take a look.

🇭🇺Hungary junkuncz Budapest

Running unit test with strict config schema gives the following error:

Drupal\Tests\custom_elements\Functional\CustomElementsRenderMarkupVue3Test::testNodeRendering
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for media.type.image with the following errors: media.type.image:source_configuration.gather_exif missing schema

Tried to fix it quickly but I couldn't do, it needs more investigation and deeper understanding of schema structure.

🇭🇺Hungary junkuncz Budapest

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

🇭🇺Hungary junkuncz Budapest

Are you sure we need to do anything about it? I was doing some testing and looks like entity_ce_display config object is deleted automatically during bundle delete and if I uninstall the module all related configs are removed.
Maybe we could add a tiny snippet to hook_uninstall() to make sure all entity_ce_display configs are properly deleted. Something like this:

. $storage = \Drupal::service('entity_type.manager')->getStorage('entity_ce_display');
  $configs = $storage->loadMultiple();
  if (!empty($configs)) {
    $storage->deelete($configs);
  }

What do you think?

🇭🇺Hungary junkuncz Budapest

Okay it looks good, I was confused because the testes entity did not have bundles.

🇭🇺Hungary junkuncz Budapest

I'll do more testing on the Eventsubscriber but the first round of review can be started I guess.

🇭🇺Hungary junkuncz Budapest

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

🇭🇺Hungary junkuncz Budapest

Tests should be checked/adjusted? however it works for me.

Production build 0.71.5 2024