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

WIP Issue #29 - Add batch capability for running analytics over historical results (e.g. after uploading data from SD cards) #30

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

JSegrave-IBM
Copy link
Collaborator

Issue #29 - Add batch capability for running analytics over historical results (e.g. after uploading data from SD cards)

… over historical results (e.g. after uploading data from SD cards)
… over historical results (e.g. after uploading data from SD cards)
@krook krook changed the title Issue #29 - Add batch capability for running analytics over historical results (e.g. after uploading data from SD cards) WIP Issue #29 - Add batch capability for running analytics over historical results (e.g. after uploading data from SD cards) Mar 24, 2021
# Return 404 (Not Found) if the record IDs are invalid
if (date is None) :
logger.error('Missing parameters : '+DATE_PARAMETER+' : '+str(date))
abort(404)
Copy link
Member

Choose a reason for hiding this comment

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

Comment - @Gaurav-Ramakrishna @upkarlidder

Should this error be

FYI @JSegrave-IBM

def batch_run_analytics_by_date():

try:
date = request.args.get(DATE_PARAMETER)
Copy link
Member

Choose a reason for hiding this comment

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

@JSegrave-IBM should we validate the date here? We just check for None.

Copy link
Member

@upkarlidder upkarlidder left a comment

Choose a reason for hiding this comment

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

@JSegrave-IBM added some comments.

Can we also write a unit test or something to test it out before pushing it into master?

… records in the batch window (also refactored batch_run_analytics to be a little clearer - it takes a start & end time now (rather than a schedule of individual minutes)
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