Skip to content

Conversation

@weeman1337
Copy link
Member

See the commit messages for the main changes.

I've had some trouble adding a test for the Console/Application. It lacks dependency injection and even does a require once. Running the boostrap.php for tests even didn't help. If anyone has a tip on how this can be done, I'd be happy to know.

This PR fixes #9949 and fixes #8399 .

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
@juliusknorr
Copy link
Member

Thanks for your pull request.

It lacks dependency injection and even does a require once.

Regarding the DI, we can probably move a lot of the static code calls there, but I would recommend to tackle that in a separate PR.

@juliusknorr juliusknorr added 3. to review Waiting for reviews papercut Annoying recurring UX issue with possibly simple fix. feature: occ labels Jul 2, 2018
@juliusknorr
Copy link
Member

Acceptance test failures seem unrelated to me.

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Tested, works and code looks good 👍

@MorrisJobke MorrisJobke requested a review from juliusknorr July 2, 2018 08:42
$this->config->setSystemValue('maintenance', true);
$output->writeln('Maintenance mode enabled');
} else {
$output->writeln('Maintenance mode already enabled');
Copy link
Member

Choose a reason for hiding this comment

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

I think I wouldn't change this, to not cause problems with scripts.

Copy link
Member

Choose a reason for hiding this comment

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

Scripts should not evaluate the content that strictly, but rather use exit code (because they are there for that ;))

Copy link
Member

Choose a reason for hiding this comment

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

Let me add it to the list of changes for 14.

Copy link
Member

Choose a reason for hiding this comment

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

Well there is no exit code, so no matter if something went wrong or not, it's always the same?

Anyway changelist and go on 👍

Copy link
Member

Choose a reason for hiding this comment

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

Well there is no exit code, so no matter if something went wrong or not, it's always the same?

Then this is a different problem. :/

@MorrisJobke
Copy link
Member

Acceptance test failures seem unrelated to me.

Yes - they are unrelated.

@MorrisJobke MorrisJobke added this to the Nextcloud 14 milestone Jul 2, 2018
@MorrisJobke MorrisJobke merged commit 6142cd6 into nextcloud:master Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews feature: occ papercut Annoying recurring UX issue with possibly simple fix.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning when disabling maintenance mode using occ maintenance:mode produces a warning despite --quiet

4 participants