Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update functions according to db refactoring#5

Merged
rahulsprajapati merged 3 commits into
EasyEngine:developEasyEngine/shell-command:developfrom
kirtangajjar:refactor-dbkirtangajjar/shell-command:refactor-dbCopy head branch name to clipboard
Aug 22, 2018
Merged

Update functions according to db refactoring#5
rahulsprajapati merged 3 commits into
EasyEngine:developEasyEngine/shell-command:developfrom
kirtangajjar:refactor-dbkirtangajjar/shell-command:refactor-dbCopy head branch name to clipboard

Conversation

@kirtangajjar

Copy link
Copy Markdown
Contributor

Use Site model instead of db calls
Use auto_site_name instead of set_site_arg

Signed-off-by: Kirtan Gajjar kirtangajjar95@gmail.com

Use auto_site_name instead of set_site_arg

Signed-off-by: Kirtan Gajjar <kirtangajjar95@gmail.com>
Signed-off-by: Kirtan Gajjar <kirtangajjar95@gmail.com>
Comment thread src/Shell_Command.php Outdated
$site_root = $db_select[0]['site_path'];
} else {

$site = Site::find( $site_name );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Site::find is not a sufficient check. The site needs to be present as well as enabled otherwise the opening it's shell will not be possible. Create a model maybe Site::enabled that checks precisely both the things. It is required in almost all the commands.

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.

Done

Signed-off-by: Kirtan Gajjar <kirtangajjar95@gmail.com>
@kirtangajjar kirtangajjar self-assigned this Aug 22, 2018

@mrrobot47 mrrobot47 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@rahulsprajapati rahulsprajapati merged commit 14497bd into EasyEngine:develop Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.