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

AL-778 - Added update notifications #1523

Merged
merged 4 commits into from
Jan 12, 2017
Merged

Conversation

TeslaDethray
Copy link
Contributor

@TeslaDethray TeslaDethray commented Jan 12, 2017

Closes #1497
Closes #1304

@TeslaDethray TeslaDethray added this to the 1.0.0 milestone Jan 12, 2017
@TeslaDethray TeslaDethray self-assigned this Jan 12, 2017
@pantheon-mentionbot
Copy link

@TeslaDethray, thanks for your PR! By analyzing the blame information on this pull request, we identified @greg-1-anderson, @ronan and @drainpip to be potential reviewers

@TeslaDethray TeslaDethray changed the title AL-778 - :wAdded update notifications AL-778 - Added update notifications Jan 12, 2017
@TeslaDethray TeslaDethray force-pushed the add/update_notifications branch 6 times, most recently from 3585316 to f3573c9 Compare January 12, 2017 06:27
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 82.791% when pulling 28b823d on add/update_notifications into a42e2e7 on master.

@@ -24,7 +27,7 @@ class TerminusException extends \Exception
*/
public function __construct(
$message = null,
$replacements = array(),
array $replacements = [],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious why you're adding a type hint here when we're not doing that pretty much anywhere else? I'm not against using them, but we should be clear on what the accepted rule is for them.

Copy link
Contributor Author

@TeslaDethray TeslaDethray Jan 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we do use them.
grep -r ', array' TERMINUS_ROOT/src/* | grep -v _keys

@@ -138,23 +139,35 @@ public function run(InputInterface $input, OutputInterface $output)
$status_code = $this->runner->run($input, $output, null, $this->commands);
if (!empty($cassette) && !empty($mode)) {
$this->stopVCR();
} else {
$this->runUpdateChecker();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't love that this outputs after the command instead of before. I understand the desire to have it not be ignored but this feels aggressive. All of the other cli's I have experience with put this warning first.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I wonder if this should happen on startup rather than on run. If we do implement a shell command that would be more appropriate. Same if we have commands that call the runner to run other commands.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running at the end is what Product wants.

@ronan
Copy link
Contributor

ronan commented Jan 12, 2017

👍 On technical implementation (with the one change regarding not pulling the container back out of the runner when needed).

I'd still argue against the user experience of putting the update after the command output (since it's non-standard). And would put the check in the terminus init stage (so that a future shell mode doesn't become a hot mess). But those are product decisions and this meets the ACs.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 82.704% when pulling bfcc48d on add/update_notifications into a42e2e7 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 82.704% when pulling 6c0e24e on add/update_notifications into a42e2e7 on master.

@TeslaDethray TeslaDethray merged commit 7c6c79e into master Jan 12, 2017
@TeslaDethray TeslaDethray deleted the add/update_notifications branch January 12, 2017 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants