Skip to content
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

feat: Artifact Versioning #272

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

feat: Artifact Versioning #272

wants to merge 23 commits into from

Conversation

roselynh100
Copy link

@roselynh100 roselynh100 commented Feb 25, 2025

Changelogs

Hub changes here!

  • Artifact Model:
    • Added version fields artifact_version and artifact_changelog to datasets and benchmarks
    • Created a slug field_validator to accept a slug from the Hub (if passed), otherwise slugifys the name
    • Modified the urn_for method to use a new function build_urn
  • Uploading new versions: parent_artifact_id (owner/slug) can be specified in dataset/benchmark upload_to_hub, upload_dataset, or upload_benchmark functions
    • This will attempt to upload the new artifact as the direct child of the parent
  • Name → Slug: Replaced many instances of name with slug (e.g. in get_artifact, etc)
  • Documentation: Wrote docstrings explaining artifact_version, artifact_changelog, and parent_artifact_id. Also mentioned how to upload a new version (at the end of Create a Dataset and Create a Benchmark tutorials)
    Preview

Checklist:

  • Was this PR discussed in an issue? It is recommended to first discuss a new feature into a GitHub issue before opening a PR.
  • Add tests to cover the fixed bug(s) or the newly introduced feature(s) (if appropriate).
  • Update the API documentation if a new function is added, or an existing one is deleted.
  • Write concise and explanatory changelogs above.
  • If possible, assign one of the following labels to the PR: feature, fix, chore, documentation or test (or ask a maintainer to do it for you).

@roselynh100 roselynh100 self-assigned this Feb 25, 2025
@roselynh100 roselynh100 added the feature Annotates any PR that adds new features; Used in the release process label Feb 25, 2025
@roselynh100 roselynh100 marked this pull request as ready for review February 26, 2025 19:04
@roselynh100 roselynh100 requested a review from cwognum as a code owner February 26, 2025 19:04
Copy link
Contributor

@jstlaurent jstlaurent left a comment

Choose a reason for hiding this comment

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

Very nice! 😄

Copy link
Contributor

@mercuryseries mercuryseries left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks, @roselynh100!

PS: I forgot to mention this in my Hub PR message (better late than never, right?), but I really appreciate the attention to detail with the PR description, the GIF, and all the little touches 💅!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Annotates any PR that adds new features; Used in the release process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants