Skip to content

Commit

Permalink
Add TODO with reference to related JIRA
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Oct 16, 2024
1 parent d96e279 commit dd3a3c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/palace/manager/feed/serializer/opds2.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ def _serialize_feed_links(self, feed: FeedData) -> dict[str, Any]:
facet_links: dict[str, Any] = defaultdict(lambda: {"metadata": {}, "links": []})
for link in feed.facet_links:
if is_sort_link(link):
# TODO: When we remove the facet-based sort links [PP-1814],
# this code path will be removed and we'll want to pull the sort
# link data from the feed.sort_links once that is in place.
link_data["links"].append(self._serialize_sort_link(link))
else:
group = getattr(link, "facetGroup", None)
Expand Down

0 comments on commit dd3a3c2

Please sign in to comment.