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

[To be closed] - Workload entry expiry features #22

Closed
wants to merge 1 commit into from

Conversation

lumjjb
Copy link
Collaborator

@lumjjb lumjjb commented Aug 24, 2021

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

Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>
});
}

isValidExpiryTime(seconds) {
const JSMaxSafeTime = 8640000000000 // JS cannot represent times safely larger than this
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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) {
Copy link
Collaborator Author

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>
Copy link
Collaborator Author

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 {};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uncomment this return

@mrsabath
Copy link
Collaborator

Waiting for TypeScript completion

@mrsabath mrsabath requested a review from mamy-CS January 11, 2022 15:14
@mrsabath
Copy link
Collaborator

mrsabath commented Feb 2, 2022

@mamy-CS to work on this

@mamy-CS mamy-CS changed the title Workload entry expiry features [To be closed] - Workload entry expiry features Dec 6, 2022
@maia-iyer maia-iyer linked an issue Feb 8, 2023 that may be closed by this pull request
3 tasks
@mamy-CS
Copy link
Collaborator

mamy-CS commented Feb 22, 2023

Merged work on #106

@mamy-CS mamy-CS closed this Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Workload Entry Expiry Time UI Handling
4 participants