ASU-1793: replace ElasticSearch with HTTPS REST API#857
Merged
leevi-identio merged 60 commits intodevelopfrom Apr 16, 2026
Merged
ASU-1793: replace ElasticSearch with HTTPS REST API#857leevi-identio merged 60 commits intodevelopfrom
leevi-identio merged 60 commits intodevelopfrom
Conversation
…ects without Elasticsearch add OAuth2-secured REST endpoints - add Simple OAuth dependency and enable module in config - implement apartment/project search + ES _source mapping services - add REST resources for /projects and /apartments endpoints - add REST resource config for oauth2 auth - document new OAuth2 token flow and endpoints
…but its translated for no reason
- Allow cache age to be set
- Refactor elasticsearch.php
…ing correct data - Refactor projects fetching from db
Clean up invalid 'views.view.' (and whitespace variants) from active config after importing the DB dump so Drupal core post-updates don't crash. Made-with: Cursor
Use a single-line php:eval snippet so the cleanup runs correctly in GitHub Actions shells and removes malformed views config names before post-updates. Made-with: Cursor
After importing latest.sql, scan active views.view.* config and remove entries whose stored data has an empty/missing id to prevent core post-update crashes. Made-with: Cursor
- kind of a workaround but not really
|
|
ASUNTOTUOTANTO branch is deployed to platta: https://asuntotuotanto-pr857.dev.hel.ninja 🚀🚀🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Replaces ElasticSearch with REST api endpoints granting direct access to the project/apartment data.
API changes
/oauth/token/projectssize,from,page)./projects/{uuid}{uuid}in the URL (implementation also supports node ID for backwards compatibility)./projects/{uuid}/apartments/apartmentssizecapped)./apartments/{uuid}{uuid}in the URL (implementation also supports node ID for backwards compatibility)./initialize/elasticsearch/project/mailinglist/api/v1/package