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

Labels feature #181

Merged
merged 4 commits into from
Dec 21, 2020
Merged

Labels feature #181

merged 4 commits into from
Dec 21, 2020

Conversation

oscarssanchez
Copy link
Contributor

@oscarssanchez oscarssanchez commented Dec 17, 2020

Description of the Change

This PR adds a new feature called labels. It adds a submenu of the brightcove settings called "Labels". Basic usage is described below.

First we need to add new labels via the Labels submenu:

bcove1

After this we can add the labels to videos by editing the video:

bcove3

Here we can add as many labels to a video as needed. The feature will automatically search for existing labels and attempt to autocomplete:

bcove4

bcove5

Once these labels are associated with a video, we can filter by label as well:

bcove2

Alternate Designs

Benefits

Adds support for labels in the plugin

Possible Drawbacks

Verification Process

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Applicable Issues

Changelog Entry

*/
public function get_account_labels() {
$result = $this->send_request( esc_url_raw( self::CMS_BASE_URL . $this->get_account_id() . '/labels/' ), 'GET' );
return $result['labels'];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems dangerous without validation

Copy link
Collaborator

@tott tott left a comment

Choose a reason for hiding this comment

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

This looks good to me

@oscarssanchez oscarssanchez merged commit e6114c7 into develop Dec 21, 2020
@jeffpaul jeffpaul added this to the 2.1.0 milestone Dec 21, 2020
@jeffpaul jeffpaul deleted the feature/brightcove-labels branch September 7, 2021 13:43
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