🏄‍♂️🇦🇺Sydney, Australia
Account created on 24 September 2008, almost 17 years ago
  • Co-Founder and Technical Director at PreviousNext 
  • Co-Founder and Technical Director at Skpr 
#

Merge Requests

More

Recent comments

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

So it's just adding `requiredKey: false` under the playsinline block in the schema?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Rebased on 11.x and moved everything over from system_requirements() to \Drupal\system\Install\Requirements\SystemRequirements::checkRequirements()

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Working on this

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Hmm. If it's not a hook then I assume it's not getting called. We already have a post-update hook for setting default values, so I guess it's dead code. Created a follow up 🐛 Remove unused file_file_video_presave() Active to remove.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper created an issue.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Fixed conflict with 📌 [pp-3] Split up and refactor system_requirements() into OOP hooks Active and added check for setting in SystemRequirements::checkRequirements() instead of system_requirements().

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Added a check for the setting in system_requirements().

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I will leave for 24hrs to see if @jcontreras wants to fix #16.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Sounds like a great idea.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

It was a bot triggered comment that sent an email. I just rebased it.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Re: #23 I updated \Drupal\file\Entity\File::getMimeType() to return the default mime type if NULL, and also the docs on \Drupal\file\FileInterface::getMimeType() to match this behaviour.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Good catch. If we used \Drupal\file\Upload\FileUploadHandler::class as the service name this would probably have been caught sooner.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Looks like the test fail is an unrelated PHP 8.5 test.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Rebased on 11.x and fixed tests. We had space ' ' in the list of special chars, but this is handled separately.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper created an issue.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Ran into a bit of an issue with the pipelines. In order to have Opensearch generate the text embeddings, you need to specify text field to embedding field mappings when creating the pipeline. I don't think it would be easy to dynamically create a pipeline like this with search api.

I'm going to check out the https://www.drupal.org/project/ai_vdb_provider_opensearch module to see if the built-in AI Search would work.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Started work on a more integrated approach. At this stage all the MR does is set index.knn = TRUE when creating the index.

In order to have knn enabled on an index, we need to set that option when creating the index. We can change it after.

This meant we needed to refactor the addIndex() method to not create then update settings, but to pass the settings at creation time. This refactoring could potentially be split out into a separate issue.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I reviewed the changes and confirmed that all use of FileSystemInterface::basename() have been converted to basename().

My only question is on which version this will be removed in.

@deprecated in drupal:11.3.0 and is removed from drupal:13.0.0.

Is it too late to have it removed in drupal 12.0.0 ?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Looks like you are correct. I'd be happy to deprecate/remove.

Confirmed that:

  • the bug linked in the comment is no longer relevant.
  • Directory separators are handled natively
  • The behavior of php basename() seems to handle directories ending in slash just fine.
   * PHP's basename() does not properly support streams or filenames beginning
   * with a non-US-ASCII character.

@see http://bugs.php.net/bug.php?id=37738

Here's an 3v4l snippet to test the standard basename() behavior:

https://3v4l.org/5oTmX

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Committed to 3.x and 2.x. Thanks!

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Updated to catch both OpenSearchExceptionInterface and ClientExceptionInterface

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Hmm. What version of opensearch-php are you using?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

We should be able to just catch OpenSearchExceptionInterface as we convert any HTTP responses with status >= 400 to an instance of \OpenSearch\Exception\HttpExceptionInterface which extends \OpenSearch\Exception\OpenSearchExceptionInterface.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Thanks for reporting. We actually need to remove \OpenSearch\Common\Exceptions\OpenSearchException as it is deprecated in opensearch-project/opensearch-php 2.4.0

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Mohit and I discussed this in Slack and he agreed for me to post this request.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper created an issue.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

A recommended approach for vector indexing is an ingest pipeline. I wonder if this issue could be expanded to include support for that?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Create an MR against 3.x and it will get cherry-picked into the 2.x branch.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Thanks for reporting this issue. Can you please create a MR for it so automated test pipelines will run?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I reviewed this issue as part of Bug Smash Initiative.

I did not try to reproduce this locally. It looks like the code is almost identical to when the issue was posted.

Unfortunately there is no context to that change to inform whether it is intended behavior for security reasons.

It would be helpful to have an automated test to prove the bug exists.

I'm changing to PMNI to get feedback from the OP and see if it is still occurring.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Hiding files

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

This should only go in 2.x as we want to remove it in 3.x

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I created a follow-up issue to restore the orginal behavior. 🐛 Restore querytime_synonyms analyzer Active

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper created an issue.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

It's been 3 years. Any appetite for a 2.x branch to begin removing deprecated code and adding typehints?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Committed to 2.x and 3.x. Thanks!

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper created an issue.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I reverted the autowiring of SearchApiConverter as the BC logic in there was too complex. Created a follow up for that 📌 [PP-1] Autowire SearchApiConverter service Postponed

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper created an issue. See original summary .

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper created an issue.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper created an issue.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I don't think it qualifies as a bug if you manually put in a url with missing params.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Updated the issue summary and added a change record.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Oops! Not sure how to best manage multiple analyzers.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I realize this will conflict with 📌 [pp-3] Split up and refactor system_requirements() into OOP hooks Active is therefore postponed on that, but wanted to make a start to see what changes are needed.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Working on this.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I pushed up my work in progress in case it's useful later.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Damn. I wish I saw your comment before I started converting system_requirements() 😓

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Looks like drupal_requirements_url() is the only caller of drupal_current_script_url() so both of these can be deprecated. I don't think putting them on the RequirementSeverity enum is the right place. These functions are used by the install script to pass query params around.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Rebased on 11.x

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Reviewed the changes. Looks nice and simple.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I think this can be closed as 📌 Create enums for RequirementSeverity and RequirementPhase Active went in which deprecates the REQUIREMENT_* constants.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Yeah i don't think we want to do any of that on the Drupal side.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Manually tested and confirmed adding the synonyms filter to the default analyzer fixes this issue.

Committed to 2.x and 3.x. Thanks!

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Committed to 2.x and 3.x. Thanks!

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Should just be 'verify' => false according to the docs. https://docs.guzzlephp.org/en/stable/request-options.html#verify

As for the exception in #2, that just looks like an authentication error?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

FYI the docs say quotes for array keys in array shapes aren't needed but I added them anyway https://phpstan.org/writing-php-code/phpdoc-types#array-shapes

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Thanks for the reviews. Resolved all threads.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Do you mean constructor params? This may just be the limitation of the underlying call to stream_wrapper_register() which just takes a class name. See https://www.php.net/manual/en/function.stream-wrapper-register.php

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Adding a related issue saying we should prevent duplicates Drupal should prevent uploading of duplicates for managed files Postponed: needs info

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Actually this is a feature request.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Ran the test-only job and confirmed it fails.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Should we close this issue in favour of 📌 Create enums for RequirementSeverity and RequirementPhase Active ?

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Rebased on 11.x

I also switch the file install config to replace_whitespace: true. I'm not sure this is sufficient as a default or whether we want to go the extra step and enable it via an update hook. This will be disruptive as per #2

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Feedback has been resolved and all tests are green 🟢. Back to NR.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Looks like \Drupal\package_manager\ValidationResult was created using int values in Add Alpha level Experimental Package Manager module Needs review before this could get commited. 😞 Created a follow up 📌 [PP-1] ValidationResult should use RequirementSeverity enum Active

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper created an issue.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

Added a CR about the new setting.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

I'm working on rebasing this. Now most of the hooks are converted to OOP we can see what is left over.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia

kim.pepper changed the visibility of the branch 11.x to hidden.

🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
🇦🇺Australia kim.pepper 🏄‍♂️🇦🇺Sydney, Australia
Production build 0.71.5 2024