🇬🇧United Kingdom @aaron.ferris

Account created on 26 May 2011, almost 14 years ago
#

Merge Requests

More

Recent comments

🇬🇧United Kingdom aaron.ferris

Not really sure what the intention is re: 1.x/2.x so raised an MR against both.

🇬🇧United Kingdom aaron.ferris

aaron.ferris made their first commit to this issue’s fork.

🇬🇧United Kingdom aaron.ferris

aaron.ferris made their first commit to this issue’s fork.

🇬🇧United Kingdom aaron.ferris

Thanks @nexusnovaz - there are some conflicts that need to be resolved here.

🇬🇧United Kingdom aaron.ferris

aaron.ferris made their first commit to this issue’s fork.

🇬🇧United Kingdom aaron.ferris

Thanks for the MR and patch, ive pulled this change down and can see that the change fires Drupal.jstimer.timer_loop as expected, im not seeing anything untoward as far as regressions are concerned. Merged.

🇬🇧United Kingdom aaron.ferris

aaron.ferris made their first commit to this issue’s fork.

🇬🇧United Kingdom aaron.ferris

aaron.ferris changed the visibility of the branch 2.0.x to hidden.

🇬🇧United Kingdom aaron.ferris

aaron.ferris changed the visibility of the branch 3511224-fix-cspell-issues to hidden.

🇬🇧United Kingdom aaron.ferris

aaron.ferris made their first commit to this issue’s fork.

🇬🇧United Kingdom aaron.ferris

Thanks both, merged.

🇬🇧United Kingdom aaron.ferris

Isn't Country a required field, as in, the address itself can't be added without it?

Could you please provide reproduction steps in getting the country to be empty? Migrated values perhaps?

Not that this change isn't the right way, im just wondering if this being empty could have consequences elsewhere.

🇬🇧United Kingdom aaron.ferris

Added a permission/entity view hook for this.

Example jsonapi response with an anonymous user, with access to view

{"jsonapi":{"version":"1.0","meta":{"links":{"self":{"href":"http:\/\/jsonapi.org\/format\/1.0\/"}}}},"data":[{"type":"search_api_synonym--search_api_synonym","id":"abb09e71-552d-4ad0-bf75-804b0e969469","links":{"self":{"href":"https:\/\/drupal-11.ddev.site\/jsonapi\/search_api_synonym\/search_api_synonym\/abb09e71-552d-4ad0-bf75-804b0e969469"}},"attributes":{"drupal_internal__sid":4,"langcode":"en","search_api_synonym_type":"spelling_error","word":"marmelade","synonyms":"marmalade,mermelad,marmellade","status":true,"created":"2025-04-27T13:01:40+00:00","changed":"2025-04-27T13:01:40+00:00","field_asddsadasd":null},"relationships":{"uid":{"data":{"type":"user--user","id":"1f83400a-0892-4ed0-99b3-1379d9c831b3","meta":{"drupal_internal__target_id":1}},"links":{"related":{"href":"https:\/\/drupal-11.ddev.site\/jsonapi\/search_api_synonym\/search_api_synonym\/abb09e71-552d-4ad0-bf75-804b0e969469\/uid"},"self":{"href":"https:\/\/drupal-11.ddev.site\/jsonapi\/search_api_synonym\/search_api_synonym\/abb09e71-552d-4ad0-bf75-804b0e969469\/relationships\/uid"}}}}}],"links":{"self":{"href":"https:\/\/drupal-11.ddev.site\/jsonapi\/search_api_synonym\/search_api_synonym"}}}

🇬🇧United Kingdom aaron.ferris

Tested the change, looks fine. Ill leave this as RTBC for a couple of days to see if there are any arguments against merging.

🇬🇧United Kingdom aaron.ferris

Code change looks fine, I don't see any inherent reason not to expose fields, just wondering what the use case could be, custom export/import plugins?

🇬🇧United Kingdom aaron.ferris

Search API solr, at least as far as I can tell, has moved away from managed resources. Indeed, if you try and use ManagedSynonyms the config export will strip the field. This is still technically feasible, with a custom export plugin, but im not convinced we should be incorporating this into the module given the standardised approach of search_api_solr (using a file).

