Skip to content

Expose buildVersion on REST root — serving side (#813) - #1417

Open
Kasinhou wants to merge 2 commits into
customer/jcufrom
deployed-version-info/jcu
Open

Expose buildVersion on REST root — serving side (#813)#1417
Kasinhou wants to merge 2 commits into
customer/jcufrom
deployed-version-info/jcu

Conversation

@Kasinhou

Copy link
Copy Markdown

What & why (issue #813)

Expose which commit is currently deployed as buildVersion on the REST root endpoint (/server/api), matching dtq-dev.

The Docker build already generated dspace/config/VERSION_D.txt (via docker.yml + reusable-docker-build.yml), but nothing exposed it. This adds the serving side for DSpace 9.

Changes

  • dspace/config/dspace.cfgbuild.version.file.path points at the generated file.
  • RootConverter reads the file into RootRest.buildVersion; RootRest gains the buildVersion field (getter/setter, equals/hashCode).
  • dspace/config/VERSION_D.txt — empty placeholder (overwritten at build).

Verification

  • dspace-server-webapp compiles.
  • buildVersion appears on GET /server/api.

🤖 Generated with Claude Code

Matus Kasak and others added 2 commits August 20, 2026 15:38
…fo) (#813)

The Docker build already generates dspace/config/VERSION_D.txt (docker.yml +
reusable-docker-build.yml), but nothing exposed it. Add the serving side to match
dtq-dev so /server/api reports which commit is deployed:
- dspace.cfg: build.version.file.path points at the generated file.
- RootConverter reads that file and sets RootRest.buildVersion.
- RootRest gains the buildVersion field (getter/setter, equals/hashCode).
- dspace/config/VERSION_D.txt committed as an empty placeholder (overwritten at build).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…#813)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Kasinhou Kasinhou self-assigned this Aug 21, 2026
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