question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature]: Add ability to change artifact type

See original GitHub issue

Description

Would be nice if there was a way to update the type of an artifact. Currently raises AttributeError:

import wandb

wandb.login()
wandb_api = wandb.Api()

artifact = wandb_api.artifact("entity/project/run-3s5g8iwy-95.json.gz:v0")

artifact.type = "new-artifact-type"

>>> AttributeError: can't set attribute 'type'

Suggested Solution

artifact.type = "new-artifact-type" # should not raise error here

artifact.update()

Alternatives

No response

Additional Context

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ramit-wandbcommented, Aug 23, 2022

Got it! I’ve created a feature request for this and I will keep you updated with the status on this.

Thanks! Ramit

0reactions
exalate-issue-sync[bot]commented, Aug 23, 2022

WandB Internal User commented: ramit-wandb commented: Got it! I’ve created a feature request for this and I will keep you updated with the status on this.

Thanks! Ramit

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change an Artifact Type - Blueprint Online Help - HelpDocs
To change an artifact type, access the artifact of interest. Click the More button and then select Change Artifact Type for artifact ID....
Read more >
Attempt to change artifact type of existing artifact reports Error
Assign that role to a user that's a member of the project area. Open the module, right-click the new Original artifact and select...
Read more >
Add ability to get a list of helm charts artifacts from repository ...
"http://raw.githubusercontent.com/") and use one of accounts. Then download the list of artifacts and choose one of existing.
Read more >
Release artifacts and artifact sources - Azure Pipelines
A release is a collection of artifacts in your DevOps CI/CD processes. An artifact is a deployable component of your application.
Read more >
Allow access to edit specific attribute on specific artifact type
I thought this could be achieved by defining a certain role for those users and then using the Permissions feature to assign edit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found