-
Notifications
You must be signed in to change notification settings - Fork 18
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
Should property "ToolVersion.containerfile" and other flags be required or dropped? #154
Comments
I think I agree for For |
Agreed that I think at the very least these properties and their dependencies on each other would benefit from being more clearly documented in their descriptions. When implementing |
Oh, I just meant that they're different from |
I could imagine that this property was perhaps introduced to save a client one or multiple (if different types are provided for the same version) calls to
GET /tools/{id}/versions/{version_id}/{type}/containerfile
only to find out that there isn't a containerfile available for the tool. But if that is the case, wouldn't it be useful to make this property required in the response? I suppose it would be easy enough for a TRS implementation to auto-set this flag based on whether a containerfile was included with that version.Incidentally, I kinda feel the same way about the other flags (
Tool.has_checker
,ToolVersion.is_production
,ToolVersion.verified
andToolVersion.signed
). If a client cannot rely on them to be set, it requires it to implement a way to get that information by inspecting a tool (version) for cases where the flags are not set, ideally in addition to implementing "fast track" checks that might save some time/calls if the flags are set. Alternatively, I would probably rather drop those flags altogether, as this at least reduces the risk of ambiguity in cases where services fail to properly validate the tool (version) data upon registration (e.g.,containerfile
isfalse
, but a containerfile is in fact present).┆Issue is synchronized with this Jira Story
┆containerName: GA4GH tool-registry-service
┆Issue Number: TRS-41
The text was updated successfully, but these errors were encountered: