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-1742] Apply filter-via-dot-access-data to RowsOfFields-returning commands #1992

Merged
merged 29 commits into from
Jul 19, 2019

Conversation

oubawaleh
Copy link
Contributor

No description provided.

Copy link
Contributor

@TeslaDethray TeslaDethray left a comment

Choose a reason for hiding this comment

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

It's all small stuff!

CHANGELOG.md Outdated
@@ -91,7 +91,24 @@ All notable changes to this project will be documented in this file. This projec
- Added `is_owner` field to the output of `site:team:list` in order to indicate which user is the site owner. (#1949)
- Added boolean `is_owner` field to the output of `SiteUserMemberships::serialize()` in order to indicate which user is the site owner. (#1949)
- Added `SiteUserMemberships::isOwner()` function in order to ascertain whether the user is the site's owner. (#1949)
- A `--progress` option has been added to `remote:drush` and `remote:wp` to enable progress for remote commands. (#1947)
- A `--progress` option has been added to `remote:drush` and `remote:wp` to enable progress for remote commands. (#1947)\- Added --filter option to `backup:list` command (#1992)
Copy link
Contributor

Choose a reason for hiding this comment

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

A line break got swapped with a \ here

CHANGELOG.md Outdated
@@ -138,6 +155,12 @@ All notable changes to this project will be documented in this file. This projec
### Deprecated
- `service-level:set` is now deprecated. Please use `plan:set`. (#1901)
- `Site::updateServiceLevel()` is now deprecated. Please use `Plans::set()`. (#1901)
- `backup:list` `--element=VALUE` option is deprecated. Use `--filter="type=VALUE"` instead. (#1992)
- `org:upstream:list` `--framework=VALUE` options is deprecated. Use `--filter="id=VALUE" instead. (#1992)
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs a ` after VALUE"

Copy link
Contributor

Choose a reason for hiding this comment

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

The filter key is framework instead of id.

CHANGELOG.md Outdated
@@ -138,6 +155,12 @@ All notable changes to this project will be documented in this file. This projec
### Deprecated
- `service-level:set` is now deprecated. Please use `plan:set`. (#1901)
- `Site::updateServiceLevel()` is now deprecated. Please use `Plans::set()`. (#1901)
- `backup:list` `--element=VALUE` option is deprecated. Use `--filter="type=VALUE"` instead. (#1992)
- `org:upstream:list` `--framework=VALUE` options is deprecated. Use `--filter="id=VALUE" instead. (#1992)
- `org:upstream:list` `--name=VALUE` option is deprecated. Use `--filter="id=VALUE" instead. (#1992)
Copy link
Contributor

Choose a reason for hiding this comment

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

The filter key is label instead of id

CHANGELOG.md Outdated
- `backup:list` `--element=VALUE` option is deprecated. Use `--filter="type=VALUE"` instead. (#1992)
- `org:upstream:list` `--framework=VALUE` options is deprecated. Use `--filter="id=VALUE" instead. (#1992)
- `org:upstream:list` `--name=VALUE` option is deprecated. Use `--filter="id=VALUE" instead. (#1992)
- `site:list` `--name=VALUE` option is deprecated. Use `--filter="id=VALUE" instead.(#1992)
Copy link
Contributor

Choose a reason for hiding this comment

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

The filter key is name instead of id

Copy link
Contributor

Choose a reason for hiding this comment

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

Needs a ` after VALUE"

CHANGELOG.md Outdated
- `org:upstream:list` `--framework=VALUE` options is deprecated. Use `--filter="id=VALUE" instead. (#1992)
- `org:upstream:list` `--name=VALUE` option is deprecated. Use `--filter="id=VALUE" instead. (#1992)
- `site:list` `--name=VALUE` option is deprecated. Use `--filter="id=VALUE" instead.(#1992)
- `site:list` `--plan=VALUE` option is deprecated. Use `--filter="plan_name=VALUE" instead.(#1992)
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs a ` after VALUE"

@@ -19,6 +19,7 @@ class CodeLogCommand extends TerminusCommand implements SiteAwareInterface
* Displays the code log for the environment.
*
* @authorize
*
Copy link
Contributor

Choose a reason for hiding this comment

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

A line got added here

@@ -21,6 +21,7 @@ class ListCommand extends TerminusCommand implements SiteAwareInterface
* Displays the list of sites associated with an organization.
*
* @authorize
* @filter-output
*
* @command org:site:list
* @aliases org:sites
Copy link
Contributor

Choose a reason for hiding this comment

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

This command has filters to deprecate.

@@ -14,6 +14,7 @@ class ListCommand extends TagCommand
* Displays the list of tags for a site within an organization.
*
* @authorize
*
Copy link
Contributor

Choose a reason for hiding this comment

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

A line got added here

@@ -18,6 +18,7 @@ class ListCommand extends TerminusCommand
* Displays the list of upstreams accessible to the currently logged-in user.
*
* @authorize
* @filter-output
*
* @command upstream:list
* @aliases upstreams
Copy link
Contributor

Choose a reason for hiding this comment

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

This command has filters to deprecate.

@@ -187,6 +187,7 @@ public function serialize()
'expiry' => $this->getExpiry(),
'initiator' => $this->getInitiator(),
'url' => $this->get('archive_url'),
'type' => $this->get('type'),
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll want to make sure this gets covered in unit testing. We'll look at this together.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok.

@TeslaDethray
Copy link
Contributor

I've just realized that I didn't explain where in the CHANGELOG.md file to add the lines. 😓We'll move them and I'll explain it when we look at this together.

@zzyou
Copy link
Member

zzyou commented Jul 19, 2019

Good job on putting up this PR!

Maybe add the JIRA ticket number AL-1742 to this PR's title? So it is connected to your JIRA ticket~
Example title for this PR could be:
[AL-1742] - Add Filters

@oubawaleh oubawaleh changed the title Filter [AL-1742] Apply filter-via-dot-access-data to RowsOfFields-returning commands Jul 19, 2019
Copy link
Contributor

@TeslaDethray TeslaDethray left a comment

Choose a reason for hiding this comment

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

🚀✨

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