Skip to content

ASU-1793: replace ElasticSearch with HTTPS REST API#857

Merged
leevi-identio merged 60 commits intodevelopfrom
ASU-1793
Apr 16, 2026
Merged

ASU-1793: replace ElasticSearch with HTTPS REST API#857
leevi-identio merged 60 commits intodevelopfrom
ASU-1793

Conversation

@leevi-identio
Copy link
Copy Markdown
Contributor

Replaces ElasticSearch with REST api endpoints granting direct access to the project/apartment data.

API changes

Change type Method Path Auth Notes
New POST /oauth/token OAuth2 (Simple OAuth) Client credentials flow for machine clients.
New GET /projects OAuth2 (Bearer) ES-style search response; supports query filtering + pagination (size, from, page).
New / Changed GET /projects/{uuid} OAuth2 (Bearer) Detail endpoint uses {uuid} in the URL (implementation also supports node ID for backwards compatibility).
New / Changed GET /projects/{uuid}/apartments OAuth2 (Bearer) Project-scoped apartments listing; supports ES-style pagination and filtering.
New GET /apartments OAuth2 (Bearer) ES-style search response; supports query filtering + pagination (size capped).
New / Changed GET /apartments/{uuid} OAuth2 (Bearer) Detail endpoint uses {uuid} in the URL (implementation also supports node ID for backwards compatibility).
Existing (documented/clarified) GET /initialize Cookie React initialization payload (filters, csrf token, user info).
Existing (documented/clarified) POST /elasticsearch Cookie Legacy search endpoint used by FE; parameter expectations clarified.
Existing (documented/clarified) POST /project/mailinglist Cookie Docs updated to match actual path + required params.
Existing (documented/clarified) GET /api/v1/package (as configured) Debug package/version endpoint enabled in this project.

@leevi-identio leevi-identio self-assigned this Apr 7, 2026
@leevi-identio leevi-identio added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 7, 2026
@leevi-identio leevi-identio changed the title ASU-1793 ASU-1793: replace ElasticSearch with HTTPS REST API Apr 7, 2026
…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
…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
@sonarqubecloud
Copy link
Copy Markdown

@azure-pipelines
Copy link
Copy Markdown

ASUNTOTUOTANTO branch is deployed to platta: https://asuntotuotanto-pr857.dev.hel.ninja 🚀🚀🚀

@leevi-identio leevi-identio merged commit 04caee8 into develop Apr 16, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant