-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add support for tracking the is_uploaded status in the results table #312
Conversation
* Add unit tests for measurement upload status This implements: ooni/probe#1457
👀 Thank you! I will review and merge this diff after 3.10.0-beta is out. (With 3.10.0-beta, we aim to solve ooni/probe#1444, which is an Android-only issue; with that fixed, we can then focus on probe-cli and integrate this diff.) |
This diff implements part of the release checklist at ooni/probe#1439. The plan is to bless a beta release and use it for further testing on Android devices. Afterward, we need to apply some extra changes to the `cli` (including #314 and #312). Finally, we will bless a full 3.10.0 release.
@@ -57,7 +57,7 @@ func GetMeasurementJSON(sess sqlbuilder.Database, measurementID int64) (map[stri | |||
log.Errorf("failed to run query %s: %v", req.String(), err) | |||
return nil, err | |||
} | |||
if measurement.IsUploaded { | |||
if measurement.Measurement.IsUploaded { |
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.
Now both Measurement
and Result
have IsUploaded
. To disambiguate we need to explicitly specify that we want to select the IsUploaded
attribute of the Measurement
.
This diff implements part of the release checklist at ooni/probe#1439. The plan is to bless a beta release and use it for further testing on Android devices. Afterward, we need to apply some extra changes to the `cli` (including ooni#314 and ooni#312). Finally, we will bless a full 3.10.0 release.
…oni#312) * Add support for tracking the is_uploaded status in the results table * Add unit tests for measurement upload status This implements: ooni/probe#1457 * Update cmd/ooniprobe/internal/database/actions.go Co-authored-by: Simone Basso <[email protected]>
This implements: ooni/probe#1457