Create links: Return created links data - #347
Merged
Merged
Conversation
BigRoy
reviewed
Aug 21, 2026
There was a problem hiding this comment.
Pull request overview
Updates the public create_links API to return information about the links created by the bulk-create request, aligning behavior with the PR’s stated goal of exposing created-link results to callers.
Changes:
- Change
create_linksreturn type fromNoneto a list of created-link records. - Implement return values for both the bulk endpoint (newer servers) and the per-link fallback loop (older servers).
- Adjust empty-input behavior to return an empty list instead of
None.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
ayon_api/_api.py |
Updates the top-level create_links wrapper signature to return created-link results from the connection helper. |
ayon_api/_api_helpers/links.py |
Implements returning created-link data for both bulk and fallback code paths, including empty-input behavior. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
274
to
281
| Args: | ||
| project_name (str): Project where links are created. | ||
| links (list[CreateLinkData]): List of link data. | ||
|
|
||
| Raises: | ||
| ValueError: Link data is invalid. | ||
|
|
||
| """ |
BigRoy
approved these changes
Aug 21, 2026
BigRoy
self-requested a review
August 21, 2026 12:46
BigRoy
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog Description
Return the created links from
create_linksmethod.Testing notes:
create_linksand see the result.