Skip to content

Commit

Permalink
Merge pull request #108 from buddypress/feature/last-fixes
Browse files Browse the repository at this point in the history
Bump version to 3.0.0
  • Loading branch information
renatonascalves authored Feb 16, 2024
2 parents 0d325c0 + fdadc86 commit 611bc8a
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 8 deletions.
13 changes: 6 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

This library adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/en/1.0.0/).

## Unreleased
## 3.0.0

## Added

* Support for the `--silence` flag introduced to a few `create` commands.
* Support for the `--silence` flag introduced to the `wp bp activity comment` command.
* Support for the `--format` flag of the `generate` commands. One can render an output in a particular format.
* Support for the `--format` and `--silent` flags for the `generate` commands.
* New commands:
* `wp bp notice` - Use it to manage Sitewide notices.
* `delete-comment` and `remove-comment` aliases added for the `wp bp activity` command.
* `delete-comment` and `remove-comment` aliases added for the `wp bp activity delete_comment` command.

### Changed

Expand All @@ -20,21 +20,20 @@ This library adheres to [Semantic Versioning](https://semver.org/) and [Keep a C
* Several linting updates
* CI tests against PHP 8.3
* Updated deprecated function from `bp_get_group_permalink` into `bp_get_group_url`
* Activity command: made tests more deterministic
* Made tests from the Activity command more deterministic
* PHPDoc improvements
* All `generate` commands' output were standardized
* All `create` commands' output were standardized
* All `delete` commands' output were standardized
* All `delete` commands' alias were standardized
* All `list` commands were standardized
* Invalid `format` option `haml` removed
* `wp bp activity post-update`: removed mention of default text creation
* Invalid `--format` option `haml` removed
* Removed mention of default text creation from the `wp bp activity post-update` command
* Removed `user_items` and `items` aliases from the `wp bp activity favorite list` command
* Confirmation message updated for `delete` commands that accepts multiple values
* `wp bp group invite remove` updated to `wp bp group invite uninvite` to avoid conflict with the `delete/remove` command
* `wp bp activity delete_comment` updated to `wp bp activity delete-comment`
* `generate` commands: avoid refetching user objects
* All `generate` command pass the `silent` flag
* Upgraded the `styfle/cancel-workflow-action` Github Action.

## 2.0.2
Expand Down
7 changes: 7 additions & 0 deletions features/tool.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Feature: Manage BuddyPress Tools
https://github.com/buddypress/BuddyPress/archive/master.zip
"""
And I run `wp bp component activate friends`
And I run `wp bp component activate groups`

Scenario: BuddyPress tool

Expand All @@ -16,6 +17,12 @@ Feature: Manage BuddyPress Tools
Complete!
"""

When I run `wp bp tool repair group-count`
Then STDOUT should contain:
"""
Complete!
"""

When I run `wp bp tool signup 1`
Then STDOUT should contain:
"""
Expand Down
2 changes: 1 addition & 1 deletion features/xprofile-data.feature
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Feature: Manage BuddyPress XProfile Data
foo
"""

When I run `wp bp xprofile data get --user-id={USER_ID}`
When I run `wp bp xprofile data see --user-id={USER_ID}`
Then STDOUT should be a table containing rows:
| field_id | field_name | value |
| {FIELD_ID} | Field Name | "foo" |
Expand Down
6 changes: 6 additions & 0 deletions features/xprofile-field.feature
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ Feature: Manage BuddyPress XProfile Fields
| name | Field Name |
| type | checkbox |

When I run `wp bp xprofile field see {FIELD_ID} --fields=id,type`
Then STDOUT should be a table containing rows:
| Field | Value |
| id | {FIELD_ID} |
| type | checkbox |

When I run `wp bp xprofile field delete {FIELD_ID} --yes`
Then STDOUT should contain:
"""
Expand Down
5 changes: 5 additions & 0 deletions features/xprofile-group.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ Feature: Manage BuddyPress XProfile Groups
| can_delete | 1 |
| group_order | 0 |

When I run `wp bp xprofile group see {GROUP_ID} --fields=id`
Then STDOUT should be a table containing rows:
| Field | Value |
| id | {GROUP_ID} |

When I run `wp bp xprofile group delete {GROUP_ID} --yes`
Then STDOUT should contain:
"""
Expand Down
1 change: 1 addition & 0 deletions src/tool.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public function version() {
* Success: Signup tool updated.
*/
public function signup( $args ) {

// Bail early.
if ( bp_get_signup_allowed() ) {
WP_CLI::error( 'The BuddyPress signup feature is already allowed.' );
Expand Down

0 comments on commit 611bc8a

Please sign in to comment.