-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat(modelmanager): listmodels #1493
Conversation
The api was trying to call /version, but our mock didn't implement it.
We now list models via contacting controllers directly.
} | ||
|
||
// Find the controllers these models reside on and remove duplicates | ||
var controllers []dbmodel.Controller |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wonder if there's a way we could write this bit with generics or something, because we seem to be looking for unique lists in a few places in jimm code. also not for this pr :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already on it :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job
ListModels now correctly calls ListModels. Dialing the controllers themselves and returning models only those users can view. This is used upon Login and Register commands to persist model details, and whether or not it is a CAAS model.
We don't return controller models as with JIMM this does not make sense - we intentionally choose not to expose these details to the user.
Driveby: The api was trying to call /version, but our mock didn't implement it.
Description
The what and why - include a summary of the change, describe what it does, and include relevant motivation and context.
Fixes JIRA/GitHub issue number
Engineering checklist
Check only items that apply
Test instructions
Notes for code reviewers