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

[Jormungandr] Cached kraken coverages #4125

Merged
merged 2 commits into from
Oct 4, 2023
Merged

[Jormungandr] Cached kraken coverages #4125

merged 2 commits into from
Oct 4, 2023

Conversation

azime
Copy link
Contributor

@azime azime commented Oct 4, 2023

Jira: NAV-2351

  • /v1/coverage : Use cache
  • /v1/coverage/coverage_name : Cache unused
  • /v1/coverage/2.45;4.52 : Cache unused

@azime azime changed the title Cached kraken coverages [Jormungandr] Cached kraken coverages Oct 4, 2023
regions.append(self.get_region(region_str=region, lon=lon, lat=lat))
else:
regions = self.get_regions()
def get_kraken_coverages(self, regions, request_id=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason for not caching on this function directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

when we pass coverage_name (coord), we do not use the cache

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@azime azime merged commit 924613c into dev Oct 4, 2023
@azime azime deleted the cache_kraken_coverages branch October 4, 2023 12:25
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.

4 participants