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

Add support for tracking the is_uploaded status in the results table #312

Merged
merged 4 commits into from
Apr 30, 2021

Conversation

hellais
Copy link
Member

@hellais hellais commented Apr 22, 2021

  • Add unit tests for measurement upload status

This implements: ooni/probe#1457

* Add unit tests for measurement upload status

This implements: ooni/probe#1457
@hellais hellais requested a review from bassosimone as a code owner April 22, 2021 12:33
@bassosimone
Copy link
Contributor

👀 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.)

bassosimone added a commit that referenced this pull request Apr 28, 2021
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 {
Copy link
Contributor

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.

@bassosimone bassosimone merged commit ac7d7dc into master Apr 30, 2021
@bassosimone bassosimone deleted the upload-status-result-list branch April 30, 2021 15:08
ainghazal pushed a commit to ainghazal/probe-cli that referenced this pull request Mar 8, 2022
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.
ainghazal pushed a commit to ainghazal/probe-cli that referenced this pull request Mar 8, 2022
…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]>
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