Account created on 24 September 2009, almost 15 years ago
#

Merge Requests

More

Recent comments

🇺🇸United States earthday47

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

🇺🇸United States earthday47

You got it! I just pushed up another small fix after more testing. Hopefully that will do it.

🇺🇸United States earthday47

During testing I found that the import fails if the value is empty/blank. So I added a check for non-null to the plugin.

🇺🇸United States earthday47

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

🇺🇸United States earthday47

Thanks for all the work on this! On a site with MR 3 applied I am getting an error from CertificateMappingsInlineEntityForm for the createInstance declaration. The injected services don't match up.

Instead of adding all of EntityInlineForm's injected services, I switched to the webform style of calling parent::createInstance to prevent having to modify this later. Pushed a commit.

🇺🇸United States earthday47

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

🇺🇸United States earthday47

@aaron.feris Thanks for the patch! I'll incorporate in the next release.

🇺🇸United States earthday47

I'm happy to help and supply a patch! I added MR 6 which converts State into configuration. I've also attached a patchfile to this project.

Note that in this patch I've saved all the domain-specific configuration into the same domain_login_restrict.settings configuration object. Ideally, these config would be saved as 3rd party settings on the domain entities, but that's something that could be tackled in a future update.

🇺🇸United States earthday47

I checked and the block is placed using the default block layout. But the patch will work for in the short term.
If I have more information I'll definitely update! Thanks for your quick responses!

🇺🇸United States earthday47

Here's some more details I can provide -

  • The error was triggered on entity of type "block_content"
  • It is a custom block type with only a body field. There were no customizations made to any other view modes so this would be trying to use the 'default' view mode.
  • This site, and this block content, was upgraded from Drupal 8->9->10.

So it's possible this is a migration issue?

🇺🇸United States earthday47

Hello, after working to customize the way quiz questions and results are templated and styled, I would strongly suggest using theme functions to render the final output of the quiz elements. Especially the results pages are hard to theme.

For example, I have overridden the QuizResultAnswerViewBuilder alterBuild() method and, along with some custom logic, returned this at the very end:

    $build['quiz_result_answer'] = [
      '#theme' => 'MYMODULE_quiz_result_answer',
      '#question' => $question_render,
      '#rows' => $rows,
      '#result_meta' => $result_meta,
    ];

    return $build;
  }

Even simpler, some of the controller methods I just wrapped the output in a theme function:

namespace Drupal\MYMODULE_quiz_customizations\Controller;

use Drupal\quiz\Controller\QuizQuestionController as OriginalQuizQuestionController;
use Drupal\quiz\Entity\Quiz;

class QuizQuestionController extends OriginalQuizQuestionController {

  /**
   * {@inheritdoc}
   */
  function feedback(Quiz $quiz, $question_number) {
    $page = parent::feedback($quiz, $question_number);
    return [
      '#theme' => 'MYMODULE_quiz_question_feedback',
      '#content' => $page['body'],
    ];
  }

  /**
   * {@inheritdoc}
   */
  function take(Quiz $quiz, $question_number) {
    $content = parent::take($quiz, $question_number);
    return [
       '#theme' => 'MYMODULE_quiz_question_take',
       '#content' => $content,
    ];
  }

}

This let me add wrappers around the actual question component in a template file.

I can upload a patch if you would like to see more specifically what I'm proposing.

🇺🇸United States earthday47

Here's a patch that removes it from queries.

🇺🇸United States earthday47

