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

[Bug Report] GQL findImages by title not working #5657

Closed
Valkyr-JS opened this issue Feb 9, 2025 · 3 comments · Fixed by #5658
Closed

[Bug Report] GQL findImages by title not working #5657

Valkyr-JS opened this issue Feb 9, 2025 · 3 comments · Fixed by #5658
Labels
bug Something isn't working

Comments

@Valkyr-JS
Copy link

Valkyr-JS commented Feb 9, 2025

Describe the bug
Running a findImages GQL query using image_filter.title doesn't appear to return any results. I've tried a number of modifiers includes EQUALS, INCLUDES, INCLUDES_ALL (not supported), and MATCHES_REGEX, but no results are returned.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Stash playground.
  2. Run a findImages query by title for an image that you've confirmed exists in your database.
  3. Confirm the result count is zero.

Screenshots
The first screenshot shows the image with the given title does exist in the database.

Image

The second screenshot shows searching for one of those images by title doesn't work. The same thing happens for INCLUDES (pictured), EQUALS, and MATCHES_REGEX.

Image

Stash Version: 0.27.2:

Docker:

  • OS: Synology NAS
  • Browser Chrome
  • Version 133
@Valkyr-JS Valkyr-JS added the bug report Bug reports that are not yet verified label Feb 9, 2025
@github-project-automation github-project-automation bot moved this to To triage in Bug fixing Feb 9, 2025
@bob123491234
Copy link
Contributor

Stash returns the basename as the title when the title field is null.

@Valkyr-JS
Copy link
Author

Stash returns the basename as the title when the title field is null.

Stash sets the file name as the title on import. The title field isn't null.

Image

@bob123491234
Copy link
Contributor

The option to set the basename as the title during a scan was removed in the files refactor. Now it is always left as null during the scan, which will return the basename in the graphql query. The titleFromFilename plugin can set the basename as the title if that is behavior you want.

@WithoutPants WithoutPants added bug Something isn't working and removed bug report Bug reports that are not yet verified labels Feb 12, 2025
@WithoutPants WithoutPants added this to the Version 0.28.0 milestone Feb 12, 2025
@github-project-automation github-project-automation bot moved this from To triage to Done in Bug fixing Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants