stash icon indicating copy to clipboard operation
stash copied to clipboard

Stash Object Sync Project

Open Gykes opened this issue 9 months ago • 6 comments

Describe the feature you'd like

Feature Parity Across Object Types

Problem

Stash's object types (Scenes, Performers, Images, Galleries, Groups, Tags, Studios) have significant feature disparities. Scenes receive the most development attention, leaving other types with inconsistent sort options, filter criteria, and missing field support. This creates a fragmented user experience where workflows available for one type aren't available for others.

AI was used to generate all the graphs. I did fix some issues but there might be more after I corrected some.

Common Features Across Types

Feature Scenes Performers Images Galleries Groups Tags Studios
Rating :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :x: :white_check_mark:
Favorite :x: :white_check_mark: :x: :x: :x: :white_check_mark: :white_check_mark:
Organized :white_check_mark: :x: :white_check_mark: :white_check_mark: :x: :x: :x:
O-Counter :white_check_mark: :white_check_mark:* :white_check_mark: :x: :white_check_mark: N/A :white_check_mark:*
Play Count :white_check_mark: :white_check_mark:* N/A N/A N/A N/A N/A
Last Played :white_check_mark: :white_check_mark:* N/A N/A N/A N/A N/A
Stash ID :white_check_mark: :white_check_mark: :x: :x: :x: :white_check_mark: :white_check_mark:
Custom Fields :x: :white_check_mark: :x: :x: :x: :white_check_mark: :white_check_mark:
Tags :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: N/A :white_check_mark:
Performers :white_check_mark: N/A :white_check_mark: :white_check_mark: :white_check_mark: :x: :x:
Studios :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :x: N/A
Date :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :x: :x:
URL :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :x: :white_check_mark:
Details/Description :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:† :white_check_mark: :white_check_mark:
Ignore Auto Tag :x: :white_check_mark: :x: :x: :x: :white_check_mark: :white_check_mark:

* Aggregated from related scenes, not directly tracked † Groups use "synopsis" instead of "details"

Sort Options Comparison

Sort By Scenes Performers Images Galleries Groups Tags Studios
name/title :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
rating :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :x: :white_check_mark:
random :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
date :white_check_mark: :white_check_mark:‡ :white_check_mark: :white_check_mark: :white_check_mark: N/A N/A
created_at :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
updated_at :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
tag_count :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: N/A :white_check_mark:
scene_count N/A :white_check_mark: N/A N/A :white_check_mark: :white_check_mark: :white_check_mark:
image_count N/A :white_check_mark: N/A :white_check_mark: N/A :white_check_mark: :white_check_mark:
gallery_count N/A :white_check_mark: N/A N/A N/A :white_check_mark: :white_check_mark:
o_counter :white_check_mark: :white_check_mark: :white_check_mark: :x: :white_check_mark: N/A :x:
play_count :white_check_mark: :white_check_mark: N/A N/A N/A N/A N/A
last_played_at :white_check_mark: :white_check_mark: N/A N/A N/A N/A N/A
filesize :white_check_mark: N/A :white_check_mark: N/A N/A N/A N/A
file_count :white_check_mark: N/A :white_check_mark: :white_check_mark: N/A N/A N/A
duration :white_check_mark: N/A N/A N/A :white_check_mark: N/A N/A
resolution :white_check_mark: N/A :white_check_mark: N/A N/A N/A N/A
performer_count :white_check_mark: N/A :white_check_mark: :white_check_mark: :x: :white_check_mark: :x:
path :white_check_mark: N/A :white_check_mark: :white_check_mark: N/A N/A N/A
scenes_duration N/A :white_check_mark: N/A N/A N/A :white_check_mark: :white_check_mark:
latest_scene N/A :white_check_mark: N/A N/A N/A N/A :white_check_mark:

‡ Performers sort by birthdate, not a generic "date"

Is-Missing Options Comparison

Field Scenes Performers Images Galleries Groups Tags Studios
title :white_check_mark: :x: :white_check_mark: :white_check_mark: :x: :x: :x:
details :white_check_mark: :white_check_mark: :x: :white_check_mark: :x: :x: :white_check_mark:
url :white_check_mark: :white_check_mark: :x: :white_check_mark: :x: :x: :x:
date :white_check_mark: :x: :x: :white_check_mark: :x: :x: :x:
cover/image :white_check_mark: :white_check_mark: :x: :x: :white_check_mark: :white_check_mark: :white_check_mark:
studio :white_check_mark: :x: :white_check_mark: :white_check_mark: :x: :x: N/A
performers :white_check_mark: :x: :white_check_mark: :white_check_mark: :x: :x: :x:
tags :white_check_mark: :x: :white_check_mark: :white_check_mark: :x: :x: :x:
stash_id :white_check_mark: :white_check_mark: :x: :x: :x: :x: :white_check_mark:
galleries :white_check_mark: :x: :white_check_mark: :x: :x: :x: :x:
scenes :x: :x: :x: :white_check_mark: :white_check_mark: :x: :x:
gender :x: :white_check_mark: :x: :x: :x: :x: :x:
aliases :x: :white_check_mark: :x: :x: :x: :x: :x:
groups :white_check_mark: :x: :x: :x: :x: :x: :x:

Proposed Work Items

Phase 1: Frontend-Only Changes

No backend work needed — just adding options to existing frontend arrays. Backend already supports these.

  • [ ] Images: Add is-missing options — details, url, date, code (backend default handler already supports these, just need adding to frontend ImageIsMissingCriterionOption)
  • [ ] - [ ] **All Objects: Add Frontend Custom Fields

Phase 2: Is-Missing Gaps (Frontend + Minor Backend)

Frontend needs new options added. Some need backend special-case handlers for fields stored in separate tables.

  • [ ] Groups: Add is-missing options — name, description, date work via default handler (frontend-only); url, studio, performers, tags need backend special-case handlers
  • [ ] Tags: Add aliases is-missing — needs backend special-case handler (stored in tag_aliases table) + frontend option
  • [ ] Studios: Add is-missing options — url (backend handler exists, frontend-only); aliases needs backend special-case handler + frontend option

Phase 3: New Sort/Filter Options

Requires backend sort/filter handlers, GraphQL schema updates, and frontend wiring. Follows well-established patterns.

  • [ ] Groups: Add performer_count filter/sort — no backend support exists yet, needs full implementation
  • [ ] Studios: Add performer_count filter/sort — no backend support exists yet, needs full implementation
  • [ ] Galleries: Add o_counter support — needs new DB column, migration, GraphQL field, tracking, filter/sort (parity with Scenes/Images)

Phase 4: Cross-Type Flag Standardization

Each flag requires a new DB column, migration, GraphQL schema changes, resolver updates, and UI toggle. Needs design discussion on which types actually benefit from each flag.

  • [ ] Standardize "favorite" flag — currently only Performers, Tags, Studios; consider adding to Scenes, Images, Galleries, Groups
  • [ ] Standardize "organized" flag — currently Scenes, Images, Galleries; consider adding to Groups
  • [ ] Standardize "ignore_auto_tag" — currently only Performers, Tags, Studios; consider adding to Scenes, Images, Galleries, Groups

Phase 5: Custom Fields for All Types

Significant effort per type — requires new DB table (*_custom_fields), migration, GraphQL schema, resolver for get/set, import/export support, and frontend UI. Can follow the existing Performer/Tag/Studio pattern.

  • [ ] Scenes: Add custom fields — parity with Performers/Tags/Studios
  • [ ] Images: Add custom fields — parity with Performers/Tags/Studios
  • [ ] Galleries: Add custom fields — parity with Performers/Tags/Studios
  • [ ] Groups: Add custom fields — parity with Performers/Tags/Studios

Phase 6: Advanced Features

These require more complex backend logic beyond simple CRUD.

  • [ ] Images: Add duplicate detection — phash-based deduplication filter (has phash stored but no duplicated criterion like Scenes have)

Describe the benefits this would bring to existing users

Better concurrency

Is there an existing way to achieve this goal?

Nope

Have you searched for an existing open/closed issue?

  • [x] I have searched for existing issues and none cover the core request of my proposal

Additional context

No response

Gykes avatar Feb 10 '26 04:02 Gykes

no custom fields for tags? :(

will I just have to take over stashids instead

feederbox826 avatar Feb 19 '26 20:02 feederbox826

no custom fields for tags? :(

will I just have to take over stashids instead

Can be added, there's just a lot to do so I missed it lol

Gykes avatar Feb 19 '26 20:02 Gykes

Custom fields have been added in the backend for all types except for groups, images and markers, and galleries has a pending PR. Only UI support is needed to be added for everything (except performers which is already implemented).

WithoutPants avatar Feb 19 '26 20:02 WithoutPants

Feature parity is a good thing, but is_missing is mostly redundant. It duplicates existing filter functionality from "field = null".

This was brought up in 2023 and one person pushed back, but the "minimal clicks" argument is irrelevant since they are the same number of clicks in the filter dropdown. https://github.com/stashapp/stash/issues/3790#issuecomment-1571084495

I am in favor of deprecating is_missing and just rephrasing "is null" to "is missing" in the filter UI

Image

sleetx avatar Feb 26 '26 06:02 sleetx

I am in favor of deprecating is_missing and just rephrasing "is null" to "is missing" in the filter UI

One side benefit of it at the moment is that you can use it in addition to another filter type. It would be better to delay deprecation or overhaul until https://github.com/stashapp/stash/issues/5159 is implemented.

DogmaDragon avatar Feb 27 '26 06:02 DogmaDragon

performer_age should be added to sorting options since #6879 is merged. Studios will receive scene_marker_count very soon.

slick-daddy avatar Jun 13 '26 12:06 slick-daddy