Porta Westfalica
Account created on 9 May 2008, almost 17 years ago
  • Drupal Software Engineer & Developer, Project Management at DROWL.de 
#

Merge Requests

More

Recent comments

🇩🇪Germany Anybody Porta Westfalica

Yes, I'd also prefer A as a nice improvement. B could be an additional option using a select like we for example know from field groups? Maybe as follow-up?

🇩🇪Germany Anybody Porta Westfalica

When solving this, either the formatter should get a "Use widget setting / default" option or the widget should generally override the formatter setting and the formatter should have a description informing about that like "Notice: If the widget allows overriding, this setting will have no effect."

🇩🇪Germany Anybody Porta Westfalica

I agree, but as nobody complained so far, we should wait for a MR to review, if someone needs it.

🇩🇪Germany Anybody Porta Westfalica

Nice work @Grevil. Some final additions and please check code-style. The complaints look weird to me, but we should ensure code style is fine! :)

🇩🇪Germany Anybody Porta Westfalica

Nice finding @jan kellermann that looks promising and totally makes sense! Thank you for the super quick reply!

🇩🇪Germany Anybody Porta Westfalica

@thomas.frobieter I just had the idea to contact @chi, maintainer of https://www.drupal.org/project/twig_tweak and ask if we could maybe implement a merging solution that respects a certain field display formatter for drupal_field(). What do you think about that?

🇩🇪Germany Anybody Porta Westfalica

Whao, that was fast @itmaybejj very cool! 🎉

🇩🇪Germany Anybody Porta Westfalica

Nice @itmaybejj! Turning off is perfect for me, thank you!

🇩🇪Germany Anybody Porta Westfalica

@grevil re #6 LGTM so far... let's keep this for now.

🇩🇪Germany Anybody Porta Westfalica

After thinking about this, I think a setting like this might be most helpful:

Run Editoria11y check on:

  • Page load (default)
  • Widget click

This setting allows running Editoria11y check on page load or when the user needs it, to prevent unwanted DOM manipulation.

Or add a Editoria11y per-user (cookie / local storage) setting to enable / disable Editoria11y auto-check on page load

🇩🇪Germany Anybody Porta Westfalica

Here's a similar, more generic issue: Add an "opt-in" mode per page (e.g. for Themers) Active that keeps Editorally available, but doesn't scan and modify the pages on load, but on user click.

I think both issues target a similar issue, but the solutions might be combined. The idea for an individual setting in the user profile (2) here might extend the other one, which might be a bit more generic.

🇩🇪Germany Anybody Porta Westfalica

Here's a related issue suggesting a setting to fix it: Allow configuring the widget position Active

🇩🇪Germany Anybody Porta Westfalica

Thanks @grevil, let's wait for @tomtech's feedback how to fix this best and correctly.

🇩🇪Germany Anybody Porta Westfalica

@grevil: I tried to unblock @thomas.frobieter and commented out all the field formatter settings code, but with no luck... the issue persists. So I'm wondering if we're inheriting this issue from FileMediaFormatterBase maybe?

Hopefully you'll be able to step-debug it easily, this is really strange... I thought the field selection for the poster image was maybe trying to handle non-existing fields or base-fields... but commenting out the code should have fixed that...

🇩🇪Germany Anybody Porta Westfalica

I'm also unsure why this hard-coded implementation exists:

  /**
   * {@inheritdoc}
   */
  public static function getMediaType() {
    return 'video';
  }

but didn't check it deeper, yet. Please do that. Maybe because by FileMediaFormatterBase this is more than just a file formatter... mhm. Anyway, if a custom "myvideo" media type exists with a video field, it should also work, but hard-coding would break it, right?

🇩🇪Germany Anybody Porta Westfalica

I guess something like

  // Get the field definition.
  $field_definition = $this->getFieldDefinition();

  // Retrieve the entity type ID and bundle.
  $entity_type = $field_definition->getTargetEntityTypeId();
  $bundle = $field_definition->getTargetBundle();

might be needed?

🇩🇪Germany Anybody Porta Westfalica

I got this message now when trying to configure the formatter:
Warning: Undefined array key "field_mime_type" in Drupal\field_ui\Form\EntityDisplayFormBase->copyFormValuesToEntity() (Zeile 615 ...

🇩🇪Germany Anybody Porta Westfalica

@grevil, I think best will be to step-debug that...
Hope it wasn't caused by 🐛 Fix autoPlay vs. autoplay typo in code Active but the module wasn't installed there before, so typically *should* not be the case.

🇩🇪Germany Anybody Porta Westfalica

Thanks @grevil. So should we wait for a reply from @tomtech or do you have a good idea for a smart MR?
Maybe we could detect the "merge" some way, plus some kind of module exists check for commerce_combine_carts?

🇩🇪Germany Anybody Porta Westfalica

Ok let's add a requirement for vidstack then!

🇩🇪Germany Anybody Porta Westfalica

Grml this breaks tests, as drowl_media_types config is not final... so let's postpone this, it's just a bonus.

🇩🇪Germany Anybody Porta Westfalica

anybody changed the visibility of the branch 3507692-support-fieldgroup4-in to hidden.

🇩🇪Germany Anybody Porta Westfalica

4.x and 3.x are supported

🇩🇪Germany Anybody Porta Westfalica

anybody changed the visibility of the branch 3507692-support-field-group4-2.x to hidden.

🇩🇪Germany Anybody Porta Westfalica

@it-cru totally makes sense, but is unrelated to this issue I suppose.

🇩🇪Germany Anybody Porta Westfalica

Using data attributes is also helpful for being able to manipulate them even at the theming layer / twig level, so I think this is fine! :)

🇩🇪Germany Anybody Porta Westfalica

@amh5514 and @ibis if I get your comments right, you also get exactly this error? Could you please re-check that and let us know, how frequently that happens? Any ideas for the reasons in your case?

🇩🇪Germany Anybody Porta Westfalica

Thanks @jsacksick and @grevil! At least we have some further information now. @grevil should keep track of this issue and let's also see if others run into it or if it's somehow specific to our case.

Regarding:

Lastly, eventually the user or some random js plugin removes the "skip_payment_creation" url query parameter, which would lead to a new payment creation at the end of the "onApprove" php callback

No, I can't see any case where that could happen and for our case I know, and you already confirmed that, so we can leave out that option.

Still it happens and presumably breaks checkouts for the affected users, so it needs to be fixed (some day, some way).

🇩🇪Germany Anybody Porta Westfalica

The module has no recorded usage yet, so we can still fix this. Yay!

🇩🇪Germany Anybody Porta Westfalica

Just wanted to leave a note here, that we need something similar, but not for the alt-text, but for a subset of fields of the media entity to override in the referencing media reference field wiget.

https://www.drupal.org/project/media_library_media_modify is close, but implements its own field type, which is a problem for existing sites. Instead, it should be a field widget for the existing media references.

🇩🇪Germany Anybody Porta Westfalica
🇩🇪Germany Anybody Porta Westfalica

Yup, the 4.0.0 is green currently... crazy. Any ideas welcome how to stabilize this.

🇩🇪Germany Anybody Porta Westfalica

Great, thank you @liam morland!

🇩🇪Germany Anybody Porta Westfalica

I also clarified that in the release notes and the short description now, thanks for your hint!

🇩🇪Germany Anybody Porta Westfalica

Hi @fago, @caesius is right, while this is a major version change, there were no breaking changes and requiring ^10.3 (which is actually the supported release besides ^11) is the only relevant change.

Nonetheless, I totally understand your point, and we marked 3.x as supported for some more weeks, this was probably a bit too fast ;)

🇩🇪Germany Anybody Porta Westfalica

BTW I think we have several places, where a description would make sense:

  • In the payment method selection - as explanation for the payment method
  • On the payment page - to show details on the chosen payment and process
  • On the complete page - to show further instructions

Most of this applies to all payment methods, I think. So maybe should really go into Commerce and not into the individual payment module?

🇩🇪Germany Anybody Porta Westfalica

Mhm I'd still vote to cover all potential cases, like in 11. It's not untypical to show both, the label and the Logo and furthermore a string-based setting is extensible in the future in contrast to a checkbox.

🇩🇪Germany Anybody Porta Westfalica

Hi @avpaderno yes indeed I'd still be interested. We're actively using the module and @droath doesn't seem to be very active currently. Furthermore I'd like to opt the module into security advisory policy.

Thanks!

🇩🇪Germany Anybody Porta Westfalica

Nice, let's also solve that!

🇩🇪Germany Anybody Porta Westfalica

Thanks @Grevil: I agree and I think that (breaking) change is okay here, because it's more a fix of expected functionality and I don't really think anyone should heavily rely on this request logging.

If we want, we could add an empty update hook to just inform developers about the new setting.

🇩🇪Germany Anybody Porta Westfalica

anybody created an issue.

🇩🇪Germany Anybody Porta Westfalica

anybody changed the visibility of the branch 3490746-fix-coding-standard to hidden.

🇩🇪Germany Anybody Porta Westfalica

anybody changed the visibility of the branch 4.x to hidden.

🇩🇪Germany Anybody Porta Westfalica

anybody changed the visibility of the branch 8.x-3.x to hidden.

🇩🇪Germany Anybody Porta Westfalica

Reopened to finally also fix eslint in 3490746-fix-eslint

🇩🇪Germany Anybody Porta Westfalica

Thanks, we indeed need to fix that. My impression is that some days or weeks ago the test were green consistently. Any ideas for the reasons?

🇩🇪Germany Anybody Porta Westfalica

We should check if it's still an issue with 4.x and prepare a MR please.

🇩🇪Germany Anybody Porta Westfalica

Please retry with latest 4.x - does the issue still exist?

🇩🇪Germany Anybody Porta Westfalica
🇩🇪Germany Anybody Porta Westfalica

Thank you! Merged! :)

🇩🇪Germany Anybody Porta Westfalica

@dianacp which version are you really using? You selected 8.x-1.0?

🇩🇪Germany Anybody Porta Westfalica

Yup, closing this as duplicate!

🇩🇪Germany Anybody Porta Westfalica

Please try with the latest 4.x release.

🇩🇪Germany Anybody Porta Westfalica

@lazzyvn thanks for your report. Could you give some more details on the effect of this bug, so we can reproduce and fix it more easily? Please use the provided issue template.

🇩🇪Germany Anybody Porta Westfalica

As of #11 - this is close to the finish line :)

🇩🇪Germany Anybody Porta Westfalica

Thanks @efpapado totally makes sense to me code-wise. Let's see what the maintainers think.

Production build 0.71.5 2024