awx icon indicating copy to clipboard operation
awx copied to clipboard

JobTemplateDetail screen displays incorrect Webhook Service name if Bitbucket Data Center is chosen

Open skif443 opened this issue 1 year ago • 0 comments

Please confirm the following

  • [X] I agree to follow this project's code of conduct.
  • [X] I have checked the current issues for duplicates.
  • [X] I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • [X] I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

JobTemplateDetail screen displays incorrect Webhook Service name if Bitbucket Data Center is chosen.

          <Detail
            label={t`Webhook Service`}
            value={webhook_service === 'github' ? t`GitHub` : t`GitLab`} # Bug is here
            dataCy="jt-detail-webhook-service"
            helpText={helpText.webhookService}
          />

Снимок экрана 2024-08-14 в 16 40 14 1 Снимок экрана 2024-08-14 в 16 40 58

AWX version

24.6.1

Select the relevant components

  • [X] UI
  • [ ] UI (tech preview)
  • [ ] API
  • [ ] Docs
  • [ ] Collection
  • [ ] CLI
  • [ ] Other

Installation method

docker development environment

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

  1. Open any Job Template, click Edit.
  2. In "Options" check "Enable Webhook".
  3. Choose "Bitbucket Data Center".
  4. Click Save.
  5. Open "Details" screen of the same Job Template.
  6. Look at "Webhook Service" field. It's "GitLab".

Expected results

Webhooks service is "Bitbucket Data Center"

Actual results

Webhooks service is "GitLab"

Additional information

No response

skif443 avatar Aug 14 '24 13:08 skif443