Skip to content

Conversation

@Lorg0n
Copy link
Contributor

@Lorg0n Lorg0n commented Oct 9, 2025

This commit introduces the functionality for users to suggest changes to the genres of Anime, Manga, and Novel content types through the edit system. This enhances data accuracy by allowing the community to correct and update genre information.

Key changes include:

  • Updated EditArgs schemas to accept a genres field, which is a list of genre slugs.
  • Added validation in edit/dependencies.py to ensure all submitted genre slugs are valid before creating or updating an edit.
  • Implemented the core logic in accept_pending_edit to correctly update the many-to-many relationship between the content and its genres.

@kuyugama
Copy link
Member

I think, there's a better way to implement editing system(not modifying API). For example, separate validation for every distinct editable entity(anime, manga, novel, etc.). Also, make appliance of the edit the same way. This would make extending this system way more easier.

As for the genres, I think, this may work.

@kuyugama kuyugama added the enhancement New feature or request label Oct 21, 2025
@kuyugama kuyugama changed the title Features: Add support for editing genres Add editing of the genres list of the content Oct 21, 2025
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 this pull request may close these issues.

2 participants