Account created on 7 June 2006, over 18 years ago
#

Merge Requests

More

Recent comments

🇪🇸Spain Carlitus

I found this patch today and it's a very pleasant surprise, because I was thinking of doing it myself.

The fact that it is not by default, or cannot be set by default, is a big problem, besides the fact that this module is not already integrated in the core.

Thanks to all of you!

🇪🇸Spain Carlitus

Sorry for the mess I've made trying to integrate the changes into 10.4.x.
Partly because I see that these changes are already in the 10.4.x branch, so nothing needs to be done.

🇪🇸Spain Carlitus

Some problem, same solution.

Also i had weird results like @cassioalmeida.

And after you check the option "Retrieve results for this site only" you have to delete and reindex items in the index.

🇪🇸Spain Carlitus

I cannot apply any MR to 10.4.0:

Installing drupal/core (10.4.0): Extracting archive
Applying patches for drupal/core
https://git.drupalcode.org/project/drupal/-/merge_requests/10509.diff ( https://www.drupal.org/project/drupal/issues/3489329: symfony/http-foundation commit 32310ff breaks PathValidator)
Could not apply patch! Skipping. The error was: Cannot apply patch https://git.drupalcode.org/project/drupal/-/merge_requests/10509.diff

Installing drupal/core (10.4.0): Extracting archive
- Applying patches for drupal/core
https://git.drupalcode.org/project/drupal/-/merge_requests/10307.diff ( https://www.drupal.org/project/drupal/issues/3489329: symfony/http-foundation commit 32310ff breaks PathValidator)
Could not apply patch! Skipping. The error was: Cannot apply patch https://git.drupalcode.org/project/drupal/-/merge_requests/10307.diff

🇪🇸Spain Carlitus

I have the same problem with Drupal 10.3, search_api_solr 4.3.5 and solr 9.7

🇪🇸Spain Carlitus

but these paddings or margins need to be configurable based on different breakpoints.

I think it is better to have this directly in all style properties.

For example, if you have margin-left you should be able to set, in addition to the default, a value for each breakpoint.

🇪🇸Spain Carlitus

Been discussing padding adjustments with Jacob. Let's decide if we'd want a "Spacer" type component to put in between components or if we want this type of padding to be handled per component.

I think it's a lot better to have margins and paddings in the components instead of having a spacer component, a spacer has no semantic meaning.

+1 for #10

🇪🇸Spain Carlitus

I don't know the components from CivicTheme but in Omitsis we use Mercury editor with this components:

Layout type:

  • Layout: General layout to insert into other componets
  • Accordion Layout: Layout to insert accordions content.
  • Accordion Content: Layout, that behaves like an accordion, to insert other components
  • Tab Layout and Tab Content: Same as Accordion.


Content type:

  • Header
  • Text
  • Content teaser: To insert a content with a view mode, teaser by default.
  • Dynamic list: To insert configurable views from the page builder.
  • Form: To insert webforms
  • Image
  • Download
  • Link
  • Video
  • Number: Typical number that when scrolling you see an animation from 0 to the indicated number, plus an icon, prefix, suffix and description.
  • Card: With predefined fields to be filled in manually. Configurable view mode
  • Blockquote
  • Iframe
  • Review: An opinion, with a photo and a rating
🇪🇸Spain Carlitus

Hi, I just wanted to comment on this:

I hope people don't actually put hundreds of component instances on a node. That wouldn't lead to a good authoring experience. A good design system, even if it includes some small components (atoms), should also include larger components (molecules, organisms) that content authors work with, so that content authors aren't in practice putting every atom one-by-one on a page.

We use a lot of low-level elements on a page, so we have a lot of freedom. Yes, we also have some elements like molecules, but we usually do that with templates that we can then modify. And this templates are a group a single atoms.

And a landing, por example, can be very, very, very long.

So actually the hundreds of components that @Wim Leers was talking about can be real in a lot of cases.

🇪🇸Spain Carlitus

@bramdriesen Could you review this issue?

This way we can know if it is something that is not interesting. Or if you are interested in, we can make the necessary modifications to merge this in a future release.

But otherwise we have to stay on this version or change the code with each new version.

thank you!

🇪🇸Spain Carlitus

I've made a MR to change to put this:

.ck-balloon-panel {
  z-index: 10000 !important;
}

Because with the old value the balloon was under and invisible. I'm using layout paragraphs, by the way, and now i can see the balloon when i click in the link button of ckeditor.

🇪🇸Spain Carlitus

I think i can close the issue, because i was another module that cause this.

🇪🇸Spain Carlitus

I've made a MR to 8.7 to add a wildcard to the end of every word.

It's a partial solution, there are some weird use cases using this.

🇪🇸Spain Carlitus

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

🇪🇸Spain Carlitus

Something strange has happened. I created the MR but when I clicked on the link after the push I had no access. I passed it to my partner paucala and he was able to access it.

🇪🇸Spain Carlitus

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

🇪🇸Spain Carlitus

I've made a MR to 3.0, with the path from #3 and a small modification: rounded the min and max when are float.

🇪🇸Spain Carlitus

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

🇪🇸Spain Carlitus

I've made a MR to add the prefix and sufix to summary filter of range sliders.

🇪🇸Spain Carlitus

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

🇪🇸Spain Carlitus

My problem was:

I have n facets, for example:
Quality
- New (100)
- Medium (300)
- Poor (50)

Family
- Item family 1 (500)
- Item family 2 (30)
...

I want users to be able to filter on each of the facets with as many facet items as they want, using an OR.

But between the different facets it has to be an AND.

That is, if someone selects Item family 2 and Quality new and Quality Poor it would really be:

(Item family 2) AND (Quality New OR Quality Poor)

This already works this way by default, but it is not reflected in the number of results, so the logic that can be applied to the facets according to the results does not work well. For example hide a facet item if the results are 0. Or hide a facet if it is empty, having all its facet items deactivated.

Without the patch this doesn't work like that, but applying patch #44 it seems to work perfectly. Thanks to everyone who made this possible!

I'm using:
"drupal/search_api":"^1.34",
"drupal/elasticsearch_connector": "7.x-dev@dev",
"drupal/facets": "^2.0",

🇪🇸Spain Carlitus

yes, thats it. It's in bat_module, without the whitespace and also without this patch all works well.
https://www.drupal.org/project/bat_api/issues/3411329#comment-15590410 🐛 With Drupal 10.2.0 the rest api doesn't return a valid json Needs work

Thanks!

🇪🇸Spain Carlitus

Finnaly i found it!

It's in the bat module, in bat_event.module.

The first line has a whitespace before the opening php tag.
https://git.drupalcode.org/project/bat/-/blob/8.x-2.x/modules/bat_event/...

it has

 <?php

Instead of

<?php
🇪🇸Spain Carlitus

What do you recommend? should I put this MR in the other issue?

🇪🇸Spain Carlitus

@cilifen, the workaround it's copied from here, you can see that @MLZR links to this issue.

🇪🇸Spain Carlitus

Your welcome @MLZR, I am glad that my solution has been able to help more people.

🇪🇸Spain Carlitus

It's similar but i have not the err_http2_protocolol_error, and the solutions didn't work for my problem.

🇪🇸Spain Carlitus

It seems like a core thing, but I understand that it must be something that happens to almost no one, because there would have to be a lot more people talking about this.

The endpoint:
/bat_api/calendar-units?_format=json&types=7&ids=&event_type=availability_hourly&_=1711364361712

Without the patch:

