Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-6669

Rename edit-deployment route (and components names)

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • openshift-4.13
    • None
    • UI
    • None
    • 2
    • False
    • None
    • False
    • 0
    • Not Supported
    • ODC Sprint 227, ODC Sprint 228, ODC Sprint 229, ODC Sprint 230, ODC Sprint 231, ODC Sprint 232

      Description

      packages/dev-console/src/components/edit-deployment/EditDeployment.tsx is now also used for the creation flow, so the name is confusing.

      The both URLs are defined in frontend/packages/dev-console/src/plugin.tsx, but doesn't match our common URLs.

      For pinned resources, the Create and Edit Flows don't mark the nav item as active.

        {
          type: 'Page/Route',
          properties: {
            exact: true,
            path: ['/edit-deployment/ns/:ns', '/create-deployment/ns/:ns/~new/form'],
            loader: async () =>
              (
                await import(
                  './components/edit-deployment/EditDeploymentPage' /* webpackChunkName: "dev-console-edit-deployment" */
                )
              ).default,
          },
        },
      

      Acceptance Criteria

      1. Rename edit-deployment folder to deployment ( or deployments ? )
      2. Rename EditDeployment* components to Deployment* (except EditDeployment.tsx for moment)
      3. Rename utils/create-deployment-* utils/edit-deployment-* to utils/deployment-*
      4. Change routes from /create-deployment/... /edit-deployment/... to
        /k8s/ns/:ns/deployment/~new/form and
        /k8s/ns/:ns/deployment/:name/form
        /k8s/ns/:ns/deploymentconfigs/~new/form and
        /k8s/ns/:ns/deploymentconfigs/:name/form
      5. Convert the route from packages/dev-console/src/plugin.tsx to packages/dev-console/console-extensions.json

      Additional Details:

            dsantra12 Debsmita Santra
            cjerolim Christoph Jerolimov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: