Skip to content

Conversation

@houseme
Copy link
Contributor

@houseme houseme commented Dec 4, 2025

  • Add version_handler endpoint to serve console version metadata as JSON (version, version_info, date). Returns 200 when config is initialized and 500 if not.
  • Clarify and expand documentation comments and logging in rustfs/src/admin/console.rs.
  • Minor robustness and serialization error handling improvements.

Type of Change

  • New Feature
  • Bug Fix
  • Documentation
  • Performance Improvement
  • Test/CI
  • Refactor
  • Other:

Related Issues

Summary of Changes

Checklist

  • I have read and followed the CONTRIBUTING.md guidelines
  • Passed make pre-commit
  • Added/updated necessary tests
  • Documentation updated (if needed)
  • CI/CD passed (if applicable)

Impact

  • Breaking change (compatibility)
  • Requires doc/config/deployment update
  • Other impact:

Additional Notes


Thank you for your contribution! Please ensure your PR follows the community standards (CODE_OF_CONDUCT.md) and sign the CLA if this is your first contribution.

- Add `version_handler` endpoint to serve console version metadata as JSON (version, version_info, date).
  Returns 200 when config is initialized and 500 if not.
- Clarify and expand documentation comments and logging in `rustfs/src/admin/console.rs`.
- Minor robustness and serialization error handling improvements.
Copilot AI review requested due to automatic review settings December 4, 2025 04:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new version_handler endpoint to serve console version metadata and improves code documentation throughout the console module.

  • Added /rustfs/console/version endpoint that returns version, version_info, and date as JSON
  • Standardized documentation format using # Arguments and # Returns sections
  • Added startup time logging for both console and API modes

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
rustfs/src/server/http.rs Added startup time logging with formatted timestamps for both console and standard API modes
rustfs/src/admin/console.rs Added version_handler endpoint, improved documentation comments with standardized format, updated function visibility, and added route registration for the new version endpoint

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@houseme houseme merged commit 1d3f622 into main Dec 4, 2025
14 checks passed
@houseme houseme deleted the feature/add-version branch December 4, 2025 05:41
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