Berlin
Account created on 14 September 2007, about 18 years ago
#

Merge Requests

More

Recent comments

🇩🇪Germany tobiasb Berlin

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

🇩🇪Germany tobiasb Berlin

PHPUnit does not complain that the mock was not used with $mock->expects($this->any()), but with $mock->expects($this->atLeastOnce()).

🇩🇪Germany tobiasb Berlin

fyi: It was only set to 8.4 not 8.4.0. The other issues set it to 8.2.0/8.3.0.

🇩🇪Germany tobiasb Berlin

This MR touch the same of 🐛 Url::createFromRequest ignores query parameters Needs work . I would say, let's extend the test there and close the issue here.

🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin

@mstrelan

Done. Somehow I could not believe that we do not have a unit test for the date formatter. :D

🇩🇪Germany tobiasb Berlin

I replaced the kernel test with a unit test.

A test only would result into:

❯ ddev phpunit core/tests/Drupal/Tests/Core/Datetime/DateFormatterTest.php
Clearing old webdriver sessions
PHPUnit 11.5.42 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.3.25
Configuration: /var/www/html/core/phpunit.xml.dist

F                                                                   1 / 1 (100%)

Time: 00:00.032, Memory: 6.00 MB

There was 1 failure:

1) Drupal\Tests\Core\Datetime\DateFormatterTest::testFormat
Drupal\Core\Language\LanguageManagerInterface::getConfigOverrideLanguage() was not expected to be called.

/var/www/html/core/lib/Drupal/Core/Datetime/DateFormatter.php:342
/var/www/html/core/lib/Drupal/Core/Datetime/DateFormatter.php:129
/var/www/html/core/tests/Drupal/Tests/Core/Datetime/DateFormatterTest.php:39
🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin

Just try:

Fatal error:

$hook = function() { };
([]) + ($hook()) ?? [];

Fixed:

$hook = function() { };
([]) + ($hook() ?? []);
🇩🇪Germany tobiasb Berlin

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

🇩🇪Germany tobiasb Berlin

tobiasb created an issue.

🇩🇪Germany tobiasb Berlin

I believe this is a UX problem. 🐛 Incorrect behaviour for block page visibility Needs work

I entered <front> into pages and selected Hide for the listed pages. But my block was still visible.

🇩🇪Germany tobiasb Berlin

Ok, I need to postponed it, because the origin annotation does not have a label, therefore also not the attribute.

Idea: Use \Drupal\entity_import\Plugin\migrate\process\EntityImportProcessTrait::getLabel in the form t('Process: %id') which can then be overridden by plugins or an own attribute?

🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin

tobiasb created an issue.

🇩🇪Germany tobiasb Berlin

tobiasb created an issue.

🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin

tobiasb created an issue.

🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin

I improve the "Steps to reproduce".

There are leftover code from 📌 Remove dependency on jquery_ui_datepicker Needs work . It is not a bug in itself, so the site is not broken, that right.

🇩🇪Germany tobiasb Berlin

I started with:

/**
 * Implements hook_views_query_alter().
 */
function openculturas_custom_views_query_alter(ViewExecutable $view, \Drupal\views\Plugin\views\query\QueryPluginBase $query): void {
  if ($view->id() === 'media_library' && str_starts_with($view->current_display, 'widget')) {
    assert($query instanceof \Drupal\views\Plugin\views\query\Sql);
    /** \Drupal\views\Plugin\views\query\Sql $query */
    $alias = $query->addField('media__field_licenses', 'field_licenses_license');
    $query->addWhere(NULL, $alias, 'all_rights_reserved', '!=');
    //$query->addWhereExpression($whereGroup, '(media_field_data.uid = ***CURRENT_USER*** AND ***CURRENT_USER*** <> 0 AND ***VIEW_OWN_UNPUBLISHED_MEDIA*** = 1) OR ***ADMINISTER_MEDIA*** = 1');

  }
}

which result info following sql-statement (preview in views UI):

SELECT "media"."mid" AS "media_mid", "media_field_data"."created" AS "media_field_data_created", "media_field_data"."name" AS "media_field_data_name", "media__field_licenses"."field_licenses_license" AS "media__field_licenses_field_licenses_license", "media_field_data"."mid" AS "mid"
FROM
{media_field_data} "media_field_data"
INNER JOIN {media} "media" ON media_field_data.mid = media.mid
LEFT JOIN {media__field_licenses} "media__field_licenses" ON media_field_data.mid = media__field_licenses.entity_id AND (media__field_licenses.deleted = '0' AND media__field_licenses.langcode = media_field_data.langcode)
WHERE ("media__field_licenses_field_licenses_license" != 'all_rights_reserved') AND (("media_field_data"."status" = '1') AND ("media_field_data"."default_langcode" = '1'))
ORDER BY "media_field_data_created" DESC

Which is valid, but something happens and the following error is shown:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'media__field_licenses_field_licenses_license' in 'where clause': SELECT COUNT(*) AS "expression" FROM (SELECT 1 AS "expression" FROM "media_field_data" "media_field_data" INNER JOIN "media" "media" ON media_field_data.mid = media.mid LEFT JOIN "media__field_licenses" "media__field_licenses" ON media_field_data.mid = media__field_licenses.entity_id AND (media__field_licenses.deleted = :views_join_condition_0 AND media__field_licenses.langcode = media_field_data.langcode) WHERE ("media__field_licenses_field_licenses_license" != :db_condition_placeholder_0) AND (("media_field_data"."status" = :db_condition_placeholder_1) AND ("media_field_data"."default_langcode" = :db_condition_placeholder_2))) "subquery"; Array ( [:db_condition_placeholder_0] => all_rights_reserved [:db_condition_placeholder_1] => 1 [:db_condition_placeholder_2] => 1 [:views_join_condition_0] => 0 )

🇩🇪Germany tobiasb Berlin

tobiasb created an issue.

🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin

Rebased. Test-Only fails.

But I will also test the fix in a real use-case.

🇩🇪Germany tobiasb Berlin

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

🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin

tobiasb created an issue.

🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin

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

🇩🇪Germany tobiasb Berlin

MR was merged.

🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin

tobiasb created an issue.

🇩🇪Germany tobiasb Berlin

Fyi: bef_datepickers.js does nothing, because $.fn.datepicker is not defined without a loaded jquery_ui_datepicker/datepicker.. Which was removed in 📌 Remove dependency on jquery_ui_datepicker Needs work .

When jquery_ui_datepicker/datepicker is loaded, then the date input has the jquery datepicker widget behind the native date picker from the browser. :D

🇩🇪Germany tobiasb Berlin

Thanks, committed with small changes to make PHPStan happy.

🇩🇪Germany tobiasb Berlin

Thx commited.

🇩🇪Germany tobiasb Berlin

tobiasb changed the visibility of the branch 3061935-fatal-error-trait to hidden.

🇩🇪Germany tobiasb Berlin

The issue 🐛 Move content_translation I18nQueryTrait to migrate module Active was fixed in Drupal core and is part of 11.2. So I think we do not need this anymore.

🇩🇪Germany tobiasb Berlin

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

🇩🇪Germany tobiasb Berlin

Thx commited.

For the log:

CR of drupal: https://www.drupal.org/node/3363700

🇩🇪Germany tobiasb Berlin

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

🇩🇪Germany tobiasb Berlin

With NULL as value, we get an error.

Cannot load the "date_format" entity with NULL ID.

🇩🇪Germany tobiasb Berlin
🇩🇪Germany tobiasb Berlin

This hook can not be used by core/contrib.

When you update a module, you export the changed config locally and commit these changes. (drush updb/drush cex)

Deploy the code + config.

Then you can run drush deploy on the live site.

🇩🇪Germany tobiasb Berlin

Both will be added to the view via update hook openculturas_map_update_10004.

🇩🇪Germany tobiasb Berlin

I can not change the maintainer list. I just forgot once again. That I need to enable notifications for the project.

🇩🇪Germany tobiasb Berlin

Saw the same.

ace.config.set was overridden by the old way, only workerPath worked

I replaced it and updated to latest version.

🇩🇪Germany tobiasb Berlin

We do not use a patch atm.

🇩🇪Germany tobiasb Berlin

we use now ECA v2.

🇩🇪Germany tobiasb Berlin

Patches are part of tour v2.

🇩🇪Germany tobiasb Berlin

I removed the INSTALL.txt. A composer require is enough today.

🇩🇪Germany tobiasb Berlin

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

🇩🇪Germany tobiasb Berlin

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

🇩🇪Germany tobiasb Berlin

Thx. Commited toi

🇩🇪Germany tobiasb Berlin

It needs some love to make phpstan/rector happy.

🇩🇪Germany tobiasb Berlin

@avpaderno

Sure.

🇩🇪Germany tobiasb Berlin

The same problem with cookies module.

Remove header:true everything seems to be ok.

But there is also a problem with navigation-utils.js because it does not use "Drupal~behavior", so DOM can be not ready/fully loaded.

🇩🇪Germany tobiasb Berlin

No answer until now.

Time for the next step.

🇩🇪Germany tobiasb Berlin

I relabeled as a bug report, because I cherry-picked it into 2.4.x.

🇩🇪Germany tobiasb Berlin

I relabeled as a bug report, because I cherry-picked it into 2.4.x.

🇩🇪Germany tobiasb Berlin

D7 is gone. So bumping Version to 4.x.

🇩🇪Germany tobiasb Berlin

I created a new MR, because I can change the target branch.

🇩🇪Germany tobiasb Berlin

tobiasb changed the visibility of the branch 2985400-urlcreatefromrequest-ignores-query to hidden.

🇩🇪Germany tobiasb Berlin

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

🇩🇪Germany tobiasb Berlin

Seems to work fine. It still try to find a translation for en (see screenshot), but not for remote, when the remote uri is build with default server pattern. (ftp.drupal.org)

Production build 0.71.5 2024