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

Refactored measurement page using refactored API #486

Merged
merged 9 commits into from
Oct 1, 2020

Conversation

sarathms
Copy link
Contributor

@sarathms sarathms commented Sep 4, 2020

Fixes #489

Uses the new /api/v1/measurement_meta API to fetch measurement data.

  • Revert 8d0f1c7 before merging We decided to continue to use the ams-pg.ooni.org hostname for now.

@bassosimone bassosimone marked this pull request as ready for review September 17, 2020 10:50
@bassosimone
Copy link
Contributor

@sarathms let's take at look at this together later today? 🙏

@bassosimone bassosimone changed the title Refactored measurement page using new API Refactored measurement page using refactored API Sep 17, 2020
}

Measurement.propTypes = {
measurement: PropTypes.object.isRequired,
measurement: PropTypes.object,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sarathms please make sure we list all the props here

Copy link
Contributor

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code looks good to me. We should probably take another look at it later today, to exchange further ideas, but it's good work and definitely on the right track. Thank you!

bassosimone added a commit to ooni/e2etesting that referenced this pull request Sep 22, 2020
We're aiming for writing a full end to end experiment where the code
performs measurements and then fetches them back from API.

However, the API code currently does not store measurements submitted by
us using ams-pg.ooni.org, so we cannot go that far.

Yet, let us have support for this functionality, which has been tested
by adapting ooni/explorer#486.

Also, for now just write basic smoke testing. The diff itself details
a plan for integrating this code into probe-engine. When we'll do that
we'll most likely want to write more testing code.

This work is part of ooni/backend#446.
bassosimone added a commit to ooni/e2etesting that referenced this pull request Sep 22, 2020
We're aiming for writing a full end to end experiment where the code
performs measurements and then fetches them back from API.

However, the API code currently does not store measurements submitted by
us using ams-pg.ooni.org, so we cannot go that far.

Yet, let us have support for this functionality, which has been tested
by adapting ooni/explorer#486.

Also, for now just write basic smoke testing. The diff itself details
a plan for integrating this code into probe-engine. When we'll do that
we'll most likely want to write more testing code.

This work is part of ooni/backend#446.
Copy link
Contributor

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should merge now and without reverting anything. Because we only deploy releases, our master branch represents a development snapshot towards the goal we have in mind for the next release. Therefore, I believe it's in our best interest to bring this good set of changes to master such that we can immediately start using them along with others.

🐳

@sarathms sarathms merged commit d819f1b into master Oct 1, 2020
@bassosimone bassosimone deleted the use-get-measurement branch October 1, 2020 15:54
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.

Make sure explorer uses the refactored API
2 participants