Skip to content

default sort by favorites #467

@jacobvenable

Description

@jacobvenable

related to #465 and #466

Description

When retrieving resources by category or subcategory, our API endpoint returns the list sorted by those open as well as those closest to the user. It'd be useful to update this sort to consider the user's favorites.

Checklist

  • when retrieving resources by a category and sub-category, and the user has favorites, the list of resources provided is sorted in the following order by default:
  1. resources that are open AND favorited sorted by those closest to the user
  2. resources that are open and NOT favorited sorted by those closest to the user
  3. resources that are closed AND favorited sorted by those closest to the user
  4. resources that are closed and NOT favorited sorted by those closest to the user
  • when retrieving resources by a category and sub-category, and the user does not have favorites, the list of resources is not sorted by favorites

Tech Notes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions