Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cyaiox
Copy link
Contributor

@cyaiox cyaiox commented Jan 27, 2025

This PR fixes the sort by for most active places and merges the data from the legacy realms and the ea archipelago.

Copy link

Pull Request Test Coverage Report for Build 12998362884

Details

  • 480 of 481 (99.79%) changed or added relevant lines in 7 files are covered.
  • 14 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.2%) to 94.358%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/entities/RealmProvider/utils.ts 78 79 98.73%
Files with Coverage Reduction New Missed Lines %
src/entities/Map/utils.ts 3 82.22%
src/utils/rating/contentRating.ts 11 78.41%
Totals Coverage Status
Change from base Build 12771419921: 0.2%
Covered Lines: 15953
Relevant Lines: 16701

💛 - Coveralls

Copy link
Collaborator

@braianj braianj left a 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,
Copy link
Collaborator

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

Copy link
Contributor Author

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"
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants