Problem/Motivation
When accessing the page which checks if some of the builds have been completed, the only thing the user sees is a "Hello world" message.
Proposed resolution
The page needs to display default help text which will help the user to understand the use of this page. In the background, Drupal needs to check if some of the yet existing builds have been completed.
If one of the builds have been completed, a message needs to be displayed saying: "X builds have been completed and the results are available now.". Also a watchdog entry needs to be added.
If Drupal is unable to access Travis, an error message needs to be displayed which is saying: "An error occured. Please try again later.". Also a watchdog needs to be added
Remaining tasks
| Task | Novice task? | Contributor instructions | Complete? |
|---|---|---|---|
| Clean up the controller class | Add documentation & Drupal Coding Standards compliant | Complete | |
| Display help text on the check page | Novice | Use hook_help to add help details | Complete |
| Check if the builds are completed | Interact with Travis to check if any of the builds has been completed | Complete | |
| Display a message when builds are completed | Novice | See summary | Complete |
| Display an error message when Drupal is unable to reach Travis | Novice | Via try and catch we should check if the operation was successful | Complete |
| Create a patch | Instructions | ||
| Reroll the patch if it no longer applies. | Instructions | ||
| Update the issue summary | Instructions | ||
| Update the issue summary noting if allowed during the rc | Template | ||
| Add automated functional tests | Instructions | Will be done in #2811495: Develop functional tests for Controller Assigned to: legovaer | |
| Improve patch documentation or standards (for just lines changed by the patch) | Novice | Instructions | |
| Manually test the patch | Novice | Instructions | |
| Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standards | Instructions |
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | interdiff-2813369-12-18.txt | 4.19 KB | legovaer |
| #18 | clean_up_the_the-2813369-18.patch | 7.91 KB | legovaer |
Comments
Comment #2
legovaerComment #3
legovaerComment #4
legovaerComment #5
legovaerComment #6
legovaerComment #8
legovaerComment #9
bramdriesenYou need to provide a parameter in the Generator class (according to the latest 8.x-1.x branch). I did it like this in #2819347: Create permissions not sure if that is the correct way.
$generator = new Generator(\Drupal::service('drupal_coverage_core.travis_client'));Comment #10
legovaerUpdated the patch as it was no longer valid. Also fixed #9.
Comment #12
legovaerSeems like there was a typo in my patch..
Comment #14
legovaerComment #15
legovaerWe're using SimpleTest now, but this has been deprecated and should be replaced with a functional PHPUnit test.
This needs to be drupal_coverage_core
Comment #16
legovaerComment #17
legovaerComment #18
legovaerComment #19
bramdriesenLooks good! Good to see simpletest is also removed :)
Comment #21
legovaer