Skip to content

Simple console interface to update - #3992

Closed
bartv2 wants to merge 2 commits into
masterfrom
console-update
Closed

bartv2 wants to merge 2 commits into
masterfrom
console-update

Conversation

@bartv2

@bartv2 bartv2 commented Jul 9, 2013

Copy link
Copy Markdown
Contributor

Simple for now, when doctrine is merged then we can use the Symfony2 Console component to make it more fancy.

Using this component doesn't add any code to 3rdparty, doctrine already depends on it. And then we can also add a setup console command and more.

@karlitschek @icewind1991 @DeepDiver1975 @MTGap @VicDeo

@icewind1991

Copy link
Copy Markdown
Contributor

Looks good, will test later

Comment thread core/ajax/update.php Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This remark is old

@Niduroki

Copy link
Copy Markdown

👍

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@bartv2 @blizzz @karlitschek
looks like we have now 3 ways on running scripts on cli:

  1. this pull request
  2. https://github.com/owncloud/core/blob/master/upgrade.php
  3. https://github.com/owncloud/core/blob/master/apps/files/triggerupdate.php
    and to some extend cron.php is relevant to this as well : https://github.com/owncloud/core/blob/master/cron.php

Can we please unite our console/terminal?
And as suggested many times:

Please move all cli scripts into one single location - the admin is not interested in cd-ing around.

THX

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Still unused ....

@blizzz

blizzz commented Jul 24, 2013

Copy link
Copy Markdown
Contributor

On Tuesday 23 July 2013 15:42:46 Thomas Müller wrote:

@bartv2 @blizzz @karlitschek
looks like we have now 3 ways on running scripts on cli:

  1. this pull request
  2. https://github.com/owncloud/core/blob/master/upgrade.php

@bartv2 Maybe you can just adjust upgrade.php instead of establishing
console.php

  1. https://github.com/owncloud/core/blob/master/apps/files/triggerupdate.php

As far as I see this does not do an ownCloud upgrade, does it?

and to some extend cron.php is relevant to this as well :
https://github.com/owncloud/core/blob/master/cron.php

Imho a cron should not to upgrades. It can interfere while the admin is doing
something before he wants the upgrade to take place. Whatever something
may be → somewhat uncontrolled.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@blizzz my intention is to provide one unique entry point for the admin to perform any kind of script based interaction with owncloud

@bartv2

bartv2 commented Jul 24, 2013

Copy link
Copy Markdown
Contributor Author

This PR was/is an attempt to create a single entry point. But then the upgrade.php script was introduced...

I think the best way to do this, is create an console entry point using Symfony2 Console component. This is already included for Doctrine, so no new dependecy and it gives nice console output

@blizzz

blizzz commented Jul 25, 2013

Copy link
Copy Markdown
Contributor

Right. I did not know about this PR and other reviewers also did not mention this one, when upgrade.php was introduced.

However, when it is supposed to be the central point, then why not resolve all the other script entry points here by extending the PR? Or at least upgrade.php should be removed then, though it has a bit more functionality (e.g. also callable via wget).

Comment thread console.php

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use cross-platfrom PHP_EOL as line break

@DeepDiver1975

Copy link
Copy Markdown
Contributor

I think the best way to do this, is create an console entry point using Symfony2 Console component. This is already included for Doctrine, so no new dependecy and it gives nice console output

I'd like to see a solution which can be backported to stable5 - especially for enterprise customers this is a necessary feature.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

when it is supposed to be the central point, then why not resolve all the other script entry points here by extending the PR?

Yes - bring it all together

@icewind1991 can you please add the rescanning feature here as well? THX

@DeepDiver1975

Copy link
Copy Markdown
Contributor

And let's move this into a subfolder like 'console' as I assume we will have more than one script and a folder can easier be hidden in the browser.

@bartv2

bartv2 commented Jul 25, 2013

Copy link
Copy Markdown
Contributor Author

Before we start coding lets start with a plan, i would like this simple so we can do a backport but i also want to use the Console component.
@DeepDiver1975 can we do both at the same time, for example make the Console component available in stable?

👍 for a console dir, maybe core/console and console.php?

@DeepDiver1975

Copy link
Copy Markdown
Contributor

for a console dir, maybe core/console and console.php?

makes sense to me

@DeepDiver1975

Copy link
Copy Markdown
Contributor

can we do both at the same time, for example make the Console component available in stable?

Symfony console? Well that component is not that small - but it looks really promising.
Let's see how far we get. One day I'd like to run console db:migrate and no longer rely on that scary schema migration ..... - but this is OT now.

@bartv2 bartv2 closed this Sep 16, 2013
@bartv2
bartv2 deleted the console-update branch September 16, 2013 20:03
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants