Skip to content

Music player retrieves channel ids from featured projects#59028

Closed
fisher-alice wants to merge 26 commits into
stagingfrom
alice/music-player-from-featured
Closed

Music player retrieves channel ids from featured projects#59028
fisher-alice wants to merge 26 commits into
stagingfrom
alice/music-player-from-featured

Conversation

@fisher-alice

@fisher-alice fisher-alice commented Jun 3, 2024

Copy link
Copy Markdown
Contributor

UPDATE: Closed PR due to commit history not resolving correctly and merging issues after base branch was merged with staging. Will open new PR.

This PR updates the retrieval of music lab projects for the music home page (https://code.org/music) so that they are pulled from active featured projects instead of from a hard-coded list. A DCDO flag is also added that can switch the retrieval to a pre-selected list of channel ids. This PR follows up #58973 which added music lab projects to featured projects.

Note that BEFORE this PR is merged, at least 5 music lab projects must be published, then bookmarked and then set to be active featured projects.

After update

This screenshot demos how active music lab featured projects are displayed in the music mini-player on the music home page.

First featured projects # 1-5 are displayed in the mini-player. Then from '/projects/featured' (the admin featured projects page), the active music lab featured projects are updated and this is reflected in the mini-player.
If there are more than 5 active featured projects, 5 are randomly selected and displayed.

after-update-music-featured.mp4

Note that for testing purposes, channel ids can still be retrieved from the channels param:
Screenshot 2024-06-03 at 4 36 54 PM

Links

jira

Testing story

I tested locally by creating 7 music lab projects. Then I published and bookmarked them using dashboard-console commands. Once bookmarked, the projects were displayed at 'projects/featured'. I confirmed that they were displayed in the mini-player when a music lab featured project was 'active', and then removed when it was unfeatured ('archived').

Deployment strategy

Follow-up work

Add Amplitude analytics to log number of plays occurring in the mini-player and include user id, channel id.

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@fisher-alice fisher-alice changed the base branch from staging to alice/music-featured June 3, 2024 13:49
@fisher-alice fisher-alice marked this pull request as ready for review June 3, 2024 21:42
@fisher-alice fisher-alice requested a review from a team June 3, 2024 21:45
Base automatically changed from alice/music-featured to staging June 4, 2024 22:52
@fisher-alice fisher-alice removed the request for review from a team June 5, 2024 13:53
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.

1 participant