Skip to content

Forecasted Days Edge Case #7

@derekc00

Description

@derekc00

Edge case: the 5day/3hr endpont gives 40 forecasts 3hrs apart. This could give 5 or 6 "days" of forecasts. For example, if it is Monday at 7 pm, you will get Monday's 9pm forecast and Saturday's 9pm forecast - where saturday is 6 days away.

This edge case has implications on how we display the forecasted day cards. Since we are using storyboard to initialize the day cards, I will always initialize 6 cards. However, I will declare that the 6th/rightmost card's isHidden property is set to true. If there is a 6th day when configuring the cards with the weather data, I will toggle this property to false 'programatically'. Otherwise, this card will remain hidden.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions