-
Notifications
You must be signed in to change notification settings - Fork 34
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
Merge generic code (primarily stats) from tripaware/ceo_ebike to master #679
Comments
The item height was introduced in e-mission/e-mission-phone@e110f3f#diff-e694b32469d49b6682b8a207844dab1a6950a61c487d58216b109e9a0c1ccc85R34 and like most code by @krisma, has a hardcoded value and no documentation. We didn't have it before, so I am not even sure the item-height is required. |
Looking at this further, this is because the
|
The Using standard angular
|
Going back to collection repeat, and then changing the actual transform values did work, but that seems a pretty complicated calculation to make, and one which will basically reproduce the code in ionic. And we are not even going to stay with ionic over the long term. So here's my proposal to fix that:
Let's see if the hack works |
The map in the diary screen has a height (derived from the item height, as we just saw).
We explicitly added the fixed value on iOS because the map is completely hidden otherwise. I wonder if motorola has a custom webview that behaves more like iOS. Let's just remove the android hack and see if it fixes the problem. |
This fixes issues in which the labels are partially hidden on some phones, and is a reasonable workaround for the inability to test with multiple phones. We could even consider allowing users to save their perfect height in a local setting later so they don't have to keep changing the settings every time. I tried to do this automatically, but failed with the current UI e-mission/e-mission-docs#679 (comment)
While implementing the fix to fill in additional fields (e.g. |
Loaded diary trips for 4th august 2016. Seemed to process all trips - 4th, 5th, 6th, etc.
|
Ah the error is because
On going to the next page...
It looks like we are reading all trips until the end of today, not that day. This is likely to be particularly problematic in the case where the user has a significant history and goes way back in it, and may be at least a partial contributor to "diary loading is slow". Just to confirm, this code has been unchanged since the unprocessed trip functionality was first implemented. |
Ah, although this particular code was unchanged, the restructuring in e-mission/e-mission-phone@f3ea875 was a bit sloppy, and meant that for
Since complete status was undefined, we read unprocessed trips, and since |
The retrieval code was refactored for greater performance e-mission@f3ea875 However, this introduced some minor regressions. e-mission/e-mission-docs#679 (comment) which were caused due to incorrect parameter passing and resulting "undefined" values. e-mission/e-mission-docs#679 (comment) Testing done: while reading data for 4th August ---- we detect that the pipeline has finished running ``` INFO:Selected date is :1470294000000 getting pipeline complete timestamp DEBUG:complete_ts = 1470951950.271(Thu Aug 11 2016 14:45:50 GMT-0700) end of current day = 1470380399(Thu Aug 04 2016 23:59:59 GMT-0700) retVal = true Returning 1470951950.271,true ``` we only read entries after `1470951950.271 = 2016-08-11T21:45:50.271000+00:00` ``` getRawEntries: about to get pushGetJSON for the timestamp About to return message {"key_list":["manual/mode_confirm"],"start_time":1470951950.271,"end_time":1634403476,"key_time":"metadata.write_ts"} getRawEntries: about to get pushGetJSON for the timestamp About to return message {"key_list":["manual/purpose_confirm"],"start_time":1470951950.271,"end_time":1634403476,"key_time":"metadata.write_ts"} ``` we got a fair number of unprocessed inputs, mainly because we only filled in the inputs way after the pipeline ``` About to show 'Reading from server' DEBUG:About to dedup localResult = 0remoteResult = 52 DEBUG:Deduped list = 52 DEBUG:About to dedup localResult = 0remoteResult = 55 DEBUG:Deduped list = 55 unprocessed manual inputs 52 MODE, 55 PURPOSE ``` And we only processed trips from the 4th. ``` DEBUG:while reading data for 1470294000000 from server, got nTrips = 9 About to hide 'Reading from server' Finished hiding ionicLoading, returning list of size 9 Reading trips from server finished successfully with length 9 completeStatus = true trip count = 9, calling processTripsForDay About to show 'Processing trips' 0:2016-08-04T10:03:51.235000-10:00, 1880.7650001049042 1:2016-08-04T10:41:32.136385-10:00, 8056.584614753723 2:2016-08-04T13:10:38.739684-10:00, 605.260315656662 3:2016-08-04T13:40:36.959000-10:00, 135.75 4:2016-08-04T13:46:26.561801-10:00, 745.4381992816925 5:2016-08-04T14:06:52.592000-10:00, 280.5680000782013 6:2016-08-04T14:18:35.840464-10:00, 936.7305357456207 7:2016-08-04T14:39:38.288795-10:00, 5956.420205116272 8:2016-08-04T16:34:45.744782-10:00, 232.60321807861328 Processing trip starting at 2016-08-04T13:10:38.739684-10:00 {data: {…}, start_place: {…}, style: ƒ, onEachFeature: ƒ, pointToLayer: ƒ, …} Processing trip starting at 2016-08-04T13:40:36.959000-10:00 {data: {…}, start_place: {…}, style: ƒ, onEachFeature: ƒ, pointToLayer: ƒ, …} Processing trip starting at 2016-08-04T13:46:26.561801-10:00 {data: {…}, start_place: {…}, style: ƒ, onEachFeature: ƒ, pointToLayer: ƒ, …} Processing trip starting at 2016-08-04T14:06:52.592000-10:00 {data: {…}, start_place: {…}, style: ƒ, onEachFeature: ƒ, pointToLayer: ƒ, …} Processing trip starting at 2016-08-04T14:18:35.840464-10:00 {data: {…}, start_place: {…}, style: ƒ, onEachFeature: ƒ, pointToLayer: ƒ, …} Processing trip starting at 2016-08-04T14:39:38.288795-10:00 {data: {…}, start_place: {…}, style: ƒ, onEachFeature: ƒ, pointToLayer: ƒ, …} Processing trip starting at 2016-08-04T16:34:45.744782-10:00 {data: {…}, start_place: {…}, style: ƒ, onEachFeature: ƒ, pointToLayer: ƒ, …} About to hide 'Processing trips' ```
First round of fixes: Second round of fixes: |
This fixes issues in which the labels are partially hidden on some phones, and is a reasonable workaround for the inability to test with multiple phones. We could even consider allowing users to save their perfect height in a local setting later so they don't have to keep changing the settings every time. I tried to do this automatically, but failed with the current UI e-mission/e-mission-docs#679 (comment)
To see if it fixes e-mission/e-mission-docs#679 (comment) It is already a fixed height on iOS because otherwise it doesn't work 089797e
The top bar on the "infinite scroll" screen is already cluttered, and sometimes there are overlaps. Adding one more button introduces overlaps even where we didn't have them before. We should really replace the button-based labels at the top with icons, or convert to a drop-down. e-mission/e-mission-docs#679 (comment)
The top bar on the "infinite scroll" screen is already cluttered, and sometimes there are overlaps. Adding one more button introduces overlaps even where we didn't have them before. We should really replace the button-based labels at the top with icons, or convert to a drop-down. e-mission/e-mission-docs#679 (comment)
The top bar on the "infinite scroll" screen is already cluttered, and sometimes there are overlaps. Adding one more button introduces overlaps even where we didn't have them before. We should really replace the button-based labels at the top with icons, or convert to a drop-down. e-mission/e-mission-docs#679 (comment)
Let's keep track of them here without mucking up the current merge.
e-mission/e-mission-phone@7836019
Make the km vs. miles configurable
e-mission/e-mission-phone@22d38af
Adjust card size (currently cutoff after merge from master)
e.g. https://www.geeksforgeeks.org/how-to-dynamically-get-the-content-height-of-a-div-using-angularjs/
The text was updated successfully, but these errors were encountered: