Skip to content

Add elastic search indexing as a separate service - #26

Merged
PGijsbers merged 11 commits into
mainfrom
fix-24
Oct 22, 2026
Merged

PGijsbers merged 11 commits into
mainfrom
fix-24

Conversation

@PGijsbers

@PGijsbers PGijsbers commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Implements #24.

Introduce a separate elastic search indexing job which makes it possible/easy to better distinguish whether the PHP REST API is needed with or without ES support. The new default is to avoid starting and indexing elasticsearch if it is not strictly needed.

As a result, you can now e.g., start the PHP REST API without Elasticsearch: docker compose up php-api -d.
But starting the frontend will still trigger Elasticsearch indexing before start: docker compose up nginx frontend -d

@PGijsbers

Copy link
Copy Markdown
Contributor Author

CI (naturally) fails because the docker compose file now references an unreleased PHP REST API.

@PGijsbers
PGijsbers marked this pull request as ready for review October 21, 2026 07:58
Comment thread scripts/wait_for_run.sh
while [ "$ELAPSED" -lt "$TIMEOUT" ]; do
RESPONSE=$(curl -sS "http://localhost:8000/api/v1/xml/run/${RUN_ID}")

if echo "$RESPONSE" | grep -q "area_under_roc_curve"; then

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See CI failure. It looks like there may have been a long response from the REST API so that grep exited before echo is finished (similar to this). The use of a here-string should alleviate this.

@PGijsbers
PGijsbers force-pushed the fix-24 branch 2 times, most recently from d3e3883 to 46172c8 Compare October 22, 2026 07:05
@PGijsbers

Copy link
Copy Markdown
Contributor Author

I restored the profiles, I'll have a look at that in a separate PR.

@josvandervelde josvandervelde left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Just 2 small points

Comment thread docker-compose.yaml Outdated
Comment thread config/php/.env
@PGijsbers
PGijsbers merged commit e6a439e into main Oct 22, 2026
3 checks passed
@josvandervelde
josvandervelde deleted the fix-24 branch October 22, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants