-
Notifications
You must be signed in to change notification settings - Fork 12
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
ID-1046 Migrate listResourcesAndPoliciesV2 to new query #1326
Conversation
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
samUser: SamUser, | ||
|
||
private val publicResourcesCache: java.util.Map[ResourceTypeName, Seq[FilterResourcesResult]] = | ||
Collections.synchronizedMap(new PassiveExpiringMap(1, TimeUnit.HOURS)) |
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.
1 hour seems like a while, am i correct in thinking that if someone changes a public resource itll take an hour to propagate that change? Do you see that causing any problems?
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 it would be a problem. Publicizing workspaces is a manual process undertaken by Support, so we can just instruct them that it can take up to an hour for a public workspace to appear.
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.
This looks good to me!
Ticket:
What:
Instead of making everyone else migrate to a new
listResourcesV2
endpoint, why not just change the query powering thelistResourcesAndPoliciesV2
under the hood?Why:
Lessen the load on everyone else.
How:
Adapt the db response to the response type of
listResourcesAndPoliciesV2
PR checklist