Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-341

Expose JOB_VARIABLE_PREFIXES as a configurable setting

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • 0% 0%

      1. What is the nature and description of the request?

      When you push a webhook, e.g from gitlab, there are created two payloads, awx_webhook_payload and tower_webhook_payload, on the same webhook. It's the same content but only changes the names: 

        "awx_webhook_event_type": "push",
        "awx_webhook_event_guid": "6eae9d48-d21d-11ed-9492-0c71e26ba472",
        "awx_webhook_event_ref": "56fc39a97ee83edf5f066e03022c287b059e04f1",
        "awx_webhook_status_api": null,
        "awx_webhook_payload": {
          "ref": "refs/heads/main",
          "before": "d5dafd02da862cbab431a74755d3345ecf3e50ec",
          "after": "56fc39a97ee83edf5f066e03022c287b059e04f1",
          "repository": {
            "id": 372423747,
            "node_id": "MDEwOlJlcG9zaXRvcnkzNzI0MjM3NDc=",
            "name": "kcli",
            "full_name": "Alffernandez/kcli",

      {{}}

        "tower_webhook_event_type": "push",
        "tower_webhook_event_guid": "6eae9d48-d21d-11ed-9492-0c71e26ba472",
        "tower_webhook_event_ref": "56fc39a97ee83edf5f066e03022c287b059e04f1",
        "tower_webhook_status_api": null,
        "tower_webhook_payload": {
          "ref": "refs/heads/main",
          "before": "d5dafd02da862cbab431a74755d3345ecf3e50ec",
          "after": "56fc39a97ee83edf5f066e03022c287b059e04f1",
          "repository": {
            "id": 372423747,
            "node_id": "MDEwOlJlcG9zaXRvcnkzNzI0MjM3NDc=",
            "name": "kcli",
            "full_name": "Alffernandez/kcli",

      2. Why does the customer need this? (List the business requirements here).

      For example, when you use the webhook from gitlab to trigger project updates or job template runs based on amendments in Gitlab, the duplicate data doesn't help the use case.

      If we expose JOB_VARIABLE_PREFIXES as an actual configurable setting to admins. The customers could then set awx_ only and not have the tower_ one.

      3. Github link for references code:

      https://github.com/fosterseth/awx/blob/acb22f0131bc23db441339f2ea1428a587e191c1/awx/main/constants.py#L101

            chadwickferman Chad Ferman
            rhn-support-alfferna Alfonso Fernandez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: