Skip to content

AO3-7293 Add unactioned and unwrangleable status filters to tag search#5588

Open
marcus8448 wants to merge 6 commits intootwcode:masterfrom
marcus8448:AO3-7293
Open

AO3-7293 Add unactioned and unwrangleable status filters to tag search#5588
marcus8448 wants to merge 6 commits intootwcode:masterfrom
marcus8448:AO3-7293

Conversation

@marcus8448
Copy link
Member

Issue

https://otwarchive.atlassian.net/browse/AO3-7293

Purpose

Adds two more wrangling status options to tag search: "Unwrangleable" and "Non-canonical and non-synonymous and not marked unwrangleable" (which are tags that have not been actioned in some way).

Credit

marcus8448 (he/him)

It doesn't make sense to search for both separately (e.g. can't be canon + unwrangleable), and status=unwrangleable should cover it.
It appears to be unused (and was not exposed to tag search).
Comment on lines +62 to +69
<li>
<%= f.radio_button :wrangling_status, "noncanonical_nonsynonymous_not_unwrangleable" %>
<%= f.label :wrangling_status, t(".status_option.noncanonical_nonsynonymous_and_not_unwrangleable"), value: "noncanonical_nonsynonymous_not_unwrangleable" %>
</li>
<li>
<%= f.radio_button :wrangling_status, "unwrangleable" %>
<%= f.label :wrangling_status, t(".status_option.unwrangleable"), value: "unwrangleable" %>
</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the order of these two be swapped?

Copy link
Member Author

Choose a reason for hiding this comment

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

I purposely swapped the order from the issue because I think it makes more sense to have "Non-canonical and non-synonymous" immediately precede "Non-canonical and non-synonymous and not marked unwrangleable" since they filter similar things. I also think it looks a bit nicer (since the names are so long+similar).

add associated "wrangleable" status, add tests to match
Copy link
Contributor

@Bilka2 Bilka2 left a comment

Choose a reason for hiding this comment

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

This code looks good, so I'm approving! Especially thank you for the extra tests <3

However, I'm keeping the coder actioned label because Tag Wrangling wants to rename the really really long search option, and that way that will stay on our radar. Feel free to poke me if wrangling hasn't updated the Jira issue for that within a few weeks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants