-
Notifications
You must be signed in to change notification settings - Fork 13
feat: per-index tiered-access middleware #104
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
Conversation
…er-index-tiered-access
…er-index-tiered-access
|
This pull request introduces 1 alert when merging 944435f into ebf7327 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging dfe7856 into ebf7327 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging e0d6b73 into ebf7327 - view on LGTM.com new alerts:
|
…er-index-tiered-access
mfshao
left a comment
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.
The queries looks good, the server looks good. But the data explorer page in your dev env looks a bit weird.
For regular level explorer tab, the tier_access_limit info seems to be missing. I'm not sure if that is an config issue or bug in the code. I know we haven't updated the frontend component for Guppy, but since tier_access_limit should be a site-wide value, I assume it should not change?
src/server/__tests__/testConfigFiles/test-index-scoped-tier-access.json
Outdated
Show resolved
Hide resolved
src/server/__tests__/testConfigFiles/test-invalid-index-scoped-tier-access.json
Outdated
Show resolved
Hide resolved
src/server/download.js
Outdated
|
|
||
| log.debug('[download] ', JSON.stringify(req.body, null, 4)); | ||
| const esIndex = esInstance.getESIndexByType(type); | ||
| const esIndex = esInstance.getESIndexConfigByType(type); |
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.
| const esIndex = esInstance.getESIndexConfigByType(type); | |
| const esIndexConfig = esInstance.getESIndexConfigByType(type); |
mfshao
left a comment
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.
awesome work! this is a hard one, thanks!
code-wise lgtm, awaiting QA now
This PR adds support for index-scoped tiered access settings in a manifest's guppy block. This refactor is backwards compatible with the older site-wide tiered-access level.
Jira Ticket: https://ctds-planx.atlassian.net/browse/HP-13
New Features
doc/index_scoped_tiered_access.mdfor more information.