Skip to content

fix: correct user and patch info in instance info command#44

Merged
jacebenson merged 1 commit into
mainfrom
feat/instance-info-fix
Apr 21, 2026
Merged

fix: correct user and patch info in instance info command#44
jacebenson merged 1 commit into
mainfrom
feat/instance-info-fix

Conversation

@jacebenson
Copy link
Copy Markdown
Owner

Closes #30

Problem

jsn instance info was showing:

  • Wrong user (survey.user instead of the logged-in user)
  • Empty patch and build date

Root cause

  • User was fetched by querying sys_user with no filter, returning the first record in the table
  • Patch and build date weren't being parsed from mid.version

Fix

  • Use GetCurrentUser() to get the actual authenticated user
  • Parse patch from mid.version string (e.g., __patch1-... → patch 1)
  • Extract build date from version string
  • Query additional properties: glide.builddate, glide.patch, glide.sys.default.tz

Before

User: survey.user
Patch: (empty)
Build Date: (empty)

After

User: admin
Patch: 1
Build Date: 03-31-2026

- Use GetCurrentUser() instead of querying first sys_user record
- Parse patch and build date from mid.version string
- Query additional properties: glide.builddate, glide.patch, glide.sys.default.tz

Closes #30
@jacebenson jacebenson merged commit 9b3e1b6 into main Apr 21, 2026
2 checks passed
@jacebenson jacebenson deleted the feat/instance-info-fix branch April 21, 2026 05:27
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.

instance info shows wrong user and patch

1 participant