-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix Callback Error Updating store-trips.data - TypeError: 'float' object is not subscriptable fixed #121
Merged
shankari
merged 10 commits into
e-mission:master
from
TeachMeTW:fix/typeerror-float-object-not-subscriptable
Sep 12, 2024
Merged
Fix Callback Error Updating store-trips.data - TypeError: 'float' object is not subscriptable fixed #121
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0637195
See ticket#120
TeachMeTW 35ea51f
Modified Script
TeachMeTW 0dba1f4
reverted format
TeachMeTW ec642bc
modified load_mongodump to be flexible
TeachMeTW c4149c0
Simplified Script
TeachMeTW 3db763c
Delete docker-compose-dev.yml.bak
TeachMeTW d3f3650
Get DB Name from Dump
TeachMeTW a20c7db
Get DB Name from Dump
TeachMeTW 86423e4
Reverted
TeachMeTW 8aad0b1
Delete docker-compose-dev.yml.bak
TeachMeTW File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the same functionality that I had to update in #141. Your checks are much more thorough than mine, so I'll go ahead and update to match this, but I set the result to
UNKNOWN
instead ofINVALID
, and I'm wondering if we should do the same thing in both places? I choseUNKNOWN
since that is what trips where we were unable to sense a mode for most of the distance are displayed as, what purpose doesINVALID
serve here? Or maybe, what is the difference between anINVALID
sensed mode and anUNKNOWN
sensed mode?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Abby-Wheelis I am not entirely sure what
INVALID
would represent here as opposed to unknown. I believe @shankari was the one who originally wrote this line of code that I refactored. I can change it toUNKNOWN
to match #141There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TeachMeTW can you look at the commit where I wrote that code and see if I added in an explanation of why my choice? I have some vague recollection of the decision making, but the comments I wrote at the time are likely to be more clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shankari @Abby-Wheelis based on existing comments, this is how I interpreted it.
INVALID
: used to signify that the data or result is not just unknown but invalid. It implies that something went wrong or the data provided does not meet the expected format or criteria. It's a more explicit signal that the data is unusable.UNKNOWN
: indicates that the mode is not known, but does not necessarily imply that there was an error or problem with the data. It often means that the information is not available or could not be determined but is expected to be a valid state to encounter.Should we keep both Invalid and unknown or just use one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can keep both, thank you for the explanation! Hopefully once we figure out #1088 and resolve the underlying data issues there will be less
INVALID
sense modesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shankari if possible please resolve the issue if no further reviews/changes are needed