Roadmap does not show epic when it's created via API call
I have started creating an end-to-end test that will check if an epic with start date equal to the current date, and due date equal to one month ahead is shown in the roadmap view, and to save some time, I'm creating the epic via an API call, but when visiting the roadmap view, the epic is not there.
Note: If I manually update one of the dates (start date or due date) to a different date, and then I visit the roadmap view, the epic is displayed.
Steps to reproduce
With the GDK EE environment up-to-date and running, on the
master branch, from the
qa/ directory, run the following command:
QA_DEBUG=true CHROME_HEADLESS=false bundle exec bin/qa Test::Instance::All http://localhost:3001 qa/specs/features/ee/browser_ui/2_plan/epic/roadmap_spec.rb
Here is now the test looks like https://gitlab.com/gitlab-org/gitlab/blob/master/qa/qa/specs/features/ee/browser_ui/2_plan/epic/roadmap_spec.rb
What is the current bug behavior?
The epic is not shown in the roadmap view.
What is the expected correct behavior?
When visiting the roadmap view the epic should be displayed.
1 - Access the just created epic and edit one of the dates (start date or due date) to a different date than the one set
2 - Visit the roadmap view
Notice that now the epic is correctly displayed.