stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
9.26k stars 794 forks source link

[Bug Report] Studio Tagger ignores duplicate names + still matches deleted studios #4463

Open Ronnie711 opened 9 months ago

Ronnie711 commented 9 months ago

Describe the bug If a studio has the same name as another, especially if there is a duplicate entry that has been deleted tagger will return you one match.

To Reproduce

  1. Create a studio called 'TeamSkeet X YoungBusty'
  2. Switch to tagger view and query StashDB, it should return one result - https://stashdb.org/studios/1c1b26e0-36f8-42b3-aeb6-d6b7ea1042d0 which is deleted, https://stashdb.org/studios/820aa4c1-09d6-4778-8b29-3a2b5b964cd8 is the correct entry

Expected behavior

Only show 'Live' studios and ignore deleted entries or at least show all matches.

Stash Version: (from Settings -> About):

Desktop (please complete the following information):

DingDongSoLong4 commented 9 months ago

I believe this is a stash-box issue - the findStudio query, which is what is being used, shouldn't return a deleted studio.