-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix: Most active Places Sort by and hot scenes memory leak #581
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 12998362884Details
💛 - Coveralls |
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.
👍🏽
@@ -60,7 +60,7 @@ export const getPlaceMostActiveList = Router.memo( | |||
only_highlighted: !!bool(query.only_highlighted), | |||
positions: query.positions, | |||
hotScenesPositions: hotScenesPositions, | |||
order_by: PlaceListOrderBy.MOST_ACTIVE, | |||
order_by: PlaceListOrderBy.UPDATED_AT, |
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.
Are you sure that un the getPlaceMostActiveList
we should use UPDATED_AT
as default
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.
this change is because doesn't exist column most_active
in the table, so this will sort in SQL using updated_at
, then we are applying the sort by most_active
to the results
@@ -1,47 +1,58 @@ | |||
import Time from "decentraland-gatsby/dist/utils/date/Time" | |||
import env from "decentraland-gatsby/dist/utils/env" | |||
import fetch, { RequestInit } from "node-fetch" | |||
import deepmerge from "deepmerge" |
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.
what do you think about using radash that's in decentraland gatsby?
This PR fixes the sort by for most active places and merges the data from the legacy realms and the ea archipelago.