With the patch ( https://www.drupal.org/project/drupal/issues/3432990 🐛 Content-length incorrect and response truncated in web servers Active ):

I have put screenshots to simplify this comment, but I can put the code that returns the endpoint.

🇪🇸Spain Carlitus

I have not any file with a php closing tag.

I've a made a core MR, more of a temporal solution, but now it works:
https://www.drupal.org/project/drupal/issues/3432990 🐛 Content-length incorrect and response truncated in web servers Active

🇪🇸Spain Carlitus

In this related issue https://www.drupal.org/project/bat_api/issues/3411329#comment-15458113 🐛 With Drupal 10.2.0 the rest api doesn't return a valid json Needs work , and using the last bat_api 3.1RC i get the same result, the json it's not valid.

¿Do you know if i need to do something more?

🇪🇸Spain Carlitus

I get the same result with the last bat_api 3.1RC, the json it's not valid

🇪🇸Spain Carlitus

I'm using this with Mercury editor, i don't remember now, but maybe I'm basing it on something that's from the mercury.

🇪🇸Spain Carlitus

With Drupal 10.2.1 it's the same. And i see that with calendar-units endpoint (/bat_api/calendar-units?_format=json&types=8&ids=&event_type=availability_hourly&_=1704794828919) there is the same problem:

[
    {
        "id": "8",
        "title": "P2 Lab",
        "children": [
            {
                "id": "S119",
                "title": "RNA Extraction Area",
                "create_event": true
            },
            {
                "id": "S120",
                "title": "Hood 16_IRSIQ 05\/029 - Sample Processing",
                "create_event": true
            },
            {
                "id": "S121",
                "title": "Hood 17_IRSIQ 05\/029 - Sample Processing",
                "create_event": true
            },
            {
                "id": "S122",
                "title": "Hood 18_IRSIQ 05\/027",
                "create_event": true
            },
            {
                "id": "S123",
                "title": "Hood 19_IRSIQ 05\/028",
                "create_event": true
            },
            {
                "id": "S124",
                "title": "DNA extraction area 1",
                "create_event": true
            },
            {
                "id": "S125",
                "title": "DNA extraction area 2",
                "create_event": true
            },
            {
                "id": "S126",
                "title": "Hood DNA adition_IRSIQ 05\/024",
                "create_event": true
            },
            {
                "id": "S127",
                "title": "Hood RNA adition_IRSIQ 05\/025",
                "create_event": true
            }
        ]
🇪🇸Spain Carlitus

Some of these errores are like this?

Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "mercury-dialog" has already been used with this registry
    at https://creafd10.ddev.site/modules/contrib/mercury_editor/build/js/dialog.element.min.js?s6sayk:374:1330
    at https://creafd10.ddev.site/modules/contrib/mercury_editor/build/js/dialog.element.min.js?s6sayk:374:1345
    at at (https://creafd10.ddev.site/modules/contrib/mercury_editor/build/js/dialog.element.min.js?s6sayk:56:291)
    at https://creafd10.ddev.site/modules/contrib/mercury_editor/build/js/dialog.element.min.js?s6sayk:374:1274
    at https://creafd10.ddev.site/modules/contrib/mercury_editor/build/js/dialog.element.min.js?s6sayk:374:1484

iIt's a javascript error when adding a layout element width Drupal >= 10.2.0.

I not i willl create a new issue.

🇪🇸Spain Carlitus

With the last versión (3.1.0-rc1) i get a different but incomplete result:

[
    {
        "id": "0103",
        "bat_id": 0,
        "resourceId": "S103",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0104",
        "bat_id": 0,
        "resourceId": "S104",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "092",
        "bat_id": 0,
        "resourceId": "S92",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "093",
        "bat_id": 0,
        "resourceId": "S93",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "094",
        "bat_id": 0,
        "resourceId": "S94",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "095",
        "bat_id": 0,
        "resourceId": "S95",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "096",
        "bat_id": 0,
        "resourceId": "S96",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "097",
        "bat_id": 0,
        "resourceId": "S97",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "098",
        "bat_id": 0,
        "resourceId": "S98",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "099",
        "bat_id": 0,
        "resourceId": "S99",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0100",
        "bat_id": 0,
        "resourceId": "S100",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0101",
        "bat_id": 0,
        "resourceId": "S101",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0102",
        "bat_id": 0,
        "resourceId": "S102",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0105",
        "bat_id": 0,
        "resourceId": "S105",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0106",
        "bat_id": 0,
        "resourceId": "S106",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0107",
        "bat_id": 0,
        "resourceId": "S107",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0108",
        "bat_id": 0,
        "resourceId": "S108",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0109",
        "bat_id": 0,
        "resourceId": "S109",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0110",
        "bat_id": 0,
        "resourceId": "S110",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0111",
        "bat_id": 0,
        "resourceId": "S111",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0112",
        "bat_id": 0,
        "resourceId": "S112",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0113",
        "bat_id": 0,
        "resourceId": "S113",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0114",
        "bat_id": 0,
        "resourceId": "S114",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0115",
        "bat_id": 0,
        "resourceId": "S115",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0116",
        "bat_id": 0,
        "resourceId": "S116",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0117",
        "bat_id": 0,
        "resourceId": "S117",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
    },
    {
        "id": "0118",
        "bat_id": 0,
        "resourceId": "S118",
        "start": "2024-01-04T00:00:00",
        "end": "2024-01-05T00:00:00",
        "title": "Disponible",
        "color": "#009AD8",
        "blocking": 0,
        "fixed": 1,
        "editable": false,
        "rendering": "background",
        "type": "availability_hourly"
🇪🇸Spain Carlitus

Yes!, with this MR all works like before, thanks!

And i searched before i created the issue but i didn't find this issue, sorry.

🇪🇸Spain Carlitus

I have several groups of meetings rooms

Each group have diferent meeting rooms:

Without this MR:
I only can book in meetings room of one group, the one defined in the yml of my content type.

With the MR:
I can book in all the meetings rooms, because i don't look the configuration of the content type for the type_id

🇪🇸Spain Carlitus

To solve this i did this:
https://www.drupal.org/project/mercury_editor/issues/3381727 🐛 Vertical and horizontal layout shift Active

🇪🇸Spain Carlitus

To solve this i did this:
https://www.drupal.org/project/mercury_editor/issues/3381727 🐛 Vertical and horizontal layout shift Active

🇪🇸Spain Carlitus

We don't use bee hotel, only bee, bat and bat_api. We use this for booking of meetings rooms.

And there is no question, sorry, only that we need this patch so we can no longer book the meetings room that the type_id inf config/sync are different.

🇪🇸Spain Carlitus

I had the same problem, for a user not admin i dind' see any event in the calendar i cannot make a booking.

With this patch, and after i enable this two permissions form my rol, all works as before.

🇪🇸Spain Carlitus

@sassafrass I recomend you using this module: https://www.drupal.org/project/viewsreference_filter

It's a lot better, because the webmaster can use the exposed filters (no contextual) to define the filters of the view, and there is an option to hide this filters.

🇪🇸Spain Carlitus

This doesn't work for me.

Steps:
View with exposed filters
Enabled: "Show Filters on Page"
Filters with "All" option, because I want the user to filter, and show all by default.

With this, no filters are applied because the code filter always with "All".

As I see there are two main scenarios:

1. I want to show the filters, but without filtering by default
2. I want to show a predefined list but without options.

The third scenario is:
I want to show a predefined list, but I want the user modify the filter. I think this is less common, and now I don't need it, and because of that I created a MR to resolve the 1 and 2 scenario.

(PD: I cannot reopen the issue)

🇪🇸Spain Carlitus

I seem to have broken the first two laws of the drupal programmer:

First law: Clear the cache
Second law: If that doesn't work clear the cache again.

And now it works, thank you very much

🇪🇸Spain Carlitus

I have the same problem, when i edit the view display, when using Field formatter with inline settings i don't see all the responsive image that i have.

As a temporal solution i can export config, change the responsive image id and import.

🇪🇸Spain Carlitus

For me still doesn't work. When enabled MR38 it works as before, when i submit the field edit form, only argument and pager can be enabled in Enable extra settings.

In the config export i see this:

  enabled_settings:
    argument: argument
    limit: 0
    pager: pager
    offset: 0

If i change to

  enabled_settings:
    argument: argument
    limit: 1
    pager: pager
    offset: 1

and import the new config nothing happens, i don't see the limit and offset options in the entity where the field is included.

🇪🇸Spain Carlitus

New patch for other replacements to solve the same error.

I know it's not the best to use static methods, but al least it solves the problem. Maybe the mantainer can tell me how to do it the best way and i will do it.

🇪🇸Spain Carlitus

I finnaly upload a patch because i don't see this change in the last release and i need it.

🇪🇸Spain Carlitus

Sorry, I've seen that in 2.x versión in gitlab the code is good. Closed.

🇪🇸Spain Carlitus

With the 2.1 version this happens yet, and the patch of #10 doesn't work for me.

I've made a change in the MR but it wanted to put in the 2.x version and i don't know how to change, or if tis possible.

I've made a new patch instead.

Production build 0.71.5 2024