Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the motion activity inputs to support version 11.0.1 of google… #642

Merged
merged 1 commit into from
Mar 25, 2019

Conversation

shankari
Copy link
Contributor

… play services

As part of the last android update (e-mission/e-mission-docs#325 (comment)), we updated the phonegap-push-plugin from
1.9.2 to 2.2.3. This also added a dependency on the firebase 11.0.1 libraries,
so we had to update our google-play-services library to 11.0.1 across the
board.

As always, this changes the field names corresponding to the type and the confidence,
so we need to upgrade the formatter, similar to 3dc3e60#diff-9ac627c6813517845b71887afb3cbb11, 903274d#diff-9ac627c6813517845b71887afb3cbb11, ....

… play services

As part of the last android update, we updated the phonegap-push-plugin from
1.9.2 to 2.2.3. This also added a dependency on the firebase 11.0.1 libraries,
so we had to update our google-play-services library to 11.0.1 across the
board.

As always, this changes the field names corresponding to the type and the confidence,
so we need to upgrade the formatter, similar to e-mission@3dc3e60#diff-9ac627c6813517845b71887afb3cbb11, e-mission@903274d#diff-9ac627c6813517845b71887afb3cbb11, ....
@shankari
Copy link
Contributor Author

Testing done:

$ ./e-mission-py.bash bin/debug/load_timeline_for_day_and_user.py emission/tests/data/real_examples/urap_student_car_as_bike_2018-03-07 test_physical_phone_api_26
After registration, test_physical_phone_api_26 -> 81ff6793-cbab-43b4-ad58-7ceb16be2b94
Finished loading 0 entries into the usercache and 1153 entries into the timeseries

Download the userCacheDB

$ sqlite3 ~/Downloads/userCacheDB\(2\)
sqlite> select data from userCache where key == "background/motion_activity";
{"zzbhB":3,"zzbhC":100}

After updating the code, force sync from the phone and run the intake pipeline

2019-03-24 16:39:36,185:INFO:140736140661632:**********UUID 81ff6793-cbab-43b4-ad58-7ceb16be2b94: moving to long term**********
2019-03-24 16:39:36,199:DEBUG:140736140661632:Found 444 messages in response to query {'
user_id': UUID('81ff6793-cbab-43b4-ad58-7ceb16be2b94'), '$or': [{'metadata.type': 'message'}, {'metadata.type': 'sensor-data'}, {'metadata.type': 'rw-document'}]}
....
2019-03-24 16:39:36,899:DEBUG:140736140661632:module_name = emission.net.usercache.formatters.android.motion_activity
2019-03-24 16:39:36,902:DEBUG:140736140661632:write_ts = 1553468858.515

There were no errors before and after running the pipeline

In [3]: edb.get_timeseries_error_db().find().count()
Out[3]: 0

In [4]: edb.get_timeseries_error_db().find().count()
Out[4]: 0

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/e-mission-server-prb/1088/
Test PASSed.

@shankari shankari merged commit 1739d60 into e-mission:master Mar 25, 2019
jf87 pushed a commit to jf87/e-mission-server that referenced this pull request Jun 21, 2021
Update the motion activity inputs to support version 11.0.1 of google…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants