Skip to content

Support task files direct upload method#114

Merged
shreddedbacon merged 2 commits intomainfrom
task-files-direct-upload
Jan 15, 2026
Merged

Support task files direct upload method#114
shreddedbacon merged 2 commits intomainfrom
task-files-direct-upload

Conversation

@rocketeerbkw
Copy link
Member

Adds support for uselagoon/lagoon#4017.

No API changes for existing UploadFilesForTask so downstream tools like lagoon-cli don't need any changes. Adds new functions to upload a single file and/or get the raw upload endpoint info (to facilitate parallelism in downstream tools).

This is a breaking change when attempting to use older Lagoon versions which don't support direct upload method yet. We do track the lagoon version, and code comments/readme suggest to use the version for compatibility, so I considered forking UploadFilesForTask based on the version number to support both api/direct upload methods. This isn't being done anywhere else that I found, and I'm not sure if the intent is for this logic is to exist in this library or in downstream tools, so I left it out.

@shreddedbacon shreddedbacon self-requested a review January 13, 2026 23:27
Copy link
Member

@shreddedbacon shreddedbacon left a comment

Choose a reason for hiding this comment

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

I'd be surprised if anyone uses this anywhere outside of the default tasks that lagoon-core provides.

Verified this works with the CLI as a drop in replacement. All good for me

@shreddedbacon shreddedbacon merged commit bb3e4c1 into main Jan 15, 2026
6 checks passed
@shreddedbacon shreddedbacon deleted the task-files-direct-upload branch January 15, 2026 02:44
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.

2 participants