-
Notifications
You must be signed in to change notification settings - Fork 19
Filter games version 3 #1199
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
base: main
Are you sure you want to change the base?
Filter games version 3 #1199
Conversation
…t's used in more than one place
…at the message can be used on more pages
…other page of results
…rriding the game filter
…'t know if they were.
Oh, also, it's conflicted, but perhaps the deeper problem is that I'm conflicted about this PR. 😖 |
Add comment explaining "game_rows_after_filtering"
…iews Always search games for new reviews
I spent some time on this over the weekend and I think we're in better shape than I thought! In #1314 I fixed a bug where approximately all searches were doing full-scan queries. This automatically fixed the two existing homepage searches (for new games and IFDB recommends). The primary scary part of this PR was searching for reviews using Well, when I merge the `lastReviewDate` `analyze` query
Here's how I generated this analysis:
Especially note that I needed to use Here's the next steps:
With that done, I'll queue up a deploy and finally merge this thing. |
Add `lastReviewDate` to `gameRatingsSandbox01`
Patch full schema
Ok, I merged your PRs. (I didn't test anything.) |
I'm not sure how to fix the conflicts. The filetypes stuff looks familiar, but maybe from an old, unrelated PR. Aside from the filetypes stuff, I see this:
and this:
The only one that seems relevant to this PR is the "game_filter" one, so maybe we keep that? I don't know what to do with the others. |
The idea of In this PR, you just added one line to |
@dfabulich, I think I resolved this. |
I got the column orders mixed up, so when creating/updating/deleting new reviews, `gameRatingsSandbox0_mv` wasn't getting updated properly.
Fix `refresh_gameRatingsSandbox0_mv` stored procedure
The "lastreview" search prefix isn't being used. We are instead using the "recently_reviewed" sort order to get recent reviews for the home page.
This mostly follows the pattern of the gametimes view, materialized view, triggers, and update procedures, but it's possible some stuff doesn't apply
…php, with a join to recent_gamenews_mv.
…ch the game IDs from doSearch This is only partly working. I think it's successfully identifying the games with recent news, but that news is not showing up on the home page.
This seems to have fixed the query that wasn't working.
$games_with_recent_news = "'" . implode("', '",$games_with_recent_news) . "'"; | ||
echo "GAMES WITH RECENT NEWS = $games_with_recent_news"; // Delete this line after we get this working | ||
$andGameIDsMatch = "and recentgamenews_mv.game_id in ($games_with_recent_news)"; | ||
$andGameIDsMatch = "and g.id in ($games_with_recent_news) "; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this space at the end of the string in line 357 when I was trying to figure out the problem, and then didn't take it out. It might not be needed though.
Slightly more verbose message. Fixed the spacing before the message (by using
<p>
) so that the spacing is about the same whether there is one result or multiple results. Changed some variable names to be clearer (taking out "search" since the game results aren't always the result of obvious searches). Also, the formatting doesn't look so strange anymore (I never figured out the cause). There's now a default value for the $override_game_filter parameter (though I don't know if it'll help much).