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

[#89] Store data about who has added a track to the JB #114

Merged
merged 11 commits into from
Dec 19, 2019
Merged

Conversation

tomajwinter
Copy link

@tomajwinter tomajwinter commented Dec 16, 2019

This PR adds a history of which users added the track to the jukebox by storing an array on the new Track model in the DB.

This is displayed quite simply at the moment so awaiting a better design implementation

image
Any previous plays displayed in a popover
image
image

@tomajwinter tomajwinter self-assigned this Dec 16, 2019
@tomajwinter tomajwinter force-pushed the jb89-user-added branch 2 times, most recently from 3f2ee78 to 749c308 Compare December 18, 2019 14:09
@tomajwinter tomajwinter changed the title Jb89 user added [#89] Store data about who has added a track to the JB Dec 19, 2019
return TransformTrack(data)
return new Promise((resolve) => {
const trackUris = json.map(data => data.uri)
findTracks(trackUris).then(tracks => {
Copy link
Author

Choose a reason for hiding this comment

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

Doing a find on all the playlist IDs in one go rather than inside a loop finding each one

@whomwah whomwah merged commit aef2604 into master Dec 19, 2019
@whomwah whomwah deleted the jb89-user-added branch December 19, 2019 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants