Repository navigation
feat(webdav): add facets to REPORT hits - #3652
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | -6 |
🟢 Coverage 100.00% diff coverage
Metric Results Coverage variation Report missing for 9afb99f1 Diff coverage ✅ 100.00% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (9afb99f) Report Missing Report Missing Report Missing Head commit (c3d9b93) 94484 28535 30.20% Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#3652) 33 33 100.00% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Timestamp serialization currently discards valid fractional-second precision.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Adds search facets to WebDAV REPORT hits using the same XML structure as PROPFIND.
Changes:
- Serializes seven search facet types into XML.
- Adds coverage for facet formatting and escaping.
- Promotes
strcaseto a direct dependency.
| File | Description |
|---|---|
services/webdav/pkg/service/v0/search.go |
Adds generic facet serialization. |
services/webdav/pkg/service/v0/search_test.go |
Tests generated facet XML. |
go.mod |
Promotes the serialization dependency. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
The search REPORT only returns the facets of its hits with opencloud-eu/opencloud#3652. Until that is available the still image time of a video found through the search comes from a file info request.
a6a7496 to
0e8f883
Compare
The search REPORT only returns the facets of its hits with opencloud-eu/opencloud#3652. Until that is available the still image time of a video found through the search comes from a file info request.
0e8f883 to
47d716a
Compare
47d716a to
7602c6a
Compare
The search service returns audio, location, image, photo, video, motion photo and live photo with every hit, the REPORT response only carried photo and location, as flat oc:photo-* props. All facets are now rendered in the xml shape PROPFIND uses, so a client reads both the same way. This replaces the flat props.
7602c6a to
927df2b
Compare

The search service returns the audio, location, image, photo, video, motion photo and live photo facets with every hit, but the REPORT response only carries photo and location, as flat
oc:photo-*props (#4096).The web client needs them in two places:
size - motionPhoto.videoSize.livePhoto.contentId. Without facets in the hit it needs a PROPFIND on top, only to readstillImageTimeUsfor the right start time.The hits now carry all facets in the xml shape PROPFIND uses, rendered generically from the search message, so a client parses both the same way. This replaces the flat
oc:photo-*props from #4096, which are not in a release yet. No proto, index or reva change. A stopgap until the graph search returns driveItems with facets.