Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11386

Manage CI/CD UI doesn't check duplicates

XMLWordPrintable

    • Fuse 7.5 Sprint 52 - Bug fix

      (Migrated from https://github.com/syndesisio/syndesis/issues/6362)

      Author: Matej Králik
      Assignees: Dhiraj Bokde,

      This is a...

      [pre][code]
      [ ] Feature request
      [x] Regression (a behavior that used to work and stopped working in a new release)
      [ ] Bug report [!-- Please search GitHub for a similar issue or PR before submitting --]
      [ ] Documentation issue or request
      [/code][/pre]

      Description

      When I want to create a new tag with the same name as has the existed tag, I am able to click on Save button (however the tag is not created because the backend returns

      400 "developerMsg":"Duplicate environment tag1"

      ).

      When I want to rename a tag to the same name as has another tag, I am able to click on Save button and in the UI I see two duplicated tags.
      !image

      In the 1.7.x, the dialog for creating/updating the tag was checking whether the name is already used.
      In the left side of the images is master, in the right side is 1.7.13 (CR3)
      Creating the tag with the same name:
      !image
      Updating to the same name:
      !image

      The UI should check the duplicities as before.
      The endpoint

      PUT .../api/v1/public/environments/[tag]

      should check whether the name in params is not already used by another tag.

      Step to reproduce:

      • Go to Manage CI/CD page
      • Create tag with name tag1
      • Try to create tag1 again
      • Create tag with name tag2
      • Try to rename tag2 to tag1

        1. createTag.png
          createTag.png
          103 kB
        2. editTag.png
          editTag.png
          113 kB

              stlewis_2 Stan Lewis
              rhn-support-hbraun Heiko Braun
              Matej Kralik Matej Kralik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: