-
Notifications
You must be signed in to change notification settings - Fork 28
feat: implement sim_studio_version method #1259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…s read the file; frontend calls the endpoints
WalkthroughThis update introduces backend and frontend support for displaying version information for both the Studio and GenVM components. Version data is extracted during the backend Docker build using Git metadata and an environment variable, then exposed via new RPC endpoints. The frontend consumes these endpoints, displaying the versions in the simulator settings UI. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Frontend
participant Backend
participant Docker Build
Docker Build->>Docker Build: Extract version from Git/env\nWrite to /app/version.txt
User->>Frontend: Open Simulator Settings
Frontend->>Backend: RPC getStudioVersion()
Backend->>Backend: Read /app/version.txt (line 1)
Backend-->>Frontend: Studio version string
Frontend->>Backend: RPC getGenVMVersion()
Backend->>Backend: Read /app/version.txt (line 2)
Backend-->>Frontend: GenVM version string
Frontend->>User: Display Studio & GenVM version in UI
Possibly related PRs
Suggested reviewers
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|


Fixes #DXP-478
What
get_simulator_versionandget_genvm_versiontoendpoints.pyfor retrieving version information.Dockerfile.backendto include git for version detection and added logic to capture version information and write it in a file. The DockerHub image should contain the version file (not tested).VersionSection.vuecomponent in the frontend to display version information in the settings tab at the bottom.SettingsView.vueto include the newVersionSection.IJsonRpcService.tsandJsonRpcService.tsto include methods for fetching studio and GenVM versions.Why
To provide users with visibility into the current version of the simulator and GenVM, enhancing transparency and debugging capabilities.
Testing done
VersionSection.Decisions made
Checks
Reviewing tips
endpoints.pyand the integration in the frontend components.User facing release notes
Added version display for the studio and GenVM in the settings section of the application.
Summary by CodeRabbit
New Features
Chores