Skip to content

Conversation

@mortenpi
Copy link
Member

@mortenpi mortenpi commented Mar 10, 2025

This adds:

  • JuliaHub.project_dataset(s) to get dataset(s) that are attached to a project
  • JuliaHub.upload_project_dataset to upload a new version of a dataset that attached to a project (if you have write access).

To make things easier for the user, JuliaHub.authenticate will automatically pick up the project UUID from the JULIAHUB_PROJECT_UUID environment variable, in which case you don't need to pass the project UUID to any of the project-dataset function. You can also manually set it by passing project to JuliaHub.authenticate.

The project-dataset function will still return Dataset objects, but it now can also contain a .project field which can contain the project-dataset link metadata (e.g. writability).

Close #15.

@mortenpi mortenpi changed the title feat: add function for project-dataset operations feat: add functions for project-dataset operations Mar 10, 2025
Copy link
Member

@pfitzseb pfitzseb left a comment

Choose a reason for hiding this comment

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

Generally LGTM.

@pfitzseb pfitzseb enabled auto-merge (squash) April 8, 2025 11:58
@pfitzseb pfitzseb merged commit a4274a7 into main Apr 8, 2025
10 of 12 checks passed
@pfitzseb pfitzseb deleted the mp/project-datasets branch April 8, 2025 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JuliaHub.upload_dataset() should connect automatically to a project

3 participants