-
Notifications
You must be signed in to change notification settings - Fork 9
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
chore: refactor to stop using the cache #95
Conversation
20bfd82
to
f450dde
Compare
subset_request = subset_request_from_file(request_file) | ||
subset_request.from_file(request_file) | ||
if not subset_request.dataset_id: | ||
raise ValueError("Please provide a dataset id for a subset request.") | ||
if motu_api_request: | ||
motu_api_subset_request = convert_motu_api_request_to_structure( | ||
motu_api_request | ||
) | ||
subset_request.update(motu_api_subset_request.__dict__) | ||
request_update_dict = { |
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.
are we sure that you can delete the update of the id? nothing weird with python variables?
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.
I don't think so but better be on the side of caution
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.
I checked and it seems to work with the obvious cases
raise syntax_error | ||
else: | ||
dataset_id = subset_request.dataset_id | ||
raise SyntaxError("Must specify 'dataset_id' option") |
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.
To delete
785d7df
to
0f1a7d4
Compare
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly fix: use pendulum to parse dates chore: use pendulum accross the repo fix: to pendulum datetime from boto3 fix: microsecond problem with boto3
Not using any cache anymore Always get the data on the fly fix: use pendulum to parse dates chore: use pendulum accross the repo fix: to pendulum datetime from boto3 fix: microsecond problem with boto3
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Not using any cache anymore Always get the data on the fly
Fix: CMT-2 and stop using the cache