Skip to content

cfbd_team_info has year as parameter but real CFBD API endpoint does not #97

@avkrishnamurthy

Description

@avkrishnamurthy

The cfbd_team_info function in cfbd_teams.R receives conference, only_fbs, and year as arguments. However, only conference and only_fbs work. year is not a query parameter according to CFBDATA. As such, this ends up not doing anything when trying to filter for different years. This can be misleading and does not actually have any functionality.

To Reproduce
Call cfbfastR::cfbd_team_info(year=2019) and cfbfastR::cfbd_team_info(year=2023) and view results. They will be the same.

Expected behavior
The call with year=2019 should give a list of teams that are active in 2019, and the call with year=2023 should give a list of teams that are active in 2023.

Screenshots
Screenshot 2024-01-27 at 3 54 42 PM
Screenshot 2024-01-27 at 3 54 27 PM

The first screenshot shows the swaggerUI docs for the CFBDATA API. As seen, there is no query parameter for year, only conference.

The second screenshot shows the source code for the teams endpoint in the cfbdata codebase. There is no filter for year, only for conference. This can be seen here https://github.com/CFBD/cfb-api/blob/main/app/team/team.controller.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions