Skip to content

[WJ-1361] implement PageQueryService::select() with SelectedFields - #2819

Open
0x5267 wants to merge 4 commits into
developfrom
wj-1361-page-query-select
Open

[WJ-1361] implement PageQueryService::select() with SelectedFields#2819
0x5267 wants to merge 4 commits into
developfrom
wj-1361-page-query-select

Conversation

@0x5267

@0x5267 0x5267 commented Apr 4, 2026

Copy link
Copy Markdown
Contributor
  • Add SelectedFields, SelectedField, SelectedPageRow, and SelectedPages types
  • Implement PageQueryService::select() to extract requested fields from FoundPages
  • Handles category extraction from slug, date formatting, hidden tag filtering
  • Unimplemented fields (score_votes, revisions, comments, children, size) return null for now

@0x5267
0x5267 requested a review from emmiegit as a code owner April 4, 2026 20:31
@codecov

codecov Bot commented Apr 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 57 lines in your changes missing coverage. Please review.
✅ Project coverage is 19.25%. Comparing base (0b4df8b) to head (0d6dc16).
⚠️ Report is 312 commits behind head on develop.

Files with missing lines Patch % Lines
deepwell/src/services/page_query/service.rs 0.00% 55 Missing ⚠️
deepwell/src/services/page_query/structs.rs 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2819      +/-   ##
===========================================
- Coverage    19.45%   19.25%   -0.21%     
===========================================
  Files          191      191              
  Lines        12267    12324      +57     
===========================================
- Hits          2387     2373      -14     
- Misses        9880     9951      +71     
Files with missing lines Coverage Δ
deepwell/src/services/page_query/structs.rs 0.00% <0.00%> (ø)
deepwell/src/services/page_query/service.rs 0.00% <0.00%> (ø)

... and 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread deepwell/src/services/page_query/service.rs Outdated
Comment thread deepwell/src/services/page_query/structs.rs Outdated
Comment thread deepwell/src/services/page_query/structs.rs Outdated
Comment thread deepwell/src/services/page_query/service.rs Outdated
Comment thread deepwell/src/services/page_query/service.rs Outdated
Comment thread deepwell/src/services/page_query/service.rs Outdated
Comment thread deepwell/src/services/page_query/service.rs Outdated
@emmiegit
emmiegit force-pushed the wj-1361-page-query-select branch from 767a919 to db2932c Compare April 10, 2026 03:42
Comment thread deepwell/src/services/page_query/service.rs Outdated
dependabot Bot and others added 2 commits April 11, 2026 14:32
Bumps the npm_and_yarn group with 1 update in the /framerail directory: [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit).


Updates `@sveltejs/kit` from 2.55.0 to 2.57.1
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.57.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.57.1
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
@0x5267
0x5267 requested review from Zokhoi and hoah2333 as code owners April 11, 2026 12:32
@0x5267
0x5267 requested a review from emmiegit April 11, 2026 12:33
None
},
category: if fields.contains(SelectedField::Category) {
row.slug.as_deref().map(|s| get_category_name(s).to_owned())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is closer, though I was saying I think we should also modify the struct type row uses to have full_slug, page_slug, and category, so here we're just moving the field instead of processing it.

(That is, this processing, e.g. get_category_name(), is done when building SelectedPageRow instead of here)

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