🇬🇧United Kingdom aaron.ferris

The phpcs pipeline is passing on 3.x, 2.x is considered legacy at this point.

🇬🇧United Kingdom aaron.ferris

8.x is unsupported. Please create a new ticket for 2.x/3.x.

🇬🇧United Kingdom aaron.ferris

MR raised

#
# Synonyms file for Apache Solr generated by Search API Synonym.
# See file https://www.drupal.org/project/search_api_synonym.
#

marmalade,mermelad,marmellade => marmelade
search => replace
🇬🇧United Kingdom aaron.ferris

Agreed with this, I don't think we need to change the synonym case but the spelling error does need a switch I believe.

🇬🇧United Kingdom aaron.ferris

Ive reviewed these changes, they're not applicable anymore as far as I can tell.

🇬🇧United Kingdom aaron.ferris

Made an initial start on this, we will need to compile the synonyms to add to the files post config creation.

🇬🇧United Kingdom aaron.ferris

Ive decided to take a slightly different approach to this, by adding another option in the interval select.

This should give the best of both worlds. We now have

1. Never - self explanatory
2. List of intervals - the way the module has historically worked
3. Bypass - which leaves the cron configuration open, but will ignore any time based interval, so that it can be used with Ultimate Cron and the likes

Feedback/testing welcome.

🇬🇧United Kingdom aaron.ferris

aaron.ferris changed the visibility of the branch 3471724-remove-cron-frequency to hidden.

🇬🇧United Kingdom aaron.ferris

Updated main page, glad that helps.

🇬🇧United Kingdom aaron.ferris

You should only need to move to 3.x if you are on Drupal 11, the core functionality remains largely the same,

We've had to switch to a D10+ specific branch for Drupal 11 compatibility.

🇬🇧United Kingdom aaron.ferris

Thanks for this, makes sense, had to resolve some conflicts owing to the phpcs ticket being merged in. Ill merge when the pipeline finishes.

🇬🇧United Kingdom aaron.ferris

THanks, looks good to me, had to fix some conflicts caused by the phpcs ticket merge, will merge this in when the pipeline finishes.

( https://www.drupal.org/project/search_api_synonym/issues/3519773 📌 Fix pipeline issues - phpcs Active )

🇬🇧United Kingdom aaron.ferris

The changes seem OK, ive pushed a change to reintroduce the failing method, settings form works correctly, I can add and export synonyms as expected

#
# Synonyms file for Apache Solr generated by Search API Synonym.
# See file https://www.drupal.org/project/search_api_synonym.
#

another synonym, synonym
synonym, test
🇬🇧United Kingdom aaron.ferris

I think removing the unused 'use' is OK.

Testing this change, im seeing in an issue on the settings form

Fatal error: Class Drupal\search_api_synonym\Plugin\search_api_synonym\export\Solr contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Drupal\Core\Plugin\PluginFormInterface::submitConfigurationForm) in /var/www/html/web/modules/contrib/search_api_synonym/src/Plugin/search_api_synonym/export/Solr.php on line 17

🇬🇧United Kingdom aaron.ferris

This would indeed be nice, probably in a PostConfigFilesGenerationEvent event subscriber.

🇬🇧United Kingdom aaron.ferris

This will need work, although certain aspects of the patch will still apply others won't - please raise an MR. (Appreciate its old!)

🇬🇧United Kingdom aaron.ferris

Thanks for this, clean and makes sense. We can leave this in until we make this configurable, in which case we can update the readme,

Configurability of the folder: https://www.drupal.org/project/search_api_synonym/issues/2996538 Make file folder configurable Active

Raised MR, will merge in when the pipeline completes.

🇬🇧United Kingdom aaron.ferris

Needs some thought on how we approach this, given this module is already out in the wild. Perhaps we need this behind some sort of toggle, so that the module will continue to behave as it currently is (cron settings from config) but can be overridden with a checkbox.

Production build 0.71.5 2024