Closed moshthepitt closed 5 years ago
It seems that this works as expected.
Some notes:
task_execution_start_date
absolutely needs to be set. It is not possible to create a SprayDay object that has no spray datetask_business_status
value is something other than Not Visited
. Therefore, it is impossible to view new structures on the mSpray maps unless that structure has a Sprayed/Not Sprayed/Not Eligible spray_status
aka task_business_status
in reveal. @craigappl @githengi and also @ukanga
I've investigated how to make new structures show up even when they have no spray_status
(task_business_status
other than Not Visited
). i.e. show a yellow circle on a map where a new structure that has not yet been visited is located.
mSpray currently does not support it - it makes the assumption that when you add a new structure to the map then at the same time you mark it as Sprayed/Not Sprayed/Not Sprayable. So, technically, all the new points in the mSpray system currently do have to have a spray_status
.
I can modify mSpray to make these new structures show up even when they have no spray_status but it a significant amount of work, in my view - because it changes a core assumption of the mSpray system.
I am on the fence about whether we should actually do this because:
With that said, I would love to have your views on this. Specifically whether you think we should go ahead and do this bit of work.
@moshthepitt , how do we currently get yellow structures in mSpray? Are those loaded in to the location instead of spray days?
@craigappl yes, the yellow structures are loaded as locations at the beginning of the season
Is the LOE of loading them in as locations what you're describing here?
So, can we just load them all in as locations instead of loading them in as sprayed items?
That's the only way we would end up doing it in my view @craigappl. The complexity I mentioned arises in how to tell if a structure is new or not as that currently is tied to spray events.
The level of effort is 2 or so days of me working on this, but there may be unexpected changes/errors in the indicator calculations that aren't easy to anticipate. But if everything goes well, its two or so days of me working on this.
I'm going to close this issue.
Some final notes:
There were some problems with the above, which have since been solved (or so we hope):
Ensure that new points from Reveal via Nifi are received and processed correctly.
The data comes in this format: