Skip to content

Conversation

@starlord-daniel
Copy link
Member

The get_latest_model method helps to get the latest model without providing a specific tag.

The get_latest_model method helps to get the latest model without providing a specific tag.
@dtzar
Copy link
Contributor

dtzar commented Mar 13, 2020

I don't like having helper code which isn't used anywhere in the rest of the solution.... Since this is a heavy dupe of the method with the tag, I'd rather mod the same function to accept a tag or not and return the latest model.

@starlord-daniel
Copy link
Member Author

@dtzar Makes sense, I've adapted the code accordingly.


# Get lastest model
# True: by name and tags
if tag_name is not None or tag_value is not None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe both of them should be not None.
Or at least tag_name.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated accordingly.

@eedorenko eedorenko merged commit d531b2e into microsoft:master Mar 15, 2020
@starlord-daniel starlord-daniel deleted the patch-1 branch March 16, 2020 10:12
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.

3 participants