SEP-VIA-GROUP5 / SEP6

6th Semester Project
0 stars 1 forks source link

Bug when getting stars based on name #113

Closed bis-code closed 1 year ago

bis-code commented 1 year ago

When calling this API http://localhost:8080/star/name/lauren data is mapped wrong and get the same person 3 times. Note that there are more than one person with this name in the list.

[
    {
        "addMovie": null,
        "movies": [
            {
                "id": 495176,
                "title": "The Perfect Life",
                "year": 2006,
                "posterImage": null,
                "backgroundImage": null,
                "description": null
            }
        ],
        "id": 2142487,
        "name": "Lauren",
        "birthYear": 0,
        "profilePicture": "https://image.tmdb.org/t/p/original/wlfew4J9O6fOhizjjQtqUeT36Jb.jpg"
    },
    {
        "addMovie": null,
        "movies": [
            {
                "id": 10783592,
                "title": "This Train I Ride",
                "year": 2019,
                "posterImage": null,
                "backgroundImage": null,
                "description": null
            }
        ],
        "id": 11964429,
        "name": "Lauren",
        "birthYear": 0,
        "profilePicture": "https://image.tmdb.org/t/p/original/wlfew4J9O6fOhizjjQtqUeT36Jb.jpg"
    },
    {
        "addMovie": null,
        "movies": [
            {
                "id": 1356514,
                "title": "Arsenal - Arsène's Eleven",
                "year": 2007,
                "posterImage": null,
                "backgroundImage": null,
                "description": null
            }
        ],
        "id": 3281404,
        "name": "Lauren",
        "birthYear": 0,
        "profilePicture": "https://image.tmdb.org/t/p/original/wlfew4J9O6fOhizjjQtqUeT36Jb.jpg"
    }
]
Titas212 commented 1 year ago

We get 3 different stars with the same name and there is no way to distinguish what picture belongs for what star, because they have only first name and no birth. I will close this issue.