Conversation
| def display_as_table(res: Response): | ||
| headers = ["Metadata", "Value"] | ||
| res_json = res.json() | ||
| rows = [["Training Cutoff Test Session ID", res_json['training_cutoff_test_session_id']]] |
There was a problem hiding this comment.
Could training_cutoff_test_session_id be null? If not, it's okay; otherwise, this throws KeyError, which is not our expectation.
There was a problem hiding this comment.
It can't be null because the API returns 404 if the value is null in the DB.
https://github.com/launchableinc/mothership/blob/f75c819c8381ef209e8fbc39084a894b6926043b/src/main/java/com/launchableinc/mercury/intake/controller/ModelController.java#L42
|
What will happen if the subset is not enabled in the workspace? In other words, what error message will be displayed if the subset is not allows in the workspace? |
I just tested. The "Model metadata currently not available for this workspace." |
This adds new command
launchable inspect model.This should only be merged after https://github.com/launchableinc/mothership/pull/12415
Usage: