Closed lukeoftheshire closed 2 years ago
@lukeoftheshire We'll also have to make a list of these inconsistencies and eventually write a database-fixer script. We can't and shouldn't be handling everything in Cortex, that's bad practice.
@lukeoftheshire @avaidyam https://github.com/BIDMCDigitalPsychiatry/LAMP-platform/issues/506#issuecomment-1046890343 @avaidyam It was asked to use 'type' key for this. We have all the sensor events(open_page) from dashboard with type key. So could you please confirm changing this?
Just gonna chime in to say that we've refactored the code that led to us discovering the issue -- I actually now think it may be better to use type
to minimize the number of keywords used across LAMP
in iOS and Android, for all lamp.analytics
, we are using following events as action
"login"
"notification"
"logout"
"log"
"lowpowermode"
So should we update all as type
rather than action
?
@avaidyam Could you confirm my above comment ?
@sarithapillai8 @jijopulikkottil Let's stick to type
as @lukeoftheshire says. Please replace action
as well, but please make sure LAMP-worker
is able to use either, for backwards compatibility reasons.
@avaidyam . We will be having some changes in LAMP-worker.
@avaidyam Renamed action to type in Android & iOS and given for QA testing.
We have updated in Staging
@avaidyam We have pushed the android build to beta and it is in review status.
This seems to be fixed in staging!
Events fire with different keys depending on whether you log-in from a phone or internet:
Notice that the login via the web fires with
type
:login
, where the login via the app fires withaction
:login
These should be consistent across all ways to access LAMP - ~I'd favor changing both to
action
~ see my comment below - I actually now thinktype
might be more appropriate