Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Review reports code / functionality #994

Closed
@orenyk

Description

@orenyk

Inspired by an e-mail from BMEC - the reports functionality is buggy (as an example it looks like the "Returned On Time" column isn't being calculated correctly), so we should review the code as it exists and potentially rewrite it to be more useful. We should also contact our current clients and find out who's using the functionality and how. This would ideally happen pre-export but isn't blocking.


Original e-mail:

Hey Devs!

Any idea why the "Report" function is returning a bunch of "zeros" for the fields on the report page?

screen shot 2014-09-22 at 4 11 41 pm

The numbers in the rest of the fields don't add up to the "total," and it's unclear which categories overlap. I'm trying to get statistics for the iPads, specifically.

Thanks!

My response:

Hi Chris, you can get more detailed statistics for a given equipment model (e.g. here [link to /reports/:id/for_model]); I'm not 100% sure how the reports functionality was set up so it's not immediately clear what fields overlap. Here's what I've figured out thus far: total includes all reservations that start and end within the given time period. For some reason it looks like Returned On Time isn't being calculated correctly (for example, [USER] returned an iPad on 09/16/2014 which was included in Total but doesn't appear in that column).

[Something I've noticed looking at that user is that he's been chaining iPad reservations continuously; I don't know if this is something you intended but he's been creating new reservations every time he returns a previous reservation.]

It seems like the whole reports functionality needs to be looked over; I'd trust the Totals and Checked Out numbers, probably, but everything else is a bit fuzzy. We'll try to look at this at some point but I don't think we'll be updating it on your end any time soon since we have a lot of other stuff on our plate to try and get the app ready for the world beyond Yale :-). Let me know if that helps, thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions