[Office Hours] HK types and concurrency issue when reading from Firestore #77
Unanswered
carolinentran
asked this question in
Office Hours
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Related Discussion
@evelyn-hur and I are working on privacy controls for Prisma. We currently are running into issues with the HK types when trying to pass a quantity type to
getPath().
We tried usinggetPath(module = .health(quantityType)
but it seems we may be misunderstanding the parameter taken in by.health()
. I was able to find a different solution that works but would like to restructure it to match the current codebase.We also are working on reading in the timestamps for datapoints types like "stepcount" into a list on the frontend. We're running into concurrency issues so we would like feedback on how to better structure the function or where to better place the function.
Reproduction
In DeleteDataView within PrivacyControls, we called
addDeleteFlag()
and passed in aquantityType
string and atimestamp
string.addDeleteFlag()
callsgetPath()
and passes in the samequantityType
. This causes a type error becausequantityType
is not used as a string withingetPath()
Additional context
This is the UI we would like to use for data redaction. We hope to represent the quantityType as the corresponding activity category and the timestamp as a string for now -- until we are able to ensure that communication between the app and firestore is fully functional.
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions