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

CODENVY-1739: Do not make additional http request on each license check #1863

Merged
merged 6 commits into from
Mar 3, 2017

Conversation

mmorhun
Copy link
Contributor

@mmorhun mmorhun commented Mar 2, 2017

What does this PR do?

Caches Fair Source License acceptance to prevent multiple requests with the same result.

What issues does this PR fix or reference?

#1739

Changelog

Optimizes Fair Source license checks to improve performance.

Release Notes

We've optimized the performance of all HTTP requests by caching the necessary license checks.

@skabashnyuk
Copy link
Contributor

Will it cache requests if license is NOT accepted?

@tolusha
Copy link
Contributor

tolusha commented Mar 2, 2017

It shouldn't.
Admin must accept Fair Source License before login.
If it is cached he won't be able to login for some period of time.

@skabashnyuk
Copy link
Contributor

Ok. And what is the problem? What if it will be 1 minute? And the opposite task. If license was ok but expired during tomcat life time should it be revalidated after X minutes?

@tolusha
Copy link
Contributor

tolusha commented Mar 2, 2017

And what is the problem? What if it will be 1 minute?

I user could login after license had been accepted it would be awkward.

If license was ok but expired during tomcat life time should it be revalidated after X minutes?

Agree.
@mmorhun Take it into account.

@mmorhun mmorhun requested a review from bmicklea March 2, 2017 13:10
@mmorhun
Copy link
Contributor Author

mmorhun commented Mar 2, 2017

ci-build

@mmorhun mmorhun merged commit 783c245 into master Mar 3, 2017
@mmorhun mmorhun deleted the CODENVY-1739 branch March 3, 2017 10:05
@riuvshin riuvshin added this to the 5.4.1 milestone Mar 6, 2017
riuvshin pushed a commit that referenced this pull request Mar 6, 2017
…ck (#1863)

CODENVY-1739: Do not make additional http request on each Fair Source License check in SystemLicenseLoginFilter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants