Earlopain
a5f5543e85
[Tests] Remove unused fixture files
2023-09-07 16:41:20 +02:00
Earlopain
bc01fb2355
Merge pull request #545 from DonovanDMC/strict-route-formats
...
[Routes] Fix handling of periods in artists, tags, users & wiki pages
2023-09-05 17:31:44 +02:00
Donovan Daniels
115c140cc2
[Posts] Make comment_disabled not hide comments ( #546 )
...
* [Posts] Make comment_disabled not hide comments
* [VoteManager] Disallow voting on locked/disabled comments
* [Comments] Disable editing/hiding disabled & locked comments
* Tweaking
* Allow hiding when comments locked
* Don't allow mods to vote when comments locked
* Change wording from disabled to locked everywhere
---------
Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
2023-09-05 17:27:05 +02:00
Earlopain
d2f8943b63
[TagQuery] Simplify order metatags special handling
...
`rank` can be moved inside case/when and the rest is not needed since
that field is not nullable
2023-09-05 16:10:32 +02:00
Earlopain
1b9ea498d3
[TagQuery] Move more stuff into the base elastic class
2023-09-05 16:03:13 +02:00
Earlopain
636937a118
[TagQuery] Move generic elastic code to base class
2023-09-05 15:35:23 +02:00
Earlopain
c51029ea1e
[ModActions] Stop logging name changes
...
These are not mod actions, anybody can do that. Only log when admins
force change names.
Don't show old/new names, we already don't show that on user profiles.
2023-09-04 23:02:14 +02:00
Earlopain
2290d7045e
[TagQuery] Support any/none for ORed metatags
...
Turns out it's really simple
2023-09-03 21:25:44 +02:00
Earlopain
6e473193fe
[TagQuery] Fix exception for user_id metatag
2023-09-03 20:37:44 +02:00
Earlopain
939a2d1a23
[Tickets] Fix exception when providing no qtype
...
const_defined? throws for the empty string
2023-09-03 20:34:53 +02:00
Earlopain
17e9c052cd
[Ads] Support keyword targets
...
Basically a redo of b61856af6d
which was removed in 0842a50ad5
2023-09-03 18:44:42 +02:00
Earlopain
9203dcdb82
[Posts] Add a method to get tags that a post is tagged with
...
Better performance than the regex as well
2023-09-03 18:24:40 +02:00
Earlopain
9d2a4d6996
[TagQuery] Support ~
for metatags
2023-09-03 17:02:07 +02:00
Earlopain
6b3b24daa2
[TagQuery] Use consistent naming for neg/must_not
2023-09-03 16:43:10 +02:00
Earlopain
040d6454b7
[TagQuery] Remove nesting from elastic query
...
Tags got their own bool query. There doesn't seem to be a reason for that.
Metatags have the same search meaning as normal tags
2023-09-03 15:40:48 +02:00
Earlopain
177558b5d5
[TagQuery] Use consistent naming for tag fields
2023-09-03 15:23:27 +02:00
Earlopain
b2c7b338c0
[TagQuery] Improve description search
...
These all works:
* description:test
* description:"multiple words followed by each other"
* description:"multiple words followed by each oth*"
2023-09-03 15:12:40 +02:00
Earlopain
097d7461a1
[Artists] Fix group link not being marked html safe
2023-09-01 20:59:40 +02:00
Earlopain
c430248f6a
[Comments] Fix h2 not showing on mobile
...
Reason for that styling: unknown
2023-09-01 20:50:52 +02:00
Earlopain
4f3be1955e
[Notes] Add back ability to search by post note updater
2023-08-31 17:38:09 +02:00
Earlopain
a5db6d74f0
[Posts] Fix the navlinks being empty in certain cases
...
If the post is part of a set that is public ,order:X was supplied and
you aren't the owner of that set the navbar would render empty.
2023-08-31 15:46:56 +02:00
Earlopain
b11ebc5718
[Rubocop] Regenerate todo
...
991 files inspected, 5757 offenses detected, 5508 offenses autocorrectable
2023-08-31 08:58:20 +02:00
Earlopain
6885fbf62d
[Posts] Fix sequential navigator appearing for order:X
2023-08-31 08:57:55 +02:00
Earlopain
be75cf3349
[QueryBuilder] Fix searching by tag counts
2023-08-31 08:57:47 +02:00
Earlopain
6529f69628
[Posts] Fix Quick/Recent tags not showing
...
Result of my inability to make changes everywhere I need to.
c9a084e0a3
Also remove artistTags which seems to have never been used.
2023-08-30 20:39:58 +02:00
Donovan Daniels
9c54a0a872
[Routes] Fix handling of periods in artists, tags, users & wiki pages
2023-08-29 13:44:22 -05:00
Earlopain
40db4d6136
[Users] Remove weird behaviour from respond_with in api keys controller
...
There is no proper show action for api keys. Just do a redirect instead.
Remove a duplicate view action from the routes, be explicit that a show action exists
2023-08-29 20:32:42 +02:00
Earlopain
8b133570c0
Merge pull request #543 from e621ng/search-improvements
...
Search improvements
2023-08-29 18:54:42 +02:00
Earlopain
e0182057a2
[Posts] Save typed_tags indexed by category id
...
This is how they actually got cached on the index action.
Fixes tags with invalid categories overwriting all other general tags on the index action.
The cached @typed_tags weren't actually used there because of key mismatching,
except for invalid categories since they fall back to "general" (should have been 0).
2023-08-29 17:33:30 +02:00
Earlopain
f75dac9c73
[Posts] Remove post tag_string_X methods
...
Optimally this should be completly unused but unfortunatly the iqdb response
doesn't use the post serializer so those will stop returning there.
I should really switch that over to the serializer sometime.
2023-08-29 16:56:10 +02:00
OpportunePineapple
3916798a0e
[Themes] Fix invalid tag category hover color ( #544 )
2023-08-24 21:15:34 +02:00
Earlopain
b65741456f
[QueryBuilder] Move count validation into the query class
2023-08-24 13:43:01 +02:00
Earlopain
c8d7bebd72
[QueryBuilder] Move parsing code into own class
...
Introduces the concept of "free" tags to account for automatically added tags.
Introduce `resolve_aliases` which can be used instead of `raw_tag_match`
2023-08-24 13:16:44 +02:00
Earlopain
9848c18ace
[QueryBuilder] Move value parsing into separate module
...
Also add some tests
2023-08-23 14:18:51 +02:00
Earlopain
1621e6e110
[QueryBuilder] Rename range parsing methods for clarity
...
Also replace a bit of the regex matching with more explicit code.
2023-08-22 23:23:08 +02:00
Earlopain
77fd4e5bb7
[Tags] Rework and rename has_metatag?
`
...
The function returns the metatag value, it shouldn't be named that way.
The new methods are more explicit and also more performant.
2023-08-22 13:57:41 +02:00
Earlopain
67eb2b18c8
[Cleanup] Remove unused parameter from Tag.normalize_query
2023-08-22 08:38:03 +02:00
Earlopain
ef554b4ece
[Users] Set fav limit to 80k for (almost) everyone
...
There are only a handful of users currently above it, they will get a custom
limit set which can be adjusted in the future
2023-08-21 21:41:06 +02:00
Earlopain
b7b9a8c400
[Users] Remove the contributor rank
...
We don't use that anymore. Next one up is former staff, so the checks
look a bit goofy now.
2023-08-21 21:24:31 +02:00
Earlopain
c5882d46e3
[Cleanup] Don't add negated metatags to list
...
None of the places where this is used requires that
2023-08-20 18:40:58 +02:00
Earlopain
8d3bb3414d
[Cleanup] Remove is_metatag?
...
Metatags don't appear in post versions
2023-08-20 18:27:40 +02:00
Earlopain
f8529bc60d
[Cleanup] Remove unused format parameter from post set
2023-08-20 18:21:41 +02:00
Earlopain
31957d5dbc
[QueryBuilder] Support negation/multiple values for ranges
2023-08-20 14:29:20 +02:00
Earlopain
93486165a3
[Tags] Add a constant for negatable metatags
2023-08-20 13:19:09 +02:00
Earlopain
ba3030a14c
[QueryBuilder] Create seperate method for creating the range term
2023-08-20 12:58:30 +02:00
Earlopain
da86cc3ae6
[QueryBuilder] Don't pass q around everywhere
2023-08-20 12:19:05 +02:00
Earlopain
c3d9a5c28e
[QueryBuilder] Convert source and delreason to add_to_query
2023-08-20 12:05:45 +02:00
Earlopain
19a74bc2e3
[QueryBuilder] Remove back-and-forth conversion with sql/elastic
2023-08-20 11:43:36 +02:00
Earlopain
df4112d720
[QueryBuilder] Support multiple metatags for a bunch of cases
2023-08-19 22:43:12 +02:00
Earlopain
23eddc4a5a
[QueryBuilder] Allow multiple lock types in single search query
2023-08-19 21:11:26 +02:00