Porta Westfalica
Account created on 5 July 2023, almost 2 years ago
#

Merge Requests

More

Recent comments

🇩🇪Germany lrwebks Porta Westfalica

@grevil, it is not necessary to unset the controls setting that is passed down from FileMediaFormatterBase, as we no longer actually process it. Instead, we use our new controlsDisplay setting and pass that down to the player as data-controls. So an override with no changes to the following outcome would be unnecessary.

🇩🇪Germany lrwebks Porta Westfalica

Unfortunately, due to the structuring of the tracker settings, I believe it is simply not possible to set a default tracker:
The tracker settings themselves are in the "ad" module, while the local tracker is the "ad_track" module. This is that way because you are able to extend the module with custom trackers from other modules, which will then also appear in the select list.
So, we have three options here, all of which I don't find particularly good:

  1. Place the tracker settings into the "ad_track" module (Caveat: Local tracker is always present even if unwanted)
  2. Require the "ad_track" module to be enabled when installing "ad" (Caveat: same as above)
  3. Overwrite the setting value when "ad_track" is installed afterward (Caveat: would disable any custom tracker already selected and delete the data!)

Another option would be to display a message after "ad" is installed: "You need to set a tracker in the settings in order for tracking impressions to work. If you don't have a custom tracker, you should enable ad_track" or something like that, but that would only be my last resort.

@anybody, what do you think of this?

🇩🇪Germany lrwebks Porta Westfalica

@anybody, regarding the scheduler integration: I'm still a bit unsure about how this could be achieved properly, as the simple plugin implementation does not seem to work yet. As we discussed, would you take a look?

🇩🇪Germany lrwebks Porta Westfalica

@grevil: I was unable to provide the settings via JS drupalSettings, since when there were multiple instances of vidstack players on the same page, the settings of the first player were also used as the settings for all other players (usually correct, but it was messing up the differences in settings between local and remote players). By using data attributes as described in the vidstack docs injected via a twig template, I can fine-tune the settings for each individual player that is injected into the page. This will hopefully prove useful again, if we ever want/need to override the player settings on a per-entity basis.

🇩🇪Germany lrwebks Porta Westfalica
🇩🇪Germany lrwebks Porta Westfalica
🇩🇪Germany lrwebks Porta Westfalica

I have now replaced all backwards compatible calls with the proper logger service via dependency injection. Would appreciate if someone took a look at it!

🇩🇪Germany lrwebks Porta Westfalica

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

🇩🇪Germany lrwebks Porta Westfalica

lrwebks created an issue.

🇩🇪Germany lrwebks Porta Westfalica

Part of our 11.x efforts, so it will be a follow-up to 📌 [META] 11.x feature updates Active .

🇩🇪Germany lrwebks Porta Westfalica

Since this is part of our list of improvements for 11.x, we can simply tackle this as a follow-up to 📌 [META] 11.x feature updates Active .

🇩🇪Germany lrwebks Porta Westfalica

lrwebks created an issue.

🇩🇪Germany lrwebks Porta Westfalica

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

🇩🇪Germany lrwebks Porta Westfalica

Can anyone provide a newer link to the test results? Because the current one is not available anymore and as far as I can see, in the latest pipeline, the tests are green again.

🇩🇪Germany lrwebks Porta Westfalica

@anybody, could you elaborate on your grouping idea? Specifically, how it would be done: Shall we group by date/time or detect duplicate entries that follow one another? Apart from that, I don't see many more ways to compact the design in a way that does not make assumptions about the message contexts that we cannot make.

🇩🇪Germany lrwebks Porta Westfalica

I personally cannot reproduce the problem by the means that were described in the summary.
What I did:

  1. Run drush cex with Devel Debug Log enabled
  2. Uninstall Devel Debug Log
  3. Run drush cim

Result: The module was reinstalled perfectly fine.

When taking a look into my database overview (in this case PHPMyAdmin) I can also see that the table is automatically dropped just fine when uninstalling the module, even without our uninstall hook.
So I am not sure that the proposed resolution is actually the one to the problem that @killdery coelho is experiencing.

🇩🇪Germany lrwebks Porta Westfalica

The only reason that I can see right now as for why Kint would not work and default to the Symfony var dumper would be that the Kint library is not installed on your Drupal installation.

You can see whether it is installed via composer show kint-php/kint and install (if necessary) via composer require-dev kint-php/kint.

If that is not the problem, feel free to reach out again.

It is also good to note that the Kint dumper is only a nicer and more structured way to view information about an object in most cases (meaning that it is not a necessity). The var dumper (that you are seeing right now) should also provide all information about the object, just differently.
Kint is also unable to show object methods anyway contrary to what you requested.

🇩🇪Germany lrwebks Porta Westfalica

lrwebks changed the visibility of the branch 3471860-add-action-to to hidden.

🇩🇪Germany lrwebks Porta Westfalica

This is off to review again, and as far as I can see, done (implementation-wise)!

🇩🇪Germany lrwebks Porta Westfalica

A last thing that should be done is to take into account different image styles for the local video poster image, so I will do that next before we can call this one done.

🇩🇪Germany lrwebks Porta Westfalica

The formatter is in place and works as expected (as far as I'm aware). If a value is set in the formatter, it overrides any value from the field widget, but keeps the widget value if it is not set in the formatter. I also added a note regarding that in the formatter settings, so that there will be no confusion as to why a setting provided via field widget is not taking effect in the actual view (that confusion would definitely happen to me a lot :|).

So, it is off to “Needs Review” now.

🇩🇪Germany lrwebks Porta Westfalica

I have added the help hook now and also rephrased the description and configuration sections to point out that the prefix label is generated, and the separator is configurable.

@grevil, what do you think — is the new phrasing appropriate?

🇩🇪Germany lrwebks Porta Westfalica

The problem might be caused by the JS aggregation itself, since all JS is merged into a single file then, which can of course be the reason for the missing library files. However, @grevil told me that the code for these cookie tests was mostly taken from the “COOKiES” module, so we might need to have a look regarding the correctness there too?

🇩🇪Germany lrwebks Porta Westfalica

We should have submodule specific sections, with their respective requirements, and what they do and how to do basic configuration.

In that case, we should opt to have a README for each of the submodules within their respective module folders, instead of cramming everything into here, right? At least, a lot of complex modules like Webform do it that way.
In a sense, I have already prepared us for this approach by keeping the main module description general and listing submodule features rather than explaining them in detail.

@grevil, what do you think about this? I will add the help hook in the meantime.

🇩🇪Germany lrwebks Porta Westfalica

@grevil, the latest status of my work: I was struggling quite a bit with the AJAX integration when it came to dynamically adding / removing items from the settings form. After a chat with @anybody about it, we decided that my time was currently better spent on different tasks.
So, as of now, this task is open to anyone again, but it is likely that I will return to it if the priority of this rises in the future.

🇩🇪Germany lrwebks Porta Westfalica

@grevil, the README is still missing, so I'll take care of that and then put the issue to “needs review”.

🇩🇪Germany lrwebks Porta Westfalica

LGTM as a temporary solution, simple and effective.

🇩🇪Germany lrwebks Porta Westfalica

The base functionality of the module is ready now and can already be reviewed, but I will keep this issue as "Needs work" right now since I will also write a proper README.md next.

🇩🇪Germany lrwebks Porta Westfalica

@anybody I didn't entirely start from scratch, most of the code is initially taken from the Plyr module and then modified to fit Vidstack, but also some entirely custom things. I figured that this would be the best approach, since we were discussing to take the Plyr code as a starting point. On the other hand, there were lots of things that aren't needed for Vidstack, so I went with cherry-picking.

🇩🇪Germany lrwebks Porta Westfalica

Okay, we're using the built-in default empty option now, just like the actual field in the slide config form does.

Heads-up why I am using this line here:

'#empty_value' => '_none',

If I do not provide a specific value for the empty option, it will disappear forever once the form is saved with a different value (e.g., “Ken Burns Effect”). But since we need it to stay, so I just passed its own default value to it.

🇩🇪Germany lrwebks Porta Westfalica

Basic install/uninstall test is actually already there, as the CommerceBetterProductVariationLabelGenericTest.php file is present.

🇩🇪Germany lrwebks Porta Westfalica

Once this is merged, I can use the README as a template for the module page and improve it a bit (including our support snippets at the end of the page).

🇩🇪Germany lrwebks Porta Westfalica

Once this is merged, I can copy the README to the module page (changing it up a bit of course to better fit the webpage setting).

🇩🇪Germany lrwebks Porta Westfalica

The proposed README is still missing a lot of points and not following the Drupal Standard very well, so I will redo it quickly.

🇩🇪Germany lrwebks Porta Westfalica

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

🇩🇪Germany lrwebks Porta Westfalica

FYI: The summary looks like it does in the attached image now.

Production build 0.71.5 2024