You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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 using getPath(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 a quantityType string and a timestamp string. addDeleteFlag() calls getPath() and passes in the same quantityType. This causes a type error because quantityType is not used as a string within getPath()
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
I agree to follow this course's Code of Conduct and Contributing Guidelines
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
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