Repository navigation
feat: Hide one off props #103
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
43e5571
fix(migrations): split the property clear into three migrations
disconsented 094ede7
feat(search): add a created filter, presets and two sort orders
disconsented 4e4dff0
refactor(properties): use the field shorthand in a trace call
disconsented 0f889e8
style: format the search form and order enum
disconsented d4ad5dc
feat(items): hide items that Steam reports as unavailable
disconsented ebf2cde
fix(search): rename the depended-on preset
disconsented 5a87ace
perf(web): share one compression hoop across routes
disconsented 10bce61
feat(items): make the whole item card a link
disconsented 65766a3
feat(classification): tag continued mods with a continuation type
disconsented c9ea6e2
fix(items): insert the item before the classifier queues it
disconsented bee6849
feat(properties): hide system properties that only one item has
disconsented b09f36f
refactor: remove dead code and fix clippy findings
disconsented d46b6fa
test(search): pass the new query_inner arguments
disconsented f0503c3
style(ui): sort the author link classes
disconsented 5194c14
test(items): add the hidden field to the test schemas
disconsented 56ee3b3
refactor(items): log hidden items at trace level
disconsented 5109428
fix(items): add right padding to the item body
disconsented 159fd45
refactor: fix clippy pedantic findings
disconsented f52902a
refactor(search): spell out the date filter parameter names
disconsented c2ae519
refactor(db): split the model module into one file per type
disconsented 27d98b7
refactor(tags): expect the mutable key type lint
disconsented File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| -- Clear all the indexes just in case | ||
| REBUILD INDEX property_full_text_property ON properties CONCURRENTLY; | ||
| REBUILD INDEX unique_workshop_item_properties ON workshop_item_properties CONCURRENTLY; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| UPDATE workshop_items SET ml_last_run = NONE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| DEFINE INDEX item_created ON workshop_items FIELDS created CONCURRENTLY; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| DEFINE FIELD hidden ON workshop_items TYPE bool DEFAULT false PERMISSIONS FULL; | ||
| UPDATE workshop_items SET hidden = false; | ||
| DEFINE INDEX item_hidden ON workshop_items FIELDS hidden CONCURRENTLY; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| -- New properties from the ML are "hidden" (-2) until they occur more than once, then they're accepted directly. | ||
| -- Should cut down on the one offs. | ||
| DEFINE FIELD OVERWRITE status ON workshop_item_properties TYPE -2 | -1 | 0 | 1 DEFAULT 0 PERMISSIONS FULL; | ||
| -- Hide all the one offs | ||
| LET $groups = ( | ||
| SELECT | ||
| id, | ||
| out, | ||
| in.*.app as app | ||
| FROM workshop_item_properties | ||
| WHERE | ||
| source = "system" | ||
| AND status == 1 | ||
| GROUP BY out, app | ||
| ).filter( | ||
| |$property_group| { | ||
| $property_group.id.len() == 1; | ||
| } | ||
| ); | ||
| FOR $group IN $groups { | ||
| FOR $id IN { | ||
| $group.id; | ||
| } { | ||
| UPDATE $id SET status = -2; | ||
| }; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.