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

Make a (shallow) copy of radarr/sonarr tags into a request before adding user tags #3485

Merged

Conversation

andrew-kennedy
Copy link
Contributor

Description

Stops an issue where we were assigning the radarr/sonarr tags to another tags varable, and then mutating that variable with extra user tags (not realizing that this mutation altered the actual original settings tag array).

I don't have a test setup and made this PR through the web UI, so someone else will have to pull and validate it, but it should do the trick.

Copy link
Collaborator

@OwsleyJr OwsleyJr left a comment

Choose a reason for hiding this comment

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

Tested and works. Thanks for the PR!

@OwsleyJr OwsleyJr merged commit 48f7666 into sct:develop Jun 9, 2023
6 checks passed
@OwsleyJr
Copy link
Collaborator

OwsleyJr commented Jun 9, 2023

@all-contributors pleases add @andrew-kennedy for code

@allcontributors
Copy link
Contributor

@OwsleyJr

I've put up a pull request to add @andrew-kennedy! 🎉

@github-actions
Copy link

🎉 This PR is included in version 1.33.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

lenaxia pushed a commit to lenaxia/overseerr-oidc that referenced this pull request Jan 3, 2024
…e adding user tags (sct#3485)

* Make a (shallow) copy of radarr/sonarr tags into a request before adding user tags

* Undo random formatting changes

* more undoing formatting changes

* Fix undefined case.

* Prettier format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New per-user tagging feature mutates other non-user radarr/sonarr tags
2 participants