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

Add tag category ordering feature #350

Merged
merged 5 commits into from
Sep 24, 2020

Conversation

neobooru
Copy link
Collaborator

How does this look?

This sorts by order -> isDefault -> categoryName -> tagName
This doesn't change the default behavior (sorted a-z and default tags last) because order = 1 by default.

Didn't write any tests for this yet, but seems to work fine in my test setup.

image

@neobooru neobooru changed the title client+server: add tag category ordering feature Add tag category ordering feature Sep 20, 2020
Copy link
Collaborator

@sgsunder sgsunder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see the review comments.

Additionally, we should document the tag category API changes in API.md

server/szurubooru/api/tag_category_api.py Show resolved Hide resolved
server/szurubooru/func/tag_categories.py Show resolved Hide resolved
client/js/models/tag_category.js Outdated Show resolved Hide resolved
@sgsunder
Copy link
Collaborator

Made a PR on your branch to fix the failing tests: neobooru#10

@sgsunder sgsunder merged commit a896c1a into rr-:master Sep 24, 2020
@neobooru neobooru deleted the change_tag_category_order branch October 28, 2020 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants