-
Notifications
You must be signed in to change notification settings - Fork 41
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
[To be closed] - Workload entry expiry features #22
Conversation
Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>
}); | ||
} | ||
|
||
isValidExpiryTime(seconds) { | ||
const JSMaxSafeTime = 8640000000000 // JS cannot represent times safely larger than this |
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.
please add reference to this
this.expiryTimeUpdate(seconds) | ||
} | ||
|
||
// TODO some odd behavior with dates like February 33 exists |
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.
issue needs validation
return d instanceof Date && isFinite(d) | ||
} | ||
|
||
updateValidDateAndTime(d, t) { |
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.
all setStates should be done atomically if possible
<div role="alert"> | ||
<p className="failed-message">Warning: expiry time either in invalid format, is negative, or is too large. Submitting this time may result in undefined behavior.</p> | ||
{this.state.expiryOption === "Seconds Since Epoch" && this.state.expiryUnsafe && | ||
<p className="failed-message">Seconds must be positive and less than 8640000000000</p> |
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.
should use constant that is used in code instead of being hardcoded
@@ -115,6 +115,10 @@ class SpiffeHelper extends Component { | |||
// n:1, this would reduce the total cost. This may be useful when | |||
// performance is impacted. | |||
getAgentsEntries (agents, entries) { | |||
if (typeof entries === 'undefined') { | |||
console.log("spiffe-helper.js: getAgentEntries: this should not happen, entries undefined`") | |||
//return {}; |
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.
uncomment this return
Waiting for TypeScript completion |
@mamy-CS to work on this |
Merged work on #106 |
Moving - lumjjb/tornjak-old#96
Editing entry-create form for multiple entry formats and warnings on already expired entries or data that causes no expiry date
Signed-off-by: Maia Iyer maia.raj.iyer@gmail.com