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 measurement processing workflow #363

Merged
42 commits merged into from
Apr 11, 2020
Merged

Add measurement processing workflow #363

42 commits merged into from
Apr 11, 2020

Conversation

jackxujh
Copy link
Contributor

@jackxujh jackxujh commented Apr 10, 2020

This pull request introduces a new workflow for creating measurements in the database. It will take the received measurement from the API or Simulator, and process it, followed by saving to the database.

This PR now includes:

  • Measurement processing workflow design based on discussion in class.
  • Brand new and updated tests that ensure functionality works as expected.

@alldne alldne self-requested a review April 11, 2020 00:40
@ghost
Copy link

ghost commented Apr 11, 2020

+702 -457 is a big merge. Can you break this up into smaller, easier to review merges?

@ghost ghost closed this Apr 11, 2020
@jackxujh
Copy link
Contributor Author

jackxujh commented Apr 11, 2020

@ray310 This pull request is not small. However, this pull request consists of only one functionality. And because of this functionality, many tests need to be refactored, otherwise they will break. In this sense, this pull request consist of one "logical" change. I am not sure how I can split it into smaller pull requests. Do you think there are some ways to split it up that I overlooked?

@jackxujh jackxujh reopened this Apr 11, 2020
@MichaelLally
Copy link
Contributor

I'm going through to review this now

ag_data/formulas/ingestion_engine.py Show resolved Hide resolved
ag_data/formulas/ingestion_engine.py Show resolved Hide resolved
ag_data/formulas/ingestion_engine.py Show resolved Hide resolved
ag_data/formulas/library/system/mercury_formulas.py Outdated Show resolved Hide resolved
ag_data/formulas/library/system/mercury_formulas.py Outdated Show resolved Hide resolved
ag_data/formulas/library/system/mercury_formulas.py Outdated Show resolved Hide resolved
ag_data/presets/helpers.py Show resolved Hide resolved
ag_data/presets/helpers.py Show resolved Hide resolved
ag_data/simulator.py Show resolved Hide resolved
Copy link
Contributor

@MichaelLally MichaelLally left a comment

Choose a reason for hiding this comment

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

LGTM

@ghost ghost merged commit 55b3330 into gcivil-nyu-org:backend/develop Apr 11, 2020
@jackxujh
Copy link
Contributor Author

@ray310 Ray, could we revert this PR for now, and merge it later today, if you are not in a hurry to use its functionality? This pull request has been requested for changes.

@jackxujh
Copy link
Contributor Author

@alldne Thank you for the heartfelt review and feedback!

Most comments you provided now have some corresponding code changes either within the merger of this PR, or in #376. Please check if the fixes are sound.

On the other hand, the 3 remaining conversations are now moved to separate issues due to larger footprints to fix.

This pull request was closed.
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.

Create a workflow for measurement processing, with a preset of flow sensor
3 participants