CSC207-fiveguys / music-java-app

MIT License
1 stars 1 forks source link

Require user to select what they are searching for (Artist, Track, User etc.) #14

Closed HussainE4 closed 11 months ago

HussainE4 commented 11 months ago
<!DOCTYPE html> name about title labels assignees
Selection of object type when searching Implement system where the user can choose what type of object they search for    enhancement, question  

Is your feature request related to a problem? Please describe. When making search calls in the Spotify api we can choose what type of object we are searching for. In the current implementation, we always search for Tracks. This allows us to access the track information (and their artists but it is a little convoluted)

Describe the solution you'd like My suggestion is that when the user searches for something such as a Track or Artist or another User, we make them specify what object they are looking for, so that we can make the appropriate search call to the api or to our user dao to check if the user exists. So for example, If they search "Drake" they should have a button to choose that they are searching for the artist and not a track with the same name.

Describe alternatives you've considered An alternative is to leave the api call as it is, at the cost of a little extra work when making these calls. In this case, we will probably need to add another interface for adding friends, rather than adding that onto the search use case as well.

HussainE4 commented 11 months ago

Modified Searching to return a limited number of results for all of the objects. So each search returns up to 5 tracks, artists and users