ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.92k stars 3.41k forks source link

No error is received when user schedules a job in past date. #5524

Open soniya20 opened 4 years ago

soniya20 commented 4 years ago
ISSUE TYPE
SUMMARY

No error is received when user schedules a job in past date.

ENVIRONMENT

AWX version: 9.0.1 AWX install method: doocker Operating System: rhel7.4 Web Browser: Chrome 78.0.3904.108

STEPS TO REPRODUCE
  1. Login to AWX dashboard with admin user
  2. Now click on inventory panel to create a new inventory.
  3. Select group tab in inventory and add hosts to it.
  4. Now click on credential panel to create credential with type as "machine" and provide username and password of machines added in inventory.
  5. Click on project panel and create a new project.
  6. Now click on Templates panel to create a new job templates.
  7. Now click on Schedule panel to create a job schedule at a past date.
EXPECTED RESULTS

User should not be able to create schedule in past date

ACTUAL RESULTS

Schedule is created at a "Past Date" or "Past Time" when "End Parameter" is set to "Never/OnDate",

mabashian commented 4 years ago

rrule's that are in the past are still valid rrules and doing client-side validation trying to detect whether a schedule will ever run is messy business. I do agree that this would be a UX improvement I'm just not sure the cost outweighs the benefit.

unlikelyzero commented 3 years ago

potentially can be solved in https://github.com/ansible/awx/issues/7145