-
Notifications
You must be signed in to change notification settings - Fork 2
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
Strictnullchecks 1 #1140
Strictnullchecks 1 #1140
Conversation
# Conflicts: # src/components/app-overview/index.tsx # src/components/async-resource/async-resource.tsx # src/components/component/dns-aliases.tsx # src/components/create-job-form/index.tsx # src/components/create-job-form/pipeline-form-build-branches.tsx # src/components/create-job-form/use-get-application-branches.ts # src/components/environments-summary/environment-ingress.tsx # src/components/environments-summary/index.tsx # src/components/page-configuration/index.tsx
ended, | ||
}) => { | ||
type DurationProps = { started: Date; ended?: Date }; | ||
const ReplicaDuration = ({ started, ended }: DurationProps) => { |
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.
Replica started is another field startTime
. So technically it is created
started={new Date(replica.created)} |
For component
func GetReplicaSummary(pod corev1.Pod, lastEventWarning string) ReplicaSummary {
...
creationTimestamp := pod.GetCreationTimestamp()
replicaSummary.Created = radixutils.FormatTimestamp(creationTimestamp.Time)
For job pod
func GetReplicaSummaryByJobPodStatus(radixBatchJob radixv1.RadixBatchJob, jobPodStatus radixv1.RadixBatchJobPodStatus) models.ReplicaSummary {
summary := models.ReplicaSummary{
Name: jobPodStatus.Name,
Created: utils.FormatTimestamp(jobPodStatus.CreationTime.Time),
...
}
if jobPodStatus.StartTime != nil {
summary.StartTime = utils.FormatTimestamp(jobPodStatus.StartTime.Time)
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 see what you mean, but wanted all the Duration components to have the same API, and felt that it didn't need to know anything about replica status or where its used :)
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.
Couple suggestions
Co-authored-by: Sergey Smolnikov <ssmol@equinor.com>
Co-authored-by: Sergey Smolnikov <ssmol@equinor.com>
No description provided.