Skip to content

UNOMI-947/946: Platform hygiene, graphql-ui upgrade, and IT cluster health#812

Open
sergehuber wants to merge 4 commits into
masterfrom
UNOMI-875-pr7-platform-hygiene
Open

UNOMI-947/946: Platform hygiene, graphql-ui upgrade, and IT cluster health#812
sergehuber wants to merge 4 commits into
masterfrom
UNOMI-875-pr7-platform-hygiene

Conversation

@sergehuber

Copy link
Copy Markdown
Contributor

Plain-language summary

Unomi 3.1 still shipped an old Swagger UI bundle version in Karaf while the REST module already used a newer one. The GraphQL playground also used outdated frontend libraries and hard-coded localhost URLs. Integration tests could fail on Elasticsearch because single-node clusters turned yellow when indices kept a replica count of one.

This change aligns Swagger UI with the project version, upgrades the GraphQL UI stack, bumps safe Java dependencies, and makes the IT harness enforce zero replicas on the search cluster before and after migration.

What changed

  • UNOMI-947: Use ${swagger-ui.version} in unomi-rest-ui Karaf feature (5.27.1).
  • UNOMI-946: Add configureSearchEngineForTesting(), fixRestoredIndexReplicas(), and assertClusterHealthy() in BaseIT; call from migration IT after snapshot restore; set ES minimalClusterState=YELLOW in IT config; teach ElasticSearchHealthCheckProvider yellow tolerance like OpenSearch.
  • Bump error_prone_annotations 2.50, logback-classic 1.2.13, router jsch 0.1.55_1 (poms + feature.xml).
  • Upgrade graphql-ui to GraphiQL 5.x, relative HTTP/WS URLs, React 18 createRoot, webpack support for Monaco/CSS.

Test plan

  • yarn build:production in graphql/graphql-ui
  • mvn -pl graphql/graphql-ui,wab,kar,extensions/healthcheck -am test-compile -DskipTests
  • mvn -Pintegration-tests test-compile in itests
  • CI integration tests (ES + OS matrix, HealthCheckIT, Migrate16xToCurrentVersionIT)

References

UNOMI-947, UNOMI-946

…ealth

Batch dependency and frontend upgrades for 3.1 GA: align swagger-ui feature
with pom version, bump error_prone/logback/jsch, upgrade GraphiQL 5 with
relative URLs, and harden IT search cluster replica enforcement.
Absorb Dependabot #804-808 security bumps (lodash, js-yaml, markdown-it,
linkify-it, postcss, serialize-javascript) that the GraphiQL 5 lock refresh
did not pick up automatically.
index.number_of_replicas is not a valid cluster persistent setting.
Use a composable index template for new indices and _all/_settings for
existing ones (migration snapshot restore path).
Split UNOMI-946 cluster prep into explicit stages: pre-Unomi baseline,
post-snapshot restore, post-shell-migration, and post-Unomi health check.
Apply zero-replica settings per index (ES/OS compatible) and re-enforce
after migration before unomi:start.
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.

1 participant