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

Fix day-of reporting #9

Open
mikeputnam opened this issue Jun 29, 2015 · 2 comments
Open

Fix day-of reporting #9

mikeputnam opened this issue Jun 29, 2015 · 2 comments

Comments

@mikeputnam
Copy link
Member

You may want to look at what I've done here on the Android client in order to handle they way upstream bumps their recycling date.

https://github.com/mikeputnam/isitrecyclingweek/blob/master/mobile/src/main/java/theputnams/net/isitrecyclingweek/GarbageAndOrRecycleActivity.java#L236-L251

The API simply passes along the data from upstream, and upstream toggles the new recycling date at 12am on the recycling day. This means the actual day of recycling misreports as the next recycle date.

@chrisjaure
Copy link
Member

Thanks, I'll take a look. For clarification, how does this issue manifest itself in the UI?

@mikeputnam
Copy link
Member Author

The Android client UI revolves around the question "Is it recycling week?" implicitly measured from the current date/time. This web client explicitly displays whatever the next pickup day is and tells the user if it is recycling or not.

In the Android case, when a user checks the morning of the pickup, the API has already bumped forward to the next pickup date. So the central question (and implict assumption of current date/time) becomes wrong.

Maybe in the case of your web client, the explicit pickup date makes this issue void. Not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants