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

CONSOLE-4289: Start a Job from a CronJob #14415

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cyril-ui-developer
Copy link
Contributor

@cyril-ui-developer cyril-ui-developer commented Oct 17, 2024

Screenshots:

Admin console

Screenshot 2024-10-17 at 4 56 24 PM Screenshot 2024-10-17 at 4 56 36 PM Screenshot 2024-10-17 at 4 56 52 PM Screenshot 2024-10-18 at 9 54 45 AM

Dev console

Screenshot 2024-10-18 at 9 50 44 AM Screenshot 2024-10-18 at 9 50 54 AM

E2E tests

Screenshot 2024-10-16 at 1 36 34 PM

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Oct 17, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 17, 2024

@cyril-ui-developer: This pull request references CONSOLE-4289 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from jhadvig and kyoto October 17, 2024 20:27
@openshift-ci openshift-ci bot added the component/core Related to console core functionality label Oct 17, 2024
Copy link
Contributor

openshift-ci bot commented Oct 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cyril-ui-developer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added kind/cypress Related to Cypress e2e integration testing approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated labels Oct 17, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 17, 2024

@cyril-ui-developer: This pull request references CONSOLE-4289 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

Screenshots:

Screenshot 2024-10-17 at 4 56 24 PM Screenshot 2024-10-17 at 4 56 36 PM Screenshot 2024-10-17 at 4 56 52 PM Screenshot 2024-10-16 at 1 36 34 PM

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 18, 2024

@cyril-ui-developer: This pull request references CONSOLE-4289 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

Screenshots:

Admin console

Screenshot 2024-10-17 at 4 56 24 PM Screenshot 2024-10-17 at 4 56 36 PM Screenshot 2024-10-17 at 4 56 52 PM Screenshot 2024-10-16 at 1 36 34 PM

Dev console

Screenshot 2024-10-18 at 9 50 44 AM Screenshot 2024-10-18 at 9 50 54 AM

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 18, 2024

@cyril-ui-developer: This pull request references CONSOLE-4289 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

Screenshots:

Admin console

Screenshot 2024-10-17 at 4 56 24 PM Screenshot 2024-10-17 at 4 56 36 PM Screenshot 2024-10-17 at 4 56 52 PM Screenshot 2024-10-16 at 1 36 34 PM

Dev console

Screenshot 2024-10-18 at 9 50 44 AM Screenshot 2024-10-18 at 9 50 54 AM

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 18, 2024

@cyril-ui-developer: This pull request references CONSOLE-4289 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

Screenshots:

Admin console

Screenshot 2024-10-17 at 4 56 24 PM Screenshot 2024-10-17 at 4 56 36 PM Screenshot 2024-10-17 at 4 56 52 PM

Dev console

Screenshot 2024-10-18 at 9 50 44 AM Screenshot 2024-10-18 at 9 50 54 AM

E2E tests

Screenshot 2024-10-16 at 1 36 34 PM

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 18, 2024

@cyril-ui-developer: This pull request references CONSOLE-4289 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

Screenshots:

Admin console

Screenshot 2024-10-17 at 4 56 24 PM Screenshot 2024-10-17 at 4 56 36 PM Screenshot 2024-10-17 at 4 56 52 PM Screenshot 2024-10-18 at 9 54 45 AM

Dev console

Screenshot 2024-10-18 at 9 50 44 AM Screenshot 2024-10-18 at 9 50 54 AM

E2E tests

Screenshot 2024-10-16 at 1 36 34 PM

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Copy link
Contributor

openshift-ci bot commented Oct 18, 2024

@cyril-ui-developer: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link
Member

@TheRealJon TheRealJon left a comment

Choose a reason for hiding this comment

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

A couple of small nits

`/k8s/ns/${objNamespace}/jobs/${jobName}`;

const startJob = (obj: CronJobKind, jobName: string): Promise<JobKind> => {
const { name, namespace, uid } = obj.metadata;
Copy link
Member

Choose a reason for hiding this comment

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

nit, null safe?

apiVersion: 'batch/v1',
kind: 'Job',
metadata: {
name: jobName,
Copy link
Member

Choose a reason for hiding this comment

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

nit, do we need a helper?

Suggested change
name: jobName,
name: `${name}-${Date.now()}`,

cta: () => {
const jobName = generateJobName(obj.metadata.name);
startJob(obj, jobName)
.then(() => {
Copy link
Member

Choose a reason for hiding this comment

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

Shoule we use existing helpers to navigate to the job details page?

Suggested change
.then(() => {
.then((job) => history.push(resourceObjPath(job, JobModel.plural))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. kind/cypress Related to Cypress e2e integration testing kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants