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

Scene Drafts can now get multiple links #824

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

S3L3CT3DLoves
Copy link
Contributor

This change allows Scene Drafts to be uploaded with multiple URLs.

UX changes
Unlike in the past, links that have no "Site" regex match will no longer be assigned the "Studio" site automatically. This was discussed on Discord. Instead, this replicates the current behaviour of the link parsing in Performer drafts.

Breaking Changes
This should not cause breaking changes, the "Urls" field is added to the GQL API. The old "Url" field should be deprecated, but this depends on Stash, so for now I intentionaly kept both fields available.

Further Improvements
I'll add another PR later to work on improving the way URLs are parsed in the Drafts frontend, to make sure URLs are mapped to Sites. But this will impact both Scenes and Performers, and is a different issue in my opinion.

This is my first time using Go, please let me know if I made some errors (although I didn't change much in the Go code tbh)

Resolves: #741

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.

[Feature] Upload multiple URLs
1 participant