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

Use location cache all location #143

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

mngoe
Copy link

@mngoe mngoe commented Oct 20, 2024

Add new All Location Parameters to manage same districts cache for all users.
Some implementations are depoyed at a national scale (seeing all districts as claim admin / enrollement officier can see all insurees and claim in all districts), so caching information based on users as not so relevant.

Copy link

sonarcloud bot commented Oct 20, 2024

districts = []
if cachedata is None:
cachedata = []
if user.is_superuser:
if user.is_superuser or LocationConfig.no_location_check:
Copy link
Member

Choose a reason for hiding this comment

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

we might create a specific cache for admin and when no location check to avoid filling the cache with the same data

Base automatically changed from use-location-cache to develop October 22, 2024 13:59
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