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

Sotkanet improvements #1028

Merged
merged 9 commits into from
Nov 17, 2023
Merged

Conversation

ZakarFin
Copy link
Member

@ZakarFin ZakarFin commented Nov 17, 2023

The only functional change is that when a Sotkanet indicator data doesn't have any values in the value "column" we use absValue instead. If there are any values we always use them. This is a workaround since some indicators only have the absValue in the current API.

This PR removes the extra caching that was used for Sotkanet. We don't really need to cache the responses from Sotkanet as we operate on the processed values that we already cache. Usage of cache keys in the statistical data functionalities has been harmonized to follow the same pattern and a new CacheKeys.buildCacheKey() function was introduced to make this easier (service-statistics-common/src/main/java/fi/nls/oskari/control/statistics/util/CacheKeys.java). Some cache-keys changed slightly, but now it's possible to flush everything from single datasource since all keys are prefixed with oskari:stats:[data source id]:

@ZakarFin ZakarFin added this to the 2.13.0 milestone Nov 17, 2023
@ZakarFin ZakarFin merged commit 1a052d5 into oskariorg:develop Nov 17, 2023
2 checks passed
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.

1 participant