-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feature: Session lifetime config in resource policy #1304
Feature: Session lifetime config in resource policy #1304
Conversation
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.
Minor code style issues.
@click="${(e) => {this._chooseResourceTemplate(e);}}" | ||
@click="${(e) => { | ||
this._chooseResourceTemplate(e); | ||
}}" |
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 worsens the readability.
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.
hmm, I guess it's because of "eslint" code styling. I'll revert to the previous code style.
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.
Perhaps, we need to update the eslint config not to rearrange the code in a weird way.
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.
Further minor styling issues. We may need to change the eslint config.
@change="${(e) => {this._applyResourceValueChanges(e); this._updateShmemLimit()}}" | ||
@change="${(e) => { | ||
this._applyResourceValueChanges(e); this._updateShmemLimit(); | ||
}}" |
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.
Here as well.
@change="${(e) => {this._applyResourceValueChanges(e); this._updateShmemLimit()}}" | ||
@change="${(e) => { | ||
this._applyResourceValueChanges(e); this._updateShmemLimit(); | ||
}}" |
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.
Here as well.
I couldn't agree more about updating our linting rules. I found a workaround plugin that doesn't ruin the indentation of template literal (not 100% but, much better than the current linting rules). I'll apply it as a new feature and make PR for it. |
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.
LGTM.
Description
This PR resolves a new configuration
max_session_lifetime
, which can be applied in resource policy.Related: manager#583
Before
After