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

[Feature] Add 'Scene edits' view on the studio pages #301

Open
kronkels opened this issue Feb 11, 2022 · 2 comments · May be fixed by #925
Open

[Feature] Add 'Scene edits' view on the studio pages #301

kronkels opened this issue Feb 11, 2022 · 2 comments · May be fixed by #925
Labels
enhancement New feature or request

Comments

@kronkels
Copy link
Contributor

Is your feature request related to a problem?
Currently it is not possible to view edits made to scenes belonging to a given studio. This would be a useful feature for moderation.

Describe the solution you'd like
There are three tabs on the studio page right now. 'Scenes', 'Links' and 'Edits'. I'd suggest to rename the 'Edits' tab into 'Studio edits', and add a 'Scene edits' tab that returns a feed with edits to the scenes within that studio.

@kronkels kronkels added the enhancement New feature or request label Feb 11, 2022
@kronkels
Copy link
Contributor Author

An alternative would be to add 'Scenes' and 'All' (default) to the 'Type' dropdown on the 'Edits' page.

Schermafdruk_2022-02-11_18-37-26

@peolic
Copy link
Contributor

peolic commented Feb 11, 2022

Same for performer pages, to see scene edits that involve the performer being viewed - edits that remove or add them to scenes.

Basic query that returns edits than contain a performer ID $1:

SELECT id FROM edits WHERE
	target_type = 'SCENE' AND (
		jsonb_path_query_array("data", '$.new_data.added_performers[*].performer_id')
		|| jsonb_path_query_array("data", '$.new_data.removed_performers[*].performer_id')
	) ? $1;

Update: prototyped, but not finished

ikmckenz added a commit to ikmckenz/stash-box that referenced this issue Jan 26, 2025
This adds all pending scene creation edits to the edits tabs for
performers, studios, and tags. Resolves stashapp#301 and stashapp#447.
@ikmckenz ikmckenz linked a pull request Jan 26, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants