Skip to content

feat(stovepipe): Show most broken projects first - #903

Draft
prathshenoy wants to merge 1 commit into
feat/stovepipe-project-order-indexfrom
feat/stovepipe-degree-order
Draft

prathshenoy wants to merge 1 commit into
feat/stovepipe-project-order-indexfrom
feat/stovepipe-degree-order

Conversation

@prathshenoy

@prathshenoy prathshenoy commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

What:

  • List indexed project results from most broken to least broken with project-only continuation tokens, starting with newly processed results rather than migrating older requests.
  • Preserve caller-supplied order for targeted requests and detect inconsistent indexed results.

Why:

  • Bound listing work to the requested page without historical fallback scans or sorting a non-key database attribute.

Test Plan

  • Add unit tests.
  • Verify service API and browser pagination against real services.
  • Deploy index writers before adopting these readers; no historical population is required.

Revert Plan

  • Revert this PR to restore project-ID listing. Keep index maintenance and the additive table in place; authoritative facts are unchanged.

Issue Links

@prathshenoy
prathshenoy force-pushed the feat/stovepipe-degree-order branch from 38ee0d7 to 4833752 Compare October 21, 2026 13:04
@prathshenoy
prathshenoy marked this pull request as draft October 21, 2026 14:58
}

query += ` ORDER BY degree DESC, project ASC LIMIT ?`
args = append(args, limit)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the lookup here more key-value based: Get the matching requests, then sort them in the response. If necessary, we could do a separate "broken projects" lookup table that serves as an index to easily get the IDs of the broken ones.

@prathshenoy
prathshenoy force-pushed the feat/stovepipe-degree-order branch 2 times, most recently from 1d76e2f to feb9157 Compare October 21, 2026 19:57
@prathshenoy
prathshenoy changed the base branch from main to feat/stovepipe-project-order-index October 21, 2026 19:57
@prathshenoy
prathshenoy force-pushed the feat/stovepipe-project-order-index branch from dde2b9a to f87bf65 Compare October 21, 2026 20:39
@prathshenoy
prathshenoy force-pushed the feat/stovepipe-degree-order branch from feb9157 to fd69b81 Compare October 21, 2026 20:42

This branch has not been deployed

No deployments
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