@fromme thanks for the merge! Yeah select all is a better experience, my form in the patch is overwhelming (site I'm using this on has 20+ roles)

🇺🇸United States earthday47

In a perfect world, there would be tests for this!

🇺🇸United States earthday47

@rkoller I recreated the Edge + high contrast mode testing environment, however I found that when I combined "Enable automatic dark mode" + forced-colors the borders and spinner become a gray tone... but without "automatic dark mode" it doesn't happen. And any attempt at overriding with CSS was unsuccessful. This will need a closer look.

We've got the dark mode task, but also opened a new issue for high contrast. https://www.drupal.org/project/project_browser/issues/3368315 📌 Make work with dark mode, high-contrast, forced-colors Active

MR is rebased, so with that new task I'm hoping we can get this task reviewed and approved.

Re 3 -
> for RTL the spinner is still centered with the pre patch styling. the changes in the MR are only available for LTR.

I wasn't able to reproduce this one... test again using the newly rebased branch?

🇺🇸United States earthday47

I created a fork/merge request which includes the patch in #3 (core_version_requirement) and the automated fixes in #4.

🇺🇸United States earthday47

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

🇺🇸United States earthday47

I've rerolled the patch for the 1.2 version because I need it for Drupal 10!

🇺🇸United States earthday47

I needed to reroll the patch in #20 for 1.0-rc7. I made a couple of code formatting tweaks but left the logic alone - there are some things in there that are a little unusual, goto and while(1==1) , that make it a little hard to follow. It probably needs a little more work.

🇺🇸United States earthday47

Patch version of the merge request at this point (as this feature may change a bit in the future).

🇺🇸United States earthday47

Will have to work on tests later - any help in that department is appreciated!

🇺🇸United States earthday47

Refactored the way we return messages from package manager to return errors and non-errors (warnings). If there are any errors, prevent installs and show the heading "Unable to download modules via the UI". If there are any warnings, we print them without a header.

I've added some screenshots of the various scenarios we could get if there are multiple messages. Chris informed me that we're unlikely to get both because of the way Package Manager works, regardless, the styles are in there just in case this happens.

🇺🇸United States earthday47

Fix in place.
Does this need a test?
Also - do we want to print warnings still? At the moment this is suppressing them.

🇺🇸United States earthday47

Hi all! Catching up on this issue's history, I do see that we wanted to have the top region clickable for accessibility reasons. I didn't want our work from yesterday to invalidate all of this useful work, so I rebased the 2nd-to-last MR/branch.

So we have a couple options... the a wrapping the Image element, which would create two anchors to tab through, or the original approach creating a click event/action on the wrapping div.

🇺🇸United States earthday47

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

🇺🇸United States earthday47

@kroller thanks so much for testing!

1. I agree that having it left aligned to the max width of the button area would be better, but would also introduce extra white space that may look off.
Left aligning the throbber is how I've seen it used in other places for Ajax links so I think that would be consisten with other experiences.
One option is to move it above the text, right-aligned. (Breaks convention?)
Another option is to animate the width of the text so it more smoothly resizes. Might be the lowest friction option

2. I will make some style updates for high contrast mode (possibly related indirectly to work in #3364776)

🇺🇸United States earthday47

Happy to report that I have a merge request in place to address this. The throbber was already in the right container, it just needed to have some classes and styles adjusted.

Attached is how it's looking. I don't have package manager working all 100% yet but the GIF shows it stepping through most of the states.

🇺🇸United States earthday47

I determined that this is an issue with how the previous links are checked. In menuPagerGetNavigation() and menuPagerFlattenTree() it's returning the full menu tree, which means checking previous will only check the previous item in the flattened tree. Which in my scenario would be "Grandchild 3".

So here's a patch! It pulls the menu restricting by the parent as the root and max depth = 1, meaning the flattened tree will only contain siblings. Works good on my local environment/scenario.

🇺🇸United States earthday47

^ with core_version_requirement.

🇺🇸United States earthday47

Same changes but with core_version_requirement bump.

🇺🇸United States earthday47

Created fork with the automated fixes, added core_version_requirement.

🇺🇸United States earthday47

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

🇺🇸United States earthday47

I'm working on upgrading a website to D10 with Value installed. D10 has upgraded to Twig 3 which includes a number of deprecations:
https://twig.symfony.com/doc/2.x/deprecated.html

This patch file makes the changes for Twig_Extension, Twig_SimpleFilter, and Twig_SimpleFunction.

🇺🇸United States earthday47

I still have an issue, but it's the other way around - now views_contextual_filters_or is applying the OR to the parent condition, and overriding all other conditions.

For example, if I have Location as a single select, and Type as a multi-select, once I select a value for Type it will ignore Location and show results for all Locations.

Happy to elaborate with examples to help resolve.

🇺🇸United States earthday47

Committed last patch to 3.0.x.
The previous patches are still available if you were using that method.

🇺🇸United States earthday47

MR merged, this will go out in the next release :)

🇺🇸United States earthday47

Updated approach to add a `file_default` setting. All Files might want to be grouped in "Documents", for example.

🇺🇸United States earthday47

Here's a patch for a feature change that allows customizing the File datasource (file entity) MIME type. These will be grouped with nodes with the same label. And put in "Other".

This solves for a specific use case (File entities) but long-term would like a more general solution.

🇺🇸United States earthday47

(I need this too)
Until a new release gets cut, you can add the MR as a diff in composer patches: https://git.drupalcode.org/project/search_api_tracking/-/merge_requests/...

Or, GitLab always has the dev branches available, so you can either download it from the repository or target 1.0.x in composer.json by using: `"drupal/search_api_tracking": "dev-1.0.x"

🇺🇸United States earthday47

@DamienMcKenna here's an updated patch that includes unit tests for explode().
Based on my understanding, that covers it, but let me know if I should include any more!

🇺🇸United States earthday47

@DamienMcKenna hello! I can work on some tests. I've done exactly 1 core test so be patient :)

Production build 0.69.0 2024