✨ Add Data safety information to search results #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "devhelper47607/v2-api:feat/search-data-safety"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Companion change for playsearch.kaki87.net/v2-web#41 (Data safety column).
The client (
playsearch.kaki87.net/v2-client) only transports what this server streams over Server-Sent Events, so the information summarized by the planned web column must be produced here.Problem
For each Google Play result,
/searchcurrently streams: the search list item, the full app details and the permission list. The Google Play Data safety section (data collected, data shared, encryption in transit, data-deletion practice) is never fetched.Root cause
google-play-scraperexposes a dedicateddatasafety()endpoint next toapp()andpermissions(), but the/searchSSE handler never calls it.Solution
/searchper-app fan-out queue, requestgooglePlay.datasafety({ appId })and push{ appId, dataSafety }into the SSE stream; the payload mirrors the upstream dump (collectedData,sharedData,securityPractices,privacyPolicyUrl).dataSafety: {}marker, so one slow or missing app never aborts the whole stream or blocks later phases.DONEmarker is still pushed once the queue has drained, preserving the current client behavior.Files changed
index.js: one best-effort fan-out phase in/search.Verification
node --check index.js: success.node index.js) and requested/search?query=telegram: SSE responses includeddataSafetyupserts (e.g.com.viber.voip→ 25 collected types, 7 shared types, practices “Data is encrypted in transit” and “You can request that data be deleted”); the stream ended withDONEas before.Impact
v2-client, existingv2-web) are unaffected.v2-webrepository.Companion change for this PR: playsearch.kaki87.net/v2-web#49 — the web Data safety column that consumes the
{ appId, dataSafety }SSE messages introduced here (per-rowCollected/Shared only/Encryptedvalues plus a tooltip on the four Data-safety criteria).Verified live end-to-end together: a search for
telegramproduced the regular SSE app/permissions messages plusdataSafetyupserts (e.g.com.viber.voipwith 25 collected data types and 7 shared data types), ending withDONE; the web build renders the new column and degrades to-when an app returns no data.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.