Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

allow programmatic updates of artifact description, metadata, aliases #208

Merged
merged 5 commits into from
Sep 16, 2020

Conversation

annirudh
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Sep 13, 2020

Pull Request Test Coverage Report for Build 5abe3d2d-465c-4b5b-8fcd-c62f2cb999d0

  • 11 of 21 (52.38%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.004%) to 60.992%

Changes Missing Coverage Covered Lines Changed/Added Lines %
wandb/apis/public.py 9 19 47.37%
Files with Coverage Reduction New Missed Lines %
wandb/compat/tempfile.py 2 59.09%
Totals Coverage Status
Change from base Build cedef85c-1646-468e-a0c4-2320930b9d24: -0.004%
Covered Lines: 12920
Relevant Lines: 21183

💛 - Coveralls

wandb/apis/public.py Show resolved Hide resolved
self._metadata = self._attrs.get("metadata", None)
self._description = self._attrs.get("description", None)
self._sequence_name = self._attrs["artifactSequence"]["name"]
self._version_index = self._attrs["versionIndex"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we default this to 0 if we don't have a versionIndex

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because of the way the API works, you can only resolve artifacts that have been committed and consequently have a versionIndex, however a default might still be good here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@raubitsj raubitsj merged commit fcf5939 into master Sep 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants