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

Activity stream entry for workflow schedule does not link #5030

Closed
AlanCoding opened this issue Oct 17, 2019 · 1 comment
Closed

Activity stream entry for workflow schedule does not link #5030

AlanCoding opened this issue Oct 17, 2019 · 1 comment

Comments

@AlanCoding
Copy link
Member

ISSUE TYPE
  • Bug Report
SUMMARY

An activity stream entry for updating a schedule does not link to the schedule in the UI. The schedule does exist.

ENVIRONMENT
  • AWX version: 7.0.0
  • AWX install method: docker for mac
  • Ansible version: N/A
  • Operating System: Mac
  • Web Browser: Chrome
STEPS TO REPRODUCE

Create a schedule to run a workflow

disable this schedule

see the activity stream recent entry on disabling the schedule

EXPECTED RESULTS

Link to the schedule

Or, if not that, a link to the workflow (but really it should be a link to the schedule)

ACTUAL RESULTS

no link to the schedule

Screen Shot 2019-10-17 at 9 39 33 AM

ADDITIONAL INFORMATION

API data

{
    "id": 9282,
    "type": "activity_stream",
    "url": "/api/v2/activity_stream/9282/",
    "related": {
        "actor": "/api/v2/users/1/",
        "schedule": [
            "/api/v2/schedules/7/"
        ],
        "unified_job_template": "/api/v2/workflow_job_templates/384/"
    },
    "summary_fields": {
        "schedule": [
            {
                "id": 7,
                "name": "EEFDFFDSDFSDFSDSFADFS",
                "description": ""
            }
        ],
        "workflow_job_template": [
            {
                "id": 384,
                "name": "alan schedule WFJT",
                "description": ""
            }
        ],
        "actor": {
            "id": 1,
            "username": "admin",
            "first_name": "",
            "last_name": ""
        }
    },
    "timestamp": "2019-10-17T13:38:59.310450Z",
    "operation": "update",
    "changes": {
        "enabled": [
            true,
            false
        ]
    },
    "object1": "schedule",
    "object2": "",
    "object_association": "",
    "action_node": "awx",
    "object_type": ""
}

The schedule URL in the UI

http://localhost:8013/#/templates/workflow_job_template/384/schedules/7?template_search=page_size:20;order_by:name;type:workflow_job_template,job_template&schedule_search=page_size:20;order_by:name

All of the information needed to construct this URL is available from the API response, so this is a UI-only issue. Looks like additional code would be needed.

@tiagodread
Copy link
Contributor

Verified this issue and we can safely close this after #9083 merges

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants