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

chore: refactor to stop using the cache #95

Merged
merged 6 commits into from
Jul 16, 2024

Conversation

renaudjester
Copy link
Collaborator

Fix: CMT-2 and stop using the cache

  • Dataset - product mapping is ready

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 = {
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

Copy link
Collaborator Author

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")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

To delete

@renaudjester renaudjester merged commit 95d6892 into copernicusmarine-toolbox-v2 Jul 16, 2024
2 checks passed
@renaudjester renaudjester deleted the no-cache-anymore branch July 16, 2024 13:16
uriii3 pushed a commit that referenced this pull request Jul 31, 2024
Not using any cache anymore
Always get the data on the fly
uriii3 pushed a commit that referenced this pull request Jul 31, 2024
Not using any cache anymore
Always get the data on the fly
uriii3 pushed a commit that referenced this pull request Jul 31, 2024
Not using any cache anymore
Always get the data on the fly
uriii3 pushed a commit that referenced this pull request Jul 31, 2024
Not using any cache anymore
Always get the data on the fly
uriii3 pushed a commit that referenced this pull request Jul 31, 2024
Not using any cache anymore
Always get the data on the fly
uriii3 pushed a commit that referenced this pull request Jul 31, 2024
Not using any cache anymore
Always get the data on the fly
renaudjester added a commit that referenced this pull request Aug 20, 2024
Not using any cache anymore
Always get the data on the fly
renaudjester added a commit that referenced this pull request Aug 20, 2024
Not using any cache anymore
Always get the data on the fly
renaudjester added a commit that referenced this pull request Aug 20, 2024
Not using any cache anymore
Always get the data on the fly
renaudjester added a commit that referenced this pull request Aug 20, 2024
Not using any cache anymore
Always get the data on the fly
renaudjester added a commit that referenced this pull request Aug 29, 2024
Not using any cache anymore
Always get the data on the fly
renaudjester added a commit that referenced this pull request Aug 29, 2024
Not using any cache anymore
Always get the data on the fly
renaudjester added a commit that referenced this pull request Aug 29, 2024
Not using any cache anymore
Always get the data on the fly
renaudjester added a commit that referenced this pull request Aug 29, 2024
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
renaudjester added a commit that referenced this pull request Aug 29, 2024
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
uriii3 pushed a commit that referenced this pull request Sep 3, 2024
Not using any cache anymore
Always get the data on the fly
uriii3 pushed a commit that referenced this pull request Sep 5, 2024
Not using any cache anymore
Always get the data on the fly
uriii3 pushed a commit that referenced this pull request Sep 17, 2024
Not using any cache anymore
Always get the data on the fly
renaudjester added a commit that referenced this pull request Oct 28, 2024
Not using any cache anymore
Always get the data on the fly
renaudjester added a commit that referenced this pull request Oct 28, 2024
Not using any cache anymore
Always get the data on the fly
renaudjester added a commit that referenced this pull request Oct 28, 2024
Not using any cache anymore
Always get the data on the fly
renaudjester added a commit that referenced this pull request Oct 28, 2024
Not using any cache anymore
Always get the data on the fly
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