Conversation
21d2232 to
18e05c1
Compare
|
Have rebased the branch. This looks like a good start, wondering if we should wait until we know how to deal with fuzziness. |
|
I think part of the problem is that a lot of the display code depends upon those statuses being named. If we generalise the display code and ensure that statuses are always passed in the order working -> however many in betweens -> completely borked, then we never even have to look at the names of the statuses. I'm not even sure that fuzziness is needed. If a user can only ever input the statuses (and a pre-parse of data imported from elsewhere handles the fuzziness), the scripts can be quite simple. Or tis there something fundamental I'm missing? |
|
Can you expand on how we could simplify the display code that way? I agree that fuzziness is a separate issue that needs to be handled elsewhere. |
|
1st point: Have not had the chance yet to look into the code & changes in detail so can't really answer that yet. Note it is not inconceivable we move to a hierarchical status model in the future instead of a linear one. 2nd point: yeah, fuzziness really only comes into play on data import or when reporting by sms. So should be another issue really. |
|
Sure, throughout the graphing stuff is things like: However, it could be something like: There's also a lot of stuff like With a guaranteed ordered list that's: I've yet to see anything between the end points being checked so I could be wrong. |
18e05c1 to
d919321
Compare
|
Rebased again, please check carefully, there were lots of tricky merge conflicts. |
There was a problem hiding this comment.
This should be plural... $rootScope.waterpointStatuses...
There was a problem hiding this comment.
Yeah but this is adding it to scope, so you can define it however you want. There are multiple statuses available so it should be statuses :)
d919321 to
e1afd7d
Compare
|
This looks good to me :) What do you think about the linear progression so's we can remove all references to statuses? |
|
Not sure, that's the dashboard i.e. @dgorissen's territory. |
* Add a new factory to services.coffee which gets statuses from
the Flask taarifa_waterpoints.py
* Allow statuses to be globally accessible through the $rootScope
so templates now use that instead of hard-coded.
* Convert the map generation into using promises so the statuses
can be non-hard-coded.
* Things left I have no idea about:
* plots.js is a bunch of global functions which isn't used by
angular.
* There are some places in the code which checks is status
functional? Need some input on how to do that - status ID or
something maybe?
* Nothing is fuzzy yet.
e1afd7d to
6bc830b
Compare
|
Have rebased again, but this will need updating w.r.t. status -> cost mapping added in @dgorissen's heatmap pr #128 (i.e. these are still hard coded). |
|
This has been rotting for a while. Do we still want this @dgorissen? If so, should clean up and merge to prevent even further bitrot. |
|
Same comment as #130 .. needs time :( Would already be good if we could at least merge what was done so far |
|
Yes, maybe @cazgp can spring into action again and update this pr? |
|
I'm not sure what else I needed to do on this? I thought it was good to go but then it wasn't. Unfortunately I don't have so much coding time atm. |
|
Don't remember exactly, I think we were waiting on feedback from @dgorissen regarding dashboard-related changes. For starters this would need rebasing. Might get to it at some point, but can't promise. |
No description provided.