Compare commits

..
Author SHA1 Message Date
james.maesandClaude Sonnet 5.5 e59b073dc0 test: compare the full reindex heartbeat at the millisecond the MODIFY_DATE behavior stamps
build / maven (push) Successful in 5m50s
maven / build (push) Successful in 5m50s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 08:47:00 -06:00
james.maesandClaude Sonnet 5.5 5937423a2c fix: every quick_search table has createDate and modifyDate with the standard behaviors
build / maven (push) Successful in 6m31s
maven / build (push) Successful in 6m32s
The tombstone, diagnostic event and validation run tables gain modifyDate; all
eight tables get the CREATE_DATE and MODIFY_DATE behaviors, which the five that
already declared the fields lacked, so the QBit never filled them. All writes use
QQQ's own insert and update actions. Adds the additive host DDL and upgrade note,
and a test that walks every declared table.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 08:41:49 -06:00
CI d82f1758e9 Bump version to 1.1.0-RC.16 [skip ci] 2026-11-07 18:42:48 +00:00
james.maes 3594ca2832 Merge pull request 'Merge develop into release/1.1 (Gitea-aligned RC)' (#93) from align/develop-into-release-1.1 into release/1.1
build / maven (push) Successful in 9m14s
maven / build (push) Successful in 9m14s
2026-11-07 18:32:17 +00:00
james.maesandClaude Opus 5.5 7af434044f Merge develop into release/1.1 (Gitea-aligned RC)
build / maven (push) Canceled after 0s
maven / build (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 12:31:56 -06:00
james.maes ceac89aee3 Merge pull request 'build(deps): align with Gitea registry (parent 2.2.1, QQQ 4.1.0-RC.26)' (#92) from deps/align-gitea into develop
build / maven (push) Successful in 8m59s
maven / build (push) Successful in 8m59s
2026-11-07 18:31:07 +00:00
james.maesandClaude Opus 5.5 75a8d55da2 build(deps): align with Gitea registry (parent 2.2.1, QQQ 4.1.0-RC.26)
build / maven (push) Successful in 13m48s
maven / build (push) Successful in 9m43s
pom.xml: parent -> 2.2.1
pom.xml: qqq.snapshot.version: 4.1.0-RC.15 -> 4.1.0-RC.26
pom.xml: removed Central snapshot repository
pom.xml: added qqq.version=4.1.0-RC.26 (parent BOM import)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 18:04:20 +00:00
james.maes 75d6f7f489 Merge pull request 'ci: pin shared workflow to v1' (#91) from ci/pin-v1-develop into develop
QRun-IO/ci-policy: native / fork-deny (push) Skipped
QRun-IO/ci-policy: native / dotnet-0 (push) Skipped
QRun-IO/ci-policy: ci / Scoped workflow [workflow 1e25bb5a243dfdcd95d4b9a4f780200ff8c8778a] (push) Successful in 12s
QRun-IO/ci-policy: ci / java-docker-4 (push) Skipped
QRun-IO/ci-policy: ci / head-profile (push) Skipped
QRun-IO/ci-policy: ci / repository-policy (push) Skipped
QRun-IO/ci-policy: ci / java-core-2-head (push) Skipped
QRun-IO/ci-policy: ci / java-docker-3 (push) Skipped
QRun-IO/ci-policy: ci / java-frontend-browser-5 (push) Skipped
QRun-IO/ci-policy: ci / java-maven-7-head (push) Skipped
QRun-IO/ci-policy: ci / node-8 (push) Skipped
QRun-IO/ci-policy: ci / node-9 (push) Skipped
QRun-IO/ci-policy: ci / node-10 (push) Skipped
QRun-IO/ci-policy: ci / node-playwright-11 (push) Skipped
QRun-IO/ci-policy: ci / repository-policy-12 (push) Skipped
QRun-IO/ci-policy: ci / source-config-13 (push) Skipped
QRun-IO/ci-policy: ci / source-config-14 (push) Skipped
QRun-IO/ci-policy: ci / original-business (push) Skipped
QRun-IO/ci-policy: ci / original-voyage (push) Skipped
QRun-IO/ci-policy: ci / original-cli (push) Skipped
QRun-IO/ci-policy: ci / ci-result (push) Successful in 11s
QRun-IO/ci-policy: native / native-result (push) Successful in 9s
build / maven (push) Successful in 10m38s
QRun-IO/ci-policy: ci / fork-guard (push) Skipped
QRun-IO/ci-policy: ci / application-template-0 (push) Skipped
QRun-IO/ci-policy: ci / gradle-1 (push) Skipped
QRun-IO/ci-policy: ci / java-docker-3-head (push) Skipped
QRun-IO/ci-policy: ci / java-maven-6 (push) Skipped
QRun-IO/ci-policy: ci / java-maven-6-head (push) Skipped
QRun-IO/ci-policy: ci / java-maven-7 (push) Skipped
QRun-IO/ci-policy: ci / android-0 (push) Skipped
QRun-IO/ci-policy: ci / original-mcp (push) Skipped
QRun-IO/ci-policy: ci / not-enrolled (push) Skipped
QRun-IO/ci-policy: ci / shared-pipeline (push) Skipped
maven / build (push) Successful in 10m38s
2026-11-06 16:09:45 +00:00
james.maesandClaude Opus 5.5 2e4cbd1537 ci: pin shared workflow to v1
QRun-IO/ci-policy: ci / fork-guard (pull_request) Skipped
QRun-IO/ci-policy: native / fork-deny (pull_request) Skipped
QRun-IO/ci-policy: native / dotnet-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / Scoped workflow [workflow 1e25bb5a243dfdcd95d4b9a4f780200ff8c8778a] (pull_request) Successful in 8s
QRun-IO/ci-policy: ci / head-profile (pull_request) Skipped
QRun-IO/ci-policy: ci / repository-policy (pull_request) Skipped
QRun-IO/ci-policy: ci / application-template-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-core-2-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-6 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-6-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-7 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-7-head (pull_request) Skipped
QRun-IO/ci-policy: ci / node-8 (pull_request) Skipped
QRun-IO/ci-policy: ci / original-voyage (pull_request) Skipped
QRun-IO/ci-policy: ci / original-business (pull_request) Skipped
QRun-IO/ci-policy: ci / original-mcp (pull_request) Skipped
QRun-IO/ci-policy: ci / original-cli (pull_request) Skipped
QRun-IO/ci-policy: ci / not-enrolled (pull_request) Skipped
QRun-IO/ci-policy: ci / ci-result (pull_request) Successful in 6s
build / maven (push) Successful in 7m48s
QRun-IO/ci-policy: native / native-result (pull_request) Successful in 6s
QRun-IO/ci-policy: ci / gradle-1 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-docker-3 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-docker-3-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-docker-4 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-frontend-browser-5 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-9 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-10 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-playwright-11 (pull_request) Skipped
QRun-IO/ci-policy: ci / repository-policy-12 (pull_request) Skipped
QRun-IO/ci-policy: ci / source-config-13 (pull_request) Skipped
QRun-IO/ci-policy: ci / source-config-14 (pull_request) Skipped
QRun-IO/ci-policy: ci / android-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / shared-pipeline (pull_request) Skipped
maven / build (push) Successful in 7m48s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 14:12:44 +00:00
james.maes 31536a2472 Merge pull request 'ci: use shared ci-workflows Maven workflow' (#90) from ci/ci-workflows into develop
QRun-IO/ci-policy: native / fork-deny (push) Skipped
QRun-IO/ci-policy: native / dotnet-0 (push) Skipped
QRun-IO/ci-policy: ci / head-profile (push) Skipped
QRun-IO/ci-policy: ci / repository-policy (push) Skipped
QRun-IO/ci-policy: ci / java-core-2-head (push) Skipped
QRun-IO/ci-policy: ci / java-docker-3 (push) Skipped
QRun-IO/ci-policy: ci / java-docker-4 (push) Skipped
QRun-IO/ci-policy: ci / java-frontend-browser-5 (push) Skipped
QRun-IO/ci-policy: ci / java-maven-7-head (push) Skipped
QRun-IO/ci-policy: ci / node-8 (push) Skipped
QRun-IO/ci-policy: ci / node-9 (push) Skipped
QRun-IO/ci-policy: ci / node-10 (push) Skipped
QRun-IO/ci-policy: ci / node-playwright-11 (push) Skipped
QRun-IO/ci-policy: ci / repository-policy-12 (push) Skipped
QRun-IO/ci-policy: ci / source-config-13 (push) Skipped
QRun-IO/ci-policy: ci / source-config-14 (push) Skipped
QRun-IO/ci-policy: ci / original-business (push) Skipped
QRun-IO/ci-policy: ci / original-voyage (push) Skipped
QRun-IO/ci-policy: ci / original-cli (push) Skipped
QRun-IO/ci-policy: native / native-result (push) Successful in 4s
QRun-IO/ci-policy: ci / ci-result (push) Successful in 6s
build / maven (push) Successful in 7m24s
QRun-IO/ci-policy: ci / fork-guard (push) Skipped
QRun-IO/ci-policy: ci / Scoped workflow [workflow d20a578c7d818bc7ca32a2ac2c675da4e4f27385] (push) Successful in 6s
QRun-IO/ci-policy: ci / application-template-0 (push) Skipped
QRun-IO/ci-policy: ci / gradle-1 (push) Skipped
QRun-IO/ci-policy: ci / java-docker-3-head (push) Skipped
QRun-IO/ci-policy: ci / java-maven-6 (push) Skipped
QRun-IO/ci-policy: ci / java-maven-6-head (push) Skipped
QRun-IO/ci-policy: ci / java-maven-7 (push) Skipped
QRun-IO/ci-policy: ci / android-0 (push) Skipped
QRun-IO/ci-policy: ci / original-mcp (push) Skipped
QRun-IO/ci-policy: ci / not-enrolled (push) Skipped
QRun-IO/ci-policy: ci / shared-pipeline (push) Skipped
maven / build (push) Successful in 7m24s
2026-11-05 23:17:40 +00:00
CI 1f39169f46 ci: rerun shared workflow
QRun-IO/ci-policy: ci / fork-guard (pull_request) Skipped
QRun-IO/ci-policy: native / fork-deny (pull_request) Skipped
QRun-IO/ci-policy: native / dotnet-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / Scoped workflow [workflow 1b3648d9421543350067e95e54959dfb471b26d5] (pull_request) Failing after 3s
QRun-IO/ci-policy: ci / head-profile (pull_request) Skipped
QRun-IO/ci-policy: ci / repository-policy (pull_request) Skipped
QRun-IO/ci-policy: ci / application-template-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-core-2-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-6 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-6-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-7 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-7-head (pull_request) Skipped
QRun-IO/ci-policy: ci / node-8 (pull_request) Skipped
QRun-IO/ci-policy: native / native-result (pull_request) Successful in 7s
QRun-IO/ci-policy: ci / original-business (pull_request) Skipped
QRun-IO/ci-policy: ci / original-mcp (pull_request) Skipped
QRun-IO/ci-policy: ci / original-voyage (pull_request) Skipped
QRun-IO/ci-policy: ci / original-cli (pull_request) Skipped
QRun-IO/ci-policy: ci / not-enrolled (pull_request) Skipped
QRun-IO/ci-policy: ci / ci-result (pull_request) Failing after 1s
build / maven (push) Successful in 7m27s
QRun-IO/ci-policy: ci / gradle-1 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-docker-3 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-docker-3-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-docker-4 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-frontend-browser-5 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-9 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-10 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-playwright-11 (pull_request) Skipped
QRun-IO/ci-policy: ci / repository-policy-12 (pull_request) Skipped
QRun-IO/ci-policy: ci / source-config-13 (pull_request) Skipped
QRun-IO/ci-policy: ci / source-config-14 (pull_request) Skipped
QRun-IO/ci-policy: ci / android-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / shared-pipeline (pull_request) Skipped
maven / build (push) Successful in 7m27s
2026-11-05 16:26:16 -06:00
james.maesandClaude Opus 5.5 35bf7d7a46 ci: use shared ci-workflows Maven workflow
QRun-IO/ci-policy: ci / fork-guard (pull_request) Skipped
QRun-IO/ci-policy: native / fork-deny (pull_request) Skipped
QRun-IO/ci-policy: native / dotnet-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / Scoped workflow [workflow 1b3648d9421543350067e95e54959dfb471b26d5] (pull_request) Failing after 1s
QRun-IO/ci-policy: ci / head-profile (pull_request) Skipped
QRun-IO/ci-policy: ci / repository-policy (pull_request) Skipped
QRun-IO/ci-policy: ci / application-template-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-core-2-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-6 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-6-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-7 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-7-head (pull_request) Skipped
QRun-IO/ci-policy: ci / node-8 (pull_request) Skipped
QRun-IO/ci-policy: ci / original-business (pull_request) Skipped
QRun-IO/ci-policy: ci / original-mcp (pull_request) Skipped
QRun-IO/ci-policy: ci / original-voyage (pull_request) Skipped
QRun-IO/ci-policy: ci / original-cli (pull_request) Skipped
QRun-IO/ci-policy: ci / not-enrolled (pull_request) Skipped
QRun-IO/ci-policy: ci / ci-result (pull_request) Failing after 2s
build / maven (push) Failing after 2m54s
QRun-IO/ci-policy: native / native-result (pull_request) Failing after 1s
QRun-IO/ci-policy: ci / gradle-1 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-docker-3 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-docker-3-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-docker-4 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-frontend-browser-5 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-9 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-10 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-playwright-11 (pull_request) Skipped
QRun-IO/ci-policy: ci / repository-policy-12 (pull_request) Skipped
QRun-IO/ci-policy: ci / source-config-13 (pull_request) Skipped
QRun-IO/ci-policy: ci / source-config-14 (pull_request) Skipped
QRun-IO/ci-policy: ci / android-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / shared-pipeline (pull_request) Skipped
maven / build (push) Failing after 2m54s
Replace the platform-ci release callers with one caller of
KofTwentyTwo/ci-workflows maven.yaml (qqq-orb port).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 22:07:34 +00:00
forge-recovery e3aa05e3f9 ci: enroll shared Gitea lifecycle
qrun-release / postpublish (push) Successful in 5m18s
Shared Java Maven CI with Docker / verify (push) Successful in 8m16s
QRun-IO/ci-policy: ci / ci-result (push) Successful in 3s
QRun-IO/ci-policy: ci / head-profile (push) Skipped
QRun-IO/ci-policy: ci / java-docker-4 (push) Skipped
QRun-IO/ci-policy: ci / java-frontend-browser-5 (push) Skipped
QRun-IO/ci-policy: ci / node-8 (push) Skipped
QRun-IO/ci-policy: ci / node-9 (push) Skipped
QRun-IO/ci-policy: ci / node-10 (push) Skipped
QRun-IO/ci-policy: ci / node-playwright-11 (push) Skipped
QRun-IO/ci-policy: ci / repository-policy-12 (push) Skipped
QRun-IO/ci-policy: ci / source-config-13 (push) Skipped
QRun-IO/ci-policy: ci / source-config-14 (push) Skipped
QRun-IO/ci-policy: native / fork-deny (push) Skipped
QRun-IO/ci-policy: native / dotnet-0 (push) Skipped
Shared Java Maven CI with Docker / secrets (push) Successful in 19s
QRun-IO/ci-policy: Shared Java Maven CI with Docker / secrets (push) Successful in 22s
QRun-IO/ci-policy: ci / repository-policy (push) Skipped
QRun-IO/ci-policy: ci / java-core-2-head (push) Skipped
QRun-IO/ci-policy: ci / java-maven-7-head (push) Skipped
QRun-IO/ci-policy: native / native-result (push) Successful in 8s
QRun-IO/ci-policy: ci / java-docker-3 (push) Successful in 44m32s
Shared Java Maven CI with Docker / gate (push) Successful in 15s
qrun-release / release (push) Successful in 44m46s
Shared QRun source version / version (push) Successful in 5m18s
QRun-IO/ci-policy: Shared Java Maven CI with Docker / verify (push) Successful in 7m48s
QRun-IO/ci-policy: ci / fork-guard (push) Skipped
QRun-IO/ci-policy: ci / application-template-0 (push) Skipped
QRun-IO/ci-policy: ci / gradle-1 (push) Skipped
QRun-IO/ci-policy: ci / java-maven-6 (push) Skipped
QRun-IO/ci-policy: ci / java-maven-7 (push) Skipped
QRun-IO/ci-policy: ci / android-0 (push) Skipped
QRun-IO/ci-policy: ci / original-mcp (push) Skipped
QRun-IO/ci-policy: ci / not-enrolled (push) Skipped
QRun-IO/ci-policy: ci / java-docker-3-head (push) Skipped
QRun-IO/ci-policy: ci / java-maven-6-head (push) Skipped
QRun-IO/ci-policy: Shared Java Maven CI with Docker / gate (push) Successful in 20s
2026-11-02 22:20:37 +00:00
forge-recovery 2fc62b584e ci: enroll shared Gitea lifecycle
QRun-IO/ci-policy: ci / head-profile (push) Skipped
QRun-IO/ci-policy: ci / java-docker-4 (push) Skipped
QRun-IO/ci-policy: ci / java-frontend-browser-5 (push) Skipped
QRun-IO/ci-policy: ci / node-8 (push) Skipped
QRun-IO/ci-policy: ci / node-9 (push) Skipped
QRun-IO/ci-policy: ci / node-10 (push) Skipped
QRun-IO/ci-policy: ci / node-playwright-11 (push) Skipped
QRun-IO/ci-policy: ci / repository-policy-12 (push) Skipped
QRun-IO/ci-policy: ci / source-config-13 (push) Skipped
QRun-IO/ci-policy: ci / source-config-14 (push) Skipped
QRun-IO/ci-policy: native / fork-deny (push) Skipped
QRun-IO/ci-policy: native / dotnet-0 (push) Skipped
QRun-IO/ci-policy: native / native-result (push) Successful in 9s
QRun-IO/ci-policy: Shared Java Maven CI with Docker / secrets (push) Successful in 27s
QRun-IO/ci-policy: ci / repository-policy (push) Skipped
QRun-IO/ci-policy: ci / java-core-2-head (push) Skipped
QRun-IO/ci-policy: ci / java-maven-7-head (push) Skipped
QRun-IO/ci-policy: ci / java-docker-3 (push) Successful in 21m52s
QRun-IO/ci-policy: ci / ci-result (push) Successful in 6s
QRun-IO/ci-policy: ci / fork-guard (push) Skipped
QRun-IO/ci-policy: ci / application-template-0 (push) Skipped
QRun-IO/ci-policy: ci / gradle-1 (push) Skipped
QRun-IO/ci-policy: ci / java-maven-6 (push) Skipped
QRun-IO/ci-policy: ci / java-maven-7 (push) Skipped
QRun-IO/ci-policy: ci / android-0 (push) Skipped
QRun-IO/ci-policy: ci / original-mcp (push) Skipped
QRun-IO/ci-policy: ci / not-enrolled (push) Skipped
QRun-IO/ci-policy: ci / java-docker-3-head (push) Skipped
QRun-IO/ci-policy: ci / java-maven-6-head (push) Skipped
QRun-IO/ci-policy: Shared Java Maven CI with Docker / verify (push) Successful in 8m11s
QRun-IO/ci-policy: Shared Java Maven CI with Docker / gate (push) Successful in 15s
2026-11-02 21:33:51 +00:00
forge-recoveryandCodex 32644c0d8f ci: enroll shared Gitea release-candidate lifecycle
QRun-IO/ci-policy: ci / fork-guard (pull_request) Skipped
QRun-IO/ci-policy: ci / head-profile (pull_request) Skipped
QRun-IO/ci-policy: ci / application-template-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-6 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-8 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-7 (pull_request) Skipped
QRun-IO/ci-policy: ci / not-enrolled (pull_request) Skipped
QRun-IO/ci-policy: native / fork-deny (pull_request) Skipped
QRun-IO/ci-policy: native / dotnet-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / repository-policy (pull_request) Skipped
QRun-IO/ci-policy: ci / java-core-2-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-6-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-7-head (pull_request) Skipped
QRun-IO/ci-policy: ci / ci-result (pull_request) Successful in 6s
Release candidate / release-rc (pull_request) Skipped
QRun-IO/ci-policy: ci / java-docker-4 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-frontend-browser-5 (pull_request) Skipped
QRun-IO/ci-policy: ci / gradle-1 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-9 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-10 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-playwright-11 (pull_request) Skipped
QRun-IO/ci-policy: ci / repository-policy-12 (pull_request) Skipped
QRun-IO/ci-policy: ci / android-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / source-config-13 (pull_request) Skipped
QRun-IO/ci-policy: ci / source-config-14 (pull_request) Skipped
QRun-IO/ci-policy: native / native-result (pull_request) Successful in 6s
QRun-IO/ci-policy: Shared Java Maven CI with Docker / secrets (pull_request) Successful in 16s
QRun-IO/ci-policy: ci / java-docker-3-head (pull_request) Skipped
QRun-IO/ci-policy: Shared Java Maven CI with Docker / verify (pull_request) Successful in 7m0s
QRun-IO/ci-policy: Shared Java Maven CI with Docker / gate (pull_request) Successful in 23s
QRun-IO/ci-policy: ci / java-docker-3 (pull_request) Successful in 1h7m45s
Co-Authored-By: Codex <noreply@openai.com>
2026-11-02 20:18:51 +00:00
219a028162 ci: add the isolated postpublish job to the QRun release caller
QRun-IO/ci-policy: ci / fork-guard (pull_request) Skipped
QRun-IO/ci-policy: ci / head-profile (pull_request) Skipped
QRun-IO/ci-policy: ci / application-template-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-6 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-7 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-8 (pull_request) Skipped
QRun-IO/ci-policy: ci / not-enrolled (pull_request) Skipped
QRun-IO/ci-policy: native / fork-deny (pull_request) Skipped
QRun-IO/ci-policy: native / dotnet-0 (pull_request) Skipped
Shared Java Maven CI with Docker / secrets (push) Successful in 15s
QRun-IO/ci-policy: ci / repository-policy (pull_request) Skipped
QRun-IO/ci-policy: ci / java-core-2-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-6-head (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-7-head (pull_request) Skipped
Shared Java Maven CI with Docker / verify (push) Canceled after 0s
qrun-release / postpublish (push) Canceled after 0s
QRun-IO/ci-policy: ci / ci-result (pull_request) Successful in 5s
Release candidate / release-rc (pull_request) Skipped
QRun-IO/ci-policy: ci / gradle-1 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-docker-4 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-frontend-browser-5 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-9 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-10 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-playwright-11 (pull_request) Skipped
QRun-IO/ci-policy: ci / repository-policy-12 (pull_request) Skipped
QRun-IO/ci-policy: ci / source-config-13 (pull_request) Skipped
QRun-IO/ci-policy: ci / source-config-14 (pull_request) Skipped
QRun-IO/ci-policy: Shared Java Maven CI with Docker / secrets (pull_request) Successful in 15s
QRun-IO/ci-policy: ci / java-docker-3-head (pull_request) Skipped
QRun-IO/ci-policy: native / native-result (pull_request) Successful in 7s
Shared Java Maven CI with Docker / gate (push) Canceled after 0s
qrun-release / release (push) Canceled after 2h31m26s
QRun-IO/ci-policy: Shared Java Maven CI with Docker / verify (pull_request) Successful in 8m6s
QRun-IO/ci-policy: Shared Java Maven CI with Docker / gate (pull_request) Successful in 10s
QRun-IO/ci-policy: ci / java-docker-3 (pull_request) Successful in 3h8m5s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex <noreply@openai.com>
2026-11-02 15:52:03 +00:00
8627c5d144 ci: move the QRun release caller to the thin v2 contract
Shared Java Maven CI with Docker / secrets (push) Successful in 24s
QRun-IO/ci-policy: ci / fork-guard (pull_request) Skipped
QRun-IO/ci-policy: ci / application-template-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-frontend-browser-3 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-6 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-5 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-playwright-8 (pull_request) Skipped
QRun-IO/ci-policy: ci / source-config-9 (pull_request) Skipped
QRun-IO/ci-policy: ci / not-enrolled (pull_request) Skipped
QRun-IO/ci-policy: native / fork-deny (pull_request) Skipped
QRun-IO/ci-policy: native / dotnet-0 (pull_request) Skipped
QRun-IO/ci-policy: ci / ci-result (pull_request) Failing after 4s
QRun-IO/ci-policy: ci / java-docker-2 (pull_request) Canceled after 29m21s
Shared Java Maven CI with Docker / verify (push) Canceled after 0s
QRun-IO/ci-policy: ci / gradle-1 (pull_request) Skipped
QRun-IO/ci-policy: ci / node-7 (pull_request) Skipped
QRun-IO/ci-policy: ci / java-maven-4 (pull_request) Skipped
QRun-IO/ci-policy: native / native-result (pull_request) Successful in 5s
QRun-IO/ci-policy: Shared Java Maven CI with Docker / secrets (pull_request) Successful in 22s
QRun-IO/ci-policy: Shared Java Maven CI with Docker / gate (pull_request) Canceled after 0s
QRun-IO/ci-policy: Shared Java Maven CI with Docker / verify (pull_request) Canceled after 0s
Shared Java Maven CI with Docker / gate (push) Canceled after 0s
qrun-release / release (push) Canceled after 29m33s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Co-Authored-By: Codex <noreply@openai.com>
2026-11-02 06:19:54 +00:00
james.maesandCodex bd50e1f2d9 ci: adopt managed orb 0.8 patch track (#81)
Co-authored-by: Codex <noreply@openai.com>
2026-10-21 15:27:44 -05:00
james.maesandCodex d42ccc178c ci: adopt shared orb 0.7.18 (#80)
Co-authored-by: Codex <noreply@openai.com>
2026-10-21 14:46:04 -05:00
james.maesandCodex 98c545ad4f ci: adopt shared orb 0.7.17 (#79)
Co-authored-by: Codex <noreply@openai.com>
2026-10-21 14:10:11 -05:00
james.maesandCodex 2335828b3f ci: centralize release branch verification and workflows (#77)
Co-authored-by: Codex <noreply@openai.com>
2026-10-21 12:42:55 -05:00
james.maesandCodex 3372dc9f68 ci: centralize QBit source scanning (#72)
Co-authored-by: Codex <noreply@openai.com>
2026-10-21 10:44:14 -05:00
CircleCI bb70407c06 Bump version to 1.1.0-RC.15 [skip ci] 2026-10-16 17:10:52 +00:00
james.maesandClaude Opus 5.5 cafa3d1ee4 Merge develop into release/1.1 for 1.1.0-RC.15 (#67 replicas set automatically)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 12:03:09 -05:00
CircleCI 22942fd774 Bump version to 1.1.0-RC.14 [skip ci] 2026-10-16 06:43:11 +00:00
james.maesandClaude Opus 5.5 634f0dd195 Merge develop into release/1.1 for 1.1.0-RC.14 (#66 pass the QInstance in primeConfig and DiagnosticEventRecorder)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 01:35:16 -05:00
CircleCI d56cad2373 Bump version to 1.1.0-RC.13 [skip ci] 2026-10-15 21:34:38 +00:00
james.maesandClaude Opus 5.5 3ca35ddc51 Merge develop into release/1.1 for 1.1.0-RC.13 (#63 UI API 1.6.0 extension, QQQ RC.15)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 16:25:57 -05:00
james.maes a1ca3121e3 Bump version to 1.1.0-RC.12 [skip ci] 2026-10-15 14:33:56 -05:00
james.maes 6028a66ece Bump version to 1.1.0-RC.11 [skip ci] 2026-10-15 14:21:14 -05:00
james.maesandClaude Opus 5.5 ca8d776845 Merge develop into release/1.1 for 1.1.0-RC.11 (cluster caches, QQQ RC.14)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 14:17:06 -05:00
CircleCI 2e2501df31 Bump version to 1.1.0-RC.11 [skip ci] 2026-10-15 12:57:27 +00:00
github-actions[bot] eccffec4b9 Merge develop into release/1.1 for the next 1.1.0 RC 2026-10-15 12:52:38 +00:00
CircleCI ff8dba8cbb Bump version to 1.1.0-RC.10 [skip ci] 2026-10-15 03:22:02 +00:00
james.maesandClaude Opus 5.5 6e13c1505d Merge develop into release/1.1 for 1.1.0-RC.10 (#59 help bundle, #57 health, #60 bundle version)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 22:13:04 -05:00
CircleCI 035697f2cf Bump version to 1.1.0-RC.9 [skip ci] 2026-10-14 22:35:38 +00:00
james.maesandClaude Opus 5.5 4fd4a9423f Merge develop into release/1.1 for 1.1.0-RC.9 (#58 setup card, seeds, help)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 17:27:14 -05:00
CircleCI d8efbee58d Bump version to 1.1.0-RC.8 [skip ci] 2026-10-14 19:03:33 +00:00
james.maesandClaude Opus 5.5 12d85c9923 Merge develop into release/1.1 for 1.1.0-RC.8 (#40 scores/highlights, #56 suggest)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 13:54:50 -05:00
CircleCI 5265d203a9 Bump version to 1.1.0-RC.7 [skip ci] 2026-10-14 16:37:04 +00:00
james.maesandClaude Opus 5.5 3f5dfa6d67 Merge develop into release/1.1 for 1.1.0-RC.7 (#55 never index PII/PHI/secure fields)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 11:26:19 -05:00
CircleCI 20aab6aae5 Bump version to 1.1.0-RC.6 [skip ci] 2026-10-14 15:58:42 +00:00
james.maesandClaude Opus 5.5 1cd32841fd Merge develop into release/1.1 for 1.1.0-RC.6 (#54 realTimeErrorCount)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 10:51:21 -05:00
CircleCI 532a17c889 Bump version to 1.1.0-RC.5 [skip ci] 2026-10-14 12:31:17 +00:00
james.maesandClaude Opus 5.5 6ed75ffd6d Merge develop into release/1.1 for 1.1.0-RC.5 (#51 QuickSearchStatus API on QQQ RC.6)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 07:23:17 -05:00
CircleCI ad20b350e6 Bump version to 1.1.0-RC.4 [skip ci] 2026-10-12 21:18:41 +00:00
james.maesandClaude Opus 5.5 1298af3c57 Merge develop into release/1.1 for 1.1.0-RC.4
Data-driven Quick Search configuration (#47).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 16:14:17 -05:00
james.maesandClaude Opus 5.5 a8c0210643 ci: fix the GA tag filter YAML (no brackets in the flow sequence) [skip ci]
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 16:01:58 -05:00
james.maesandClaude Opus 5.5 9343143b33 ci: publish only GA tags on this release branch [skip ci]
RC tags no longer trigger a publish (/^v[0-9]+\.[0-9]+\.[0-9]+$/ only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 15:57:03 -05:00
CircleCI 6d656369cf Bump version to 1.1.0-RC.3 [skip ci] 2026-10-12 20:34:00 +00:00
james.maesandClaude Opus 5.5 5c39fbb69e Merge develop into release/1.1 for 1.1.0-RC.3
Brings the record developer panel provider (#41) and the snake_case
table, PVS and permission names (#42).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 15:29:29 -05:00
CircleCI bd110b0814 Bump version to 1.1.0-RC.2 [skip ci] 2026-10-12 12:46:46 +00:00
james.maesandClaude Opus 5.5 16ee516447 Merge develop into release/1.1 for 1.1.0-RC.2
Brings search admin tooling (#35/#39), stuck REBUILDING recovery (#24/#25),
cron zone validation (#29/#31) and docs fixes to the 1.1 release line.
Owner approval 2026-10-12: "all approved and releases approved".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 07:42:40 -05:00
CircleCI 60e977cf95 Bump version to 1.1.0-RC.1 [skip ci] 2026-10-11 18:55:55 +00:00
14 changed files with 465 additions and 36 deletions

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
version: 2.1
setup: true
orbs:
qqq-orb: kingsrook/qqq-orb@0.7.12
qqq-orb: kingsrook/qqq-orb@0.8
workflows:
setup:
jobs:
- qqq-orb/generate_pipeline:
orb_version: 0.7.12
orb_version: '0.8'
filters:
branches:
ignore: automation/qbit-rc-pending
+7
View File
@@ -0,0 +1,7 @@
name: build
on:
push:
jobs:
maven:
uses: self:KofTwentyTwo/ci-workflows/.gitea/workflows/maven.yaml@v1
secrets: inherit
+1 -1
View File
@@ -1,5 +1,5 @@
profile: qbit
orb_version: 0.7.12
orb_version: '0.8'
default_branch: develop
java_version: '21'
browsers: true
+1
View File
@@ -11,6 +11,7 @@ All notable changes to this project are documented here. The format follows Keep
Requires QQQ 4.1.0-RC.15 or later (central health checks, help bundles, the spec-managed UI API extension contract, and `ClusterCaches` for multi-node deployments).
### Fixed
- Table standard: every `quick_search_*` table now has `createDate` and `modifyDate` (`DATE_TIME`, not editable, `CREATE_DATE` and `MODIFY_DATE` behaviors). `quick_search_config_tombstone`, `quick_search_diagnostic_event` and `quick_search_validation_run` gain `modifyDate`; the other five declared the fields but never filled them, because they had no behaviors. All writes go through QQQ's own insert and update actions, so no writer changed. Run the additive DDL in `docs/MIGRATION-1.1.md` ("Standard dates on every table") before deploying; it is safe while the previous release runs.
- Single-node clusters: the Quick Search index no longer asks for a replica it cannot place, so a one-node OpenSearch stays green instead of yellow and `quick_search.opensearch` is no longer DEGRADED. New `indexReplicas` (default null: automatic, `min(maxAutoReplicas, data nodes - 1)`) and `maxAutoReplicas` (default 1) config; zero config gives 0 replicas on one node and 1 on larger clusters. The target is set on every new physical index and reconciled on existing ones at startup with `PUT /<index>/_settings` when it differs (idempotent, logged; a failure is logged and reported, never blocks startup; indexes with `auto_expand_replicas` and OpenSearch Serverless are left alone). The status snapshot and the `quick_search.opensearch` health details gain `unassignedReplicaShards`, `targetReplicas` and `replicaSettingsFailed`; yellow on a single node with every primary active (only replicas unassigned) is reported UP with a note. Yellow with an unassigned primary, or on a multi-node cluster, stays DEGRADED; red stays DOWN.
- Priming config records at startup, and recording diagnostic events, build their system session with the instance, so it has its all-access keys. Startup logged "QInstance was not supplied when creating a QSystemUserSession" once per node.
- Multi-node deployments: a Quick Search config change (an index row, its fields or the settings row, from the admin UI or a config process) now clears the cached config on every node, not only the node that made the change. The runtime's config cache (the config store snapshot and settings, and the per-table enabled flags) is registered with QQQ `ClusterCaches` as `qbit-quick-search.config`, and `QuickSearchRuntime.invalidateConfig()` publishes a cluster invalidation. The 30 s and 60 s TTLs remain as the safety net. `QuickSearchFieldRules`' warn-once table set is registered as node-local. `QuickSearchClusterCachesTest` audits the package for unregistered static caches and covers a remote invalidation.
+2 -2
View File
@@ -255,8 +255,8 @@ The panel's status is Indexed, Stale, Not indexed, Disabled (the table is turned
- `quick_search_settings`: one row: `indexingPaused` (with `pausedAt`, `pausedBy`, `pauseReason`) and the last self-priming report (`lastPrimedAt`, `lastPrimingSummary`).
- `quick_search_config_tombstone`: tables (blank `fieldName`) and fields an admin removed; priming never re-adds them.
- `quick_search_index_run`: `runType` (`BASEPULL`, `RECONCILE`, `FULL_REINDEX`), `status` (`RUNNING`, `COMPLETED`, `FAILED`, `CANCELLED`), counts, `errorMessage`, `cancelRequested`, `cancelRequestedBy`.
- `quick_search_diagnostic_event` (with `enableDiagnosticTools`): `eventType` (`SEARCH_FAILED`, `TOOL_RUN`, `REINDEX`, `RATE_LIMITED`), `source`, `outcome`, `userName`, `tableNames`, `searchTerm` (tool runs only), `durationMillis`, `errorClass`, `errorMessage` (text), `detail` (text), `hostName`, `createDate`. Purged after `runHistoryRetentionDays`.
- `quick_search_validation_run` (with `enableDiagnosticTools`): `status` (`PASS`, `WARN`, `FAIL`), `triggerType` (`MANUAL`, `SCHEDULED`), `userName`, `tableNames`, `sampleSize`, `tablesChecked`, `failCount`, `warnCount`, `summary`, `reportHtml` (HTML), `reportJson` (text), `startTime`, `endTime`, `createDate`. Purged after `runHistoryRetentionDays`.
- `quick_search_diagnostic_event` (with `enableDiagnosticTools`): `eventType` (`SEARCH_FAILED`, `TOOL_RUN`, `REINDEX`, `RATE_LIMITED`), `source`, `outcome`, `userName`, `tableNames`, `searchTerm` (tool runs only), `durationMillis`, `errorClass`, `errorMessage` (text), `detail` (text), `hostName`, `createDate`, `modifyDate`. Purged after `runHistoryRetentionDays`.
- `quick_search_validation_run` (with `enableDiagnosticTools`): `status` (`PASS`, `WARN`, `FAIL`), `triggerType` (`MANUAL`, `SCHEDULED`), `userName`, `tableNames`, `sampleSize`, `tablesChecked`, `failCount`, `warnCount`, `summary`, `reportHtml` (HTML), `reportJson` (text), `startTime`, `endTime`, `createDate`, `modifyDate`. Purged after `runHistoryRetentionDays`.
- `quick_search_failed_event`: real-time events that could not be applied; `status` `PENDING` or `EXHAUSTED` after 10 attempts. Deletes made while a full reindex of all tables runs are also recorded here with status `AWAITING_REINDEX`: the reindex applies them to the new index after the alias swap (basepull does not replay them). While a table is `REBUILDING`, drift detection is suspended for it. Only one full reindex runs at a time: starting one while another is running fails. A full reindex shows it is running through its `FULL_REINDEX` run records, which stay `RUNNING` with `modifyDate` refreshed after every page. If it is killed mid-run (pod restart, OOM, deploy), recovery is automatic once its run records have shown no sign of life for `fullReindexStaleMinutes` (30 by default): the next basepull, or the next full reindex, marks those run records `FAILED`, returns the tables to `ACTIVE` with `lastBasepullTime` moved back to the run's start, and turns the `AWAITING_REINDEX` rows `PENDING` so basepull replays the deletes. No data is lost. A run that was only slow and is judged stopped notices before its alias swap and fails without swapping, or, after its swap, stops applying its captured deletes; basepull skips a replayed delete whose record exists again.
### Starter defaults and empty-state help
+30
View File
@@ -238,3 +238,33 @@ The qbit now sets bundle help (`help/quick-search.yaml`) on the Quick Search Adm
2. Grant `quick_search_index_field`, `quick_search_settings` and `quick_search_config_tombstone` permissions (read, and edit where admins should change them) next to the existing Quick Search grants.
3. Upgrade and start. The Search Diagnostics widget should not say the searchable tables come from code, and shows the first priming's summary.
4. Optionally move code-declared search config into the records and delete the annotations: the rows stay and are now the owner's.
## Standard dates on every table (after 1.1.0-RC.16)
Every `quick_search_*` table now has a `createDate` and a `modifyDate`: `DATE_TIME`, not editable, set by QQQ's `CREATE_DATE` and `MODIFY_DATE` behaviors. The QBit writes all of its tables with QQQ's own insert and update actions (no raw SQL), so the behaviors set them on every write; nothing else about the tables, the index documents or how a document is identified in the index changes.
- `quick_search_config_tombstone`, `quick_search_diagnostic_event` and `quick_search_validation_run` gain `modifyDate` (they had `createDate` only). For the tombstone and the two logs it equals `createDate` and never moves, since the QBit only inserts and deletes their rows.
- The other five tables already declared both fields, but without the behaviors, so the QBit never filled them. They are filled now. On `quick_search_index_run`, `modifyDate` stays the full reindex heartbeat (the heartbeat writes it explicitly); any other update of a run row, such as completing it, now moves it too, which only makes the run look more recently alive.
- The Search Diagnostics "last error" time reads `quick_search_index.modifyDate`, which now moves with every update of the row (including document counts), so it is the time of the last update of an index that has an error message, not strictly of the error.
### DDL (run before deploying)
A host that wrote its own DDL must have the columns before this release starts, because the QBit now writes them. Run `HOST-DDL-postgresql.sql`'s equivalent, one block per table (safe to run while the previous release is running, and safe to repeat):
```sql
-- repeat for quick_search_index, quick_search_index_field, quick_search_index_run, quick_search_failed_event,
-- quick_search_settings, quick_search_config_tombstone, quick_search_diagnostic_event, quick_search_validation_run
DO $$
BEGIN
IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_schema = current_schema() AND table_name = 'quick_search_config_tombstone' AND column_name = 'create_date') THEN
ALTER TABLE quick_search_config_tombstone ADD COLUMN create_date TIMESTAMP WITHOUT TIME ZONE DEFAULT now();
END IF;
IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_schema = current_schema() AND table_name = 'quick_search_config_tombstone' AND column_name = 'modify_date') THEN
ALTER TABLE quick_search_config_tombstone ADD COLUMN modify_date TIMESTAMP WITHOUT TIME ZONE DEFAULT now();
UPDATE quick_search_config_tombstone SET modify_date = create_date WHERE create_date IS NOT NULL;
END IF;
END
$$;
```
The columns are nullable with a default of `now()`, which PostgreSQL 11 and later adds without rewriting the table (the previous release, which does not write them, gets the current time from the default). Existing rows take their own creation time where the table has one (`create_date` for the new `modify_date`; `start_time` for a newly added `create_date` on `quick_search_index_run` and `quick_search_validation_run`), otherwise the time of the migration. The one-time `UPDATE` touches every row, so on a very large log table run it in id ranges. Names are the snake_case a host gets when it derives backend names from field names; without that, the columns are `"createDate"` and `"modifyDate"`. MySQL: `DATETIME DEFAULT CURRENT_TIMESTAMP`, and drop the `DO` wrapper. No setting, customizer or deployment order is needed beyond running the DDL first.
+4 -15
View File
@@ -18,9 +18,10 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<properties>
<qqq.version>4.1.0-RC.26</qqq.version> <!-- feeds qbit-build-parent's qqq-bom-pom import -->
<qbit.guardrails.enforce>true</qbit.guardrails.enforce>
<qbit.guardrails.strictUiApiRoutes>true</qbit.guardrails.strictUiApiRoutes>
<revision>1.1.0-SNAPSHOT</revision>
<revision>1.1.0-RC.16</revision>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<opensearch.version>3.10.0</opensearch.version>
@@ -32,7 +33,7 @@
<parent>
<groupId>com.kingsrook</groupId>
<artifactId>qbit-build-parent</artifactId>
<version>2.1.0</version>
<version>2.2.1</version>
</parent>
<groupId>com.kingsrook.qbits</groupId>
@@ -283,7 +284,7 @@
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<qqq.snapshot.version>4.1.0-RC.15</qqq.snapshot.version>
<qqq.snapshot.version>4.1.0-RC.26</qqq.snapshot.version>
</properties>
<dependencyManagement>
<dependencies>
@@ -296,18 +297,6 @@
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
<repository>
<id>sonatype-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
</project>
@@ -29,6 +29,7 @@ import com.kingsrook.qqq.backend.core.model.metadata.audits.AuditLevel;
import com.kingsrook.qqq.backend.core.model.metadata.audits.QAuditRules;
import com.kingsrook.qqq.backend.core.model.metadata.code.QCodeReference;
import com.kingsrook.qqq.backend.core.model.metadata.dashboard.QWidgetMetaData;
import com.kingsrook.qqq.backend.core.model.metadata.fields.DynamicDefaultValueBehavior;
import com.kingsrook.qqq.backend.core.model.metadata.fields.QFieldMetaData;
import com.kingsrook.qqq.backend.core.model.metadata.fields.QFieldType;
import com.kingsrook.qqq.backend.core.model.metadata.joins.JoinOn;
@@ -119,8 +120,8 @@ public class QuickSearchConfigMetaDataHelper
.withField(new QFieldMetaData("sortOrder", QFieldType.INTEGER))
.withField(new QFieldMetaData("source", QFieldType.STRING).withIsEditable(false).withPossibleValueSourceName(config.applyTablePrefix(CONFIG_SOURCE_PVS)))
.withField(new QFieldMetaData("ownerEdited", QFieldType.BOOLEAN).withLabel("Edited by Owner").withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.CREATE_DATE).withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.MODIFY_DATE).withIsEditable(false))
.withSection(new QFieldSection("identity", "Field", new QIcon("text_fields"), Tier.T1, List.of("id", "quickSearchIndexId", "fieldName", "weight", "role")))
.withSection(new QFieldSection("matching", "Matching", new QIcon("tune"), Tier.T2, List.of("analyzer", "includeInSnippet", "includeLabel", "sortOrder")))
.withSection(new QFieldSection("origin", "Origin", new QIcon("history"), Tier.T3, List.of("source", "ownerEdited", "createDate", "modifyDate"))));
@@ -155,8 +156,8 @@ public class QuickSearchConfigMetaDataHelper
.withField(new QFieldMetaData("lastPrimedAt", QFieldType.DATE_TIME).withLabel("Last Primed").withIsEditable(false))
.withField(new QFieldMetaData("lastPrimingSummary", QFieldType.TEXT).withLabel("Last Priming").withIsEditable(false))
.withField(new QFieldMetaData("lastPrimingNewTables", QFieldType.INTEGER).withLabel("Tables Added by Last Priming").withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.CREATE_DATE).withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.MODIFY_DATE).withIsEditable(false))
.withSection(new QFieldSection("pause", "Indexing", new QIcon("pause_circle"), Tier.T1, List.of("id", "indexingPaused", "pauseReason", "pausedAt", "pausedBy")))
.withSection(new QFieldSection("priming", "Self-priming", new QIcon("auto_mode"), Tier.T2, List.of("lastPrimedAt", "lastPrimingSummary", "lastPrimingNewTables")))
.withSection(new QFieldSection("dates", "Dates", new QIcon("calendar_today"), Tier.T3, List.of("createDate", "modifyDate"))));
@@ -188,7 +189,8 @@ public class QuickSearchConfigMetaDataHelper
.withField(new QFieldMetaData("fieldName", QFieldType.STRING).withLabel("Field (blank: whole table)").withIsEditable(false))
.withField(new QFieldMetaData("removedBy", QFieldType.STRING).withIsEditable(false))
.withField(new QFieldMetaData("reason", QFieldType.STRING).withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withLabel("Removed").withIsEditable(false)));
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.CREATE_DATE).withLabel("Removed").withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.MODIFY_DATE).withIsEditable(false)));
}
@@ -23,6 +23,7 @@ import com.kingsrook.qqq.backend.core.model.metadata.audits.AuditLevel;
import com.kingsrook.qqq.backend.core.model.metadata.audits.QAuditRules;
import com.kingsrook.qqq.backend.core.model.metadata.code.QCodeReference;
import com.kingsrook.qqq.backend.core.model.metadata.fields.AdornmentType;
import com.kingsrook.qqq.backend.core.model.metadata.fields.DynamicDefaultValueBehavior;
import com.kingsrook.qqq.backend.core.model.metadata.fields.FieldAdornment;
import com.kingsrook.qqq.backend.core.model.metadata.fields.QFieldMetaData;
import com.kingsrook.qqq.backend.core.model.metadata.fields.QFieldType;
@@ -103,8 +104,8 @@ public class QuickSearchTableMetaDataHelper
.withField(new QFieldMetaData("realTimeErrorCount", QFieldType.INTEGER).withIsEditable(false)
.withHelpContent(new QHelpContent("Real-time indexing failures since the last full reindex or basepull")))
.withField(new QFieldMetaData("status", QFieldType.STRING).withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.CREATE_DATE).withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.MODIFY_DATE).withIsEditable(false))
.withSection(new QFieldSection("identity", "Search Index", new QIcon("manage_search"), Tier.T1,
List.of("id", "tableName", "enabled", "status", "basepullIntervalMinutes", "basepullTimestampField")))
.withSection(new QFieldSection("fields", "Searchable Fields", new QIcon("text_fields"), Tier.T2, null)
@@ -153,8 +154,8 @@ public class QuickSearchTableMetaDataHelper
.withField(new QFieldMetaData("errorMessage", QFieldType.TEXT).withIsEditable(false))
.withField(new QFieldMetaData("cancelRequested", QFieldType.BOOLEAN).withIsEditable(false))
.withField(new QFieldMetaData("cancelRequestedBy", QFieldType.STRING).withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withLabel("Last Heartbeat").withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.CREATE_DATE).withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.MODIFY_DATE).withLabel("Last Heartbeat").withIsEditable(false))
.withSection(new QFieldSection("run", "Run", new QIcon("history"), Tier.T1, List.of("id", "quickSearchIndexId", "runType", "status", "startTime", "endTime")))
.withSection(new QFieldSection("counts", "Counts", new QIcon("functions"), Tier.T2, List.of("recordsProcessed", "recordsIndexed", "errorCount", "errorMessage")))
.withSection(new QFieldSection("cancel", "Cancel", new QIcon("cancel"), Tier.T2, List.of("cancelRequested", "cancelRequestedBy")))
@@ -193,8 +194,8 @@ public class QuickSearchTableMetaDataHelper
.withField(new QFieldMetaData("attempts", QFieldType.INTEGER).withIsEditable(false))
.withField(new QFieldMetaData("status", QFieldType.STRING).withIsEditable(false)
.withPossibleValueSourceName(config.applyTablePrefix(QuickSearchConfigMetaDataHelper.EVENT_STATUS_PVS)))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.CREATE_DATE).withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.MODIFY_DATE).withIsEditable(false))
.withSection(new QFieldSection("event", "Event", new QIcon("error_outline"), Tier.T1, List.of("id", "tableName", "recordId", "action", "status")))
.withSection(new QFieldSection("error", "Error and retries", new QIcon("replay"), Tier.T2, List.of("errorMessage", "attempts")))
.withSection(new QFieldSection("dates", "Dates", new QIcon("calendar_today"), Tier.T3, List.of("createDate", "modifyDate"))));
@@ -232,8 +233,9 @@ public class QuickSearchTableMetaDataHelper
.withField(new QFieldMetaData("errorMessage", QFieldType.TEXT).withIsEditable(false))
.withField(new QFieldMetaData("detail", QFieldType.TEXT).withIsEditable(false))
.withField(new QFieldMetaData("hostName", QFieldType.STRING).withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withIsEditable(false))
.withSection(new QFieldSection("identity", "Event", new QIcon("bug_report"), Tier.T1, List.of("id", "createDate", "eventType", "source", "outcome")))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.CREATE_DATE).withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.MODIFY_DATE).withIsEditable(false))
.withSection(new QFieldSection("identity", "Event", new QIcon("bug_report"), Tier.T1, List.of("id", "createDate", "modifyDate", "eventType", "source", "outcome")))
.withSection(new QFieldSection("request", "Request", new QIcon("search"), Tier.T2, List.of("userName", "tableNames", "searchTerm", "durationMillis", "hostName")))
.withSection(new QFieldSection("error", "Error and detail", new QIcon("error_outline"), Tier.T2, List.of("errorClass", "errorMessage", "detail"))));
}
@@ -273,9 +275,10 @@ public class QuickSearchTableMetaDataHelper
.withFieldAdornment(new FieldAdornment(AdornmentType.CODE_EDITOR).withValue(AdornmentType.CodeEditorValues.languageMode("json"))))
.withField(new QFieldMetaData("startTime", QFieldType.DATE_TIME).withIsEditable(false))
.withField(new QFieldMetaData("endTime", QFieldType.DATE_TIME).withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withIsEditable(false))
.withField(new QFieldMetaData("createDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.CREATE_DATE).withIsEditable(false))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME).withBehavior(DynamicDefaultValueBehavior.MODIFY_DATE).withIsEditable(false))
.withSection(new QFieldSection("identity", "Run", new QIcon("fact_check"), Tier.T1, List.of("id", "status", "summary", "triggerType", "startTime", "endTime")))
.withSection(new QFieldSection("scope", "Scope", new QIcon("table_chart"), Tier.T2, List.of("userName", "tableNames", "sampleSize", "tablesChecked", "failCount", "warnCount", "createDate")))
.withSection(new QFieldSection("scope", "Scope", new QIcon("table_chart"), Tier.T2, List.of("userName", "tableNames", "sampleSize", "tablesChecked", "failCount", "warnCount", "createDate", "modifyDate")))
.withSection(new QFieldSection("report", "Report", new QIcon("description"), Tier.T2, List.of("reportHtml")))
.withSection(new QFieldSection("data", "Report data (JSON)", new QIcon("data_object"), Tier.T3, List.of("reportJson"))));
}
@@ -45,6 +45,9 @@ public class QuickSearchConfigTombstone extends QRecordEntity
@QField()
private Instant createDate;
@QField()
private Instant modifyDate;
/*******************************************************************************
** Getter for id
@@ -224,4 +227,35 @@ public class QuickSearchConfigTombstone extends QRecordEntity
this.createDate = createDate;
return (this);
}
/*******************************************************************************
** Getter for modifyDate
*******************************************************************************/
public Instant getModifyDate()
{
return (this.modifyDate);
}
/*******************************************************************************
** Setter for modifyDate
*******************************************************************************/
public void setModifyDate(Instant modifyDate)
{
this.modifyDate = modifyDate;
}
/*******************************************************************************
** Fluent setter for modifyDate
*******************************************************************************/
public QuickSearchConfigTombstone withModifyDate(Instant modifyDate)
{
this.modifyDate = modifyDate;
return (this);
}
}
@@ -87,6 +87,9 @@ public class QuickSearchDiagnosticEvent extends QRecordEntity
@QField()
private Instant createDate;
@QField()
private Instant modifyDate;
/*******************************************************************************
@@ -509,4 +512,35 @@ public class QuickSearchDiagnosticEvent extends QRecordEntity
return (this);
}
/*******************************************************************************
** Getter for modifyDate
*******************************************************************************/
public Instant getModifyDate()
{
return (this.modifyDate);
}
/*******************************************************************************
** Setter for modifyDate
*******************************************************************************/
public void setModifyDate(Instant modifyDate)
{
this.modifyDate = modifyDate;
}
/*******************************************************************************
** Fluent setter for modifyDate
*******************************************************************************/
public QuickSearchDiagnosticEvent withModifyDate(Instant modifyDate)
{
this.modifyDate = modifyDate;
return (this);
}
}
@@ -89,6 +89,9 @@ public class QuickSearchValidationRun extends QRecordEntity
@QField()
private Instant createDate;
@QField()
private Instant modifyDate;
/*******************************************************************************
@@ -573,4 +576,35 @@ public class QuickSearchValidationRun extends QRecordEntity
return (this);
}
/*******************************************************************************
** Getter for modifyDate
*******************************************************************************/
public Instant getModifyDate()
{
return (this.modifyDate);
}
/*******************************************************************************
** Setter for modifyDate
*******************************************************************************/
public void setModifyDate(Instant modifyDate)
{
this.modifyDate = modifyDate;
}
/*******************************************************************************
** Fluent setter for modifyDate
*******************************************************************************/
public QuickSearchValidationRun withModifyDate(Instant modifyDate)
{
this.modifyDate = modifyDate;
return (this);
}
}
@@ -0,0 +1,292 @@
/*
* Copyright 2026 Kingsrook, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kingsrook.qbits.quicksearch;
import java.time.Instant;
import java.util.List;
import com.kingsrook.qbits.quicksearch.annotations.QuickSearchField;
import com.kingsrook.qbits.quicksearch.annotations.QuickSearchable;
import com.kingsrook.qqq.backend.core.actions.tables.InsertAction;
import com.kingsrook.qqq.backend.core.actions.tables.UpdateAction;
import com.kingsrook.qqq.backend.core.context.QContext;
import com.kingsrook.qqq.backend.core.exceptions.QException;
import com.kingsrook.qqq.backend.core.model.actions.tables.insert.InsertInput;
import com.kingsrook.qqq.backend.core.model.actions.tables.update.UpdateInput;
import com.kingsrook.qqq.backend.core.model.data.QRecord;
import com.kingsrook.qqq.backend.core.model.metadata.QAuthenticationType;
import com.kingsrook.qqq.backend.core.model.metadata.QBackendMetaData;
import com.kingsrook.qqq.backend.core.model.metadata.QInstance;
import com.kingsrook.qqq.backend.core.model.metadata.authentication.QAuthenticationMetaData;
import com.kingsrook.qqq.backend.core.model.metadata.fields.DynamicDefaultValueBehavior;
import com.kingsrook.qqq.backend.core.model.metadata.fields.QFieldMetaData;
import com.kingsrook.qqq.backend.core.model.metadata.fields.QFieldType;
import com.kingsrook.qqq.backend.core.model.metadata.tables.QTableMetaData;
import com.kingsrook.qqq.backend.core.model.session.QSession;
import com.kingsrook.qqq.backend.core.modules.backend.implementations.memory.MemoryBackendModule;
import com.kingsrook.qqq.backend.core.modules.backend.implementations.memory.MemoryRecordStore;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
/*******************************************************************************
** QQQ table standard: every table has a createDate and a modifyDate, typed
** DATE_TIME, not editable, maintained by the CREATE_DATE and MODIFY_DATE
** behaviors. The QBit writes all of its tables with QQQ's own insert and
** update actions (no raw SQL), so the behaviors are what sets the values;
** these tests walk every table the producer declares, so a table added later
** without the two dates fails here.
*******************************************************************************/
class QuickSearchTableStandardDatesTest
{
/*******************************************************************************
** A searchable entity for the produced instance.
*******************************************************************************/
@QuickSearchable(tableName = "person")
static class PersonEntity
{
@QuickSearchField(weight = 3)
private String name;
}
/*******************************************************************************
**
*******************************************************************************/
@BeforeEach
void setUp()
{
MemoryRecordStore.getInstance().reset();
}
/*******************************************************************************
**
*******************************************************************************/
@AfterEach
void tearDown()
{
QContext.clear();
}
/*******************************************************************************
** Every table the producer declares has both dates, as the standard says.
*******************************************************************************/
@Test
void everyTableHasTheTwoStandardDates()
{
for(QTableMetaData table : quickSearchTables(producedInstance()))
{
QFieldMetaData createDate = table.getFields().get("createDate");
QFieldMetaData modifyDate = table.getFields().get("modifyDate");
assertThat(createDate).as(table.getName() + " createDate").isNotNull();
assertThat(createDate.getType()).as(table.getName() + " createDate type").isEqualTo(QFieldType.DATE_TIME);
assertThat(createDate.getIsEditable()).as(table.getName() + " createDate editable").isFalse();
assertThat(createDate.getBehaviors()).as(table.getName() + " createDate behaviors").contains(DynamicDefaultValueBehavior.CREATE_DATE);
assertThat(modifyDate).as(table.getName() + " modifyDate").isNotNull();
assertThat(modifyDate.getType()).as(table.getName() + " modifyDate type").isEqualTo(QFieldType.DATE_TIME);
assertThat(modifyDate.getIsEditable()).as(table.getName() + " modifyDate editable").isFalse();
assertThat(modifyDate.getBehaviors()).as(table.getName() + " modifyDate behaviors").contains(DynamicDefaultValueBehavior.MODIFY_DATE);
}
}
/*******************************************************************************
** The entities that stand for the tables carry both dates too, so a row read
** back as an entity shows them.
*******************************************************************************/
@Test
void everyEntityHasTheTwoStandardDates()
{
List<Class<?>> entities = List.of(
com.kingsrook.qbits.quicksearch.model.QuickSearchIndex.class,
com.kingsrook.qbits.quicksearch.model.QuickSearchIndexField.class,
com.kingsrook.qbits.quicksearch.model.QuickSearchIndexRun.class,
com.kingsrook.qbits.quicksearch.model.QuickSearchSettings.class,
com.kingsrook.qbits.quicksearch.model.QuickSearchConfigTombstone.class,
com.kingsrook.qbits.quicksearch.model.QuickSearchFailedEvent.class,
com.kingsrook.qbits.quicksearch.model.QuickSearchDiagnosticEvent.class,
com.kingsrook.qbits.quicksearch.model.QuickSearchValidationRun.class);
assertThat(entities).hasSize(quickSearchTables(producedInstance()).size());
for(Class<?> entity : entities)
{
assertThat(entity.getDeclaredFields()).extracting(java.lang.reflect.Field::getName)
.as(entity.getSimpleName()).contains("createDate", "modifyDate");
}
}
/*******************************************************************************
** Inserting a row, with QQQ's own insert action (the only way the QBit writes
** these tables), sets both dates; an update moves modifyDate and leaves
** createDate alone.
*******************************************************************************/
@Test
void insertSetsBothDatesAndUpdateMovesModifyDateOnly() throws Exception
{
QInstance qInstance = producedInstance();
for(QTableMetaData table : quickSearchTables(qInstance))
{
QRecord inserted = new InsertAction().execute(new InsertInput(table.getName()).withRecord(minimalRecord(table))).getRecords().get(0);
assertThat(inserted.getErrors()).as(table.getName() + " insert errors").isEmpty();
Instant createDate = inserted.getValueInstant("createDate");
Instant modifyDate = inserted.getValueInstant("modifyDate");
assertThat(createDate).as(table.getName() + " createDate after insert").isNotNull();
assertThat(modifyDate).as(table.getName() + " modifyDate after insert").isNotNull();
String changeField = changeableField(table);
if(changeField == null)
{
continue;
}
Thread.sleep(20);
QRecord update = new QRecord().withValue(table.getPrimaryKeyField(), inserted.getValue(table.getPrimaryKeyField())).withValue(changeField, changedValue(table.getField(changeField)));
QRecord updated = new UpdateAction().execute(new UpdateInput(table.getName()).withRecord(update)).getRecords().get(0);
assertThat(updated.getErrors()).as(table.getName() + " update errors").isEmpty();
assertThat(updated.getValueInstant("modifyDate")).as(table.getName() + " modifyDate after update").isAfter(modifyDate);
assertThat(updated.getValueInstant("createDate") == null || updated.getValueInstant("createDate").equals(createDate))
.as(table.getName() + " createDate after update").isTrue();
}
}
/*******************************************************************************
** The full reindex heartbeat writes a bare modifyDate: that still works, and
** the value is not older than what was there.
*******************************************************************************/
@Test
void heartbeatWriteOfModifyDateOnlyStillMovesModifyDate() throws Exception
{
QInstance qInstance = producedInstance();
QTableMetaData runTable = qInstance.getTable("quick_search_index_run");
QRecord inserted = new InsertAction().execute(new InsertInput(runTable.getName()).withRecord(minimalRecord(runTable))).getRecords().get(0);
Instant before = inserted.getValueInstant("modifyDate");
Thread.sleep(20);
QRecord heartbeat = new QRecord().withValue("id", inserted.getValue("id")).withValue("modifyDate", Instant.now());
QRecord updated = new UpdateAction().execute(new UpdateInput(runTable.getName()).withRecord(heartbeat)).getRecords().get(0);
assertThat(updated.getValueInstant("modifyDate")).isAfter(before);
assertThat(updated.getErrors()).isEmpty();
}
/*******************************************************************************
** A record with only what the table requires.
*******************************************************************************/
private QRecord minimalRecord(QTableMetaData table)
{
QRecord record = new QRecord();
switch(table.getName())
{
case "quick_search_index" -> record.withValue("tableName", "person");
case "quick_search_index_field" -> record.withValue("quickSearchIndexId", 1).withValue("fieldName", "name");
default ->
{
}
}
return (record);
}
/*******************************************************************************
** A plain text or number field, not a key, a date or a possible-value
** picker, that an update can change; null if the table has none.
*******************************************************************************/
private String changeableField(QTableMetaData table)
{
return (table.getFields().values().stream()
.filter(f -> !f.getName().equals(table.getPrimaryKeyField()))
.filter(f -> f.getPossibleValueSourceName() == null)
.filter(f -> f.getType() == QFieldType.STRING || f.getType() == QFieldType.INTEGER)
.map(QFieldMetaData::getName)
.findFirst().orElse(null));
}
/*******************************************************************************
**
*******************************************************************************/
private java.io.Serializable changedValue(QFieldMetaData field)
{
return (field.getType() == QFieldType.INTEGER ? Integer.valueOf(7) : "changed");
}
/*******************************************************************************
**
*******************************************************************************/
private List<QTableMetaData> quickSearchTables(QInstance qInstance)
{
List<QTableMetaData> tables = qInstance.getTables().values().stream()
.filter(t -> t.getName().startsWith("quick_search_"))
.sorted((a, b) -> a.getName().compareTo(b.getName()))
.toList();
assertThat(tables).as("the tables this QBit declares").hasSize(8);
return (tables);
}
/*******************************************************************************
**
*******************************************************************************/
private QInstance producedInstance()
{
try
{
QInstance qInstance = new QInstance();
qInstance.addBackend(new QBackendMetaData().withName("memory").withBackendType(MemoryBackendModule.class));
qInstance.withInstanceDefaultAuthentication(new QAuthenticationMetaData().withName("anonymous").withType(QAuthenticationType.FULLY_ANONYMOUS));
qInstance.addTable(new QTableMetaData().withName("person").withBackendName("memory").withPrimaryKeyField("id")
.withField(new QFieldMetaData("id", QFieldType.INTEGER).withIsEditable(false))
.withField(new QFieldMetaData("name", QFieldType.STRING))
.withField(new QFieldMetaData("modifyDate", QFieldType.DATE_TIME)));
QContext.init(qInstance, new QSession());
new QuickSearchQBitProducer().withConfig(new QuickSearchQBitConfig()
.withStartupMode(QuickSearchStartupMode.DEGRADED)
.withBackendName("memory")
.withOpensearchHost("localhost")
.withOpensearchPort(9200)
.withOpensearchIndexName("table-standard")
.withSearchableEntityClasses(List.of(PersonEntity.class))).produce(qInstance);
return (qInstance);
}
catch(QException e)
{
throw (new IllegalStateException(e));
}
}
}
@@ -989,7 +989,10 @@ class FullReindexStepTest extends BaseQuickSearchTest
}
};
Instant before = Instant.now();
//////////////////////////////////////////////////////////////////////////////////////
// the MODIFY_DATE behavior stamps modifyDate to the millisecond, so compare at that //
//////////////////////////////////////////////////////////////////////////////////////
Instant before = Instant.now().truncatedTo(ChronoUnit.MILLIS);
step.indexAllRecords(mockClient, QuickSearchQBitContext.getTableConfig(TEST_ENTITY_TABLE), List.of(), PHYSICAL_INDEX,
new QuickSearchIndexRun().withId(runId).withRunType(FullReindexStep.RUN_TYPE));