ytsapras / robonet_site

Django RoboNet operational database.
GNU General Public License v2.0
0 stars 0 forks source link

Events outside ROME footprint are set to Active on ingest #12

Closed rachel3834 closed 7 years ago

rachel3834 commented 7 years ago

When artemis_subscriber is submitting newly alerted events to the DB by default they are created with status 'ACtive', even those which are not in the survey footprint.

Need to add code to identify which events are not in the footprint and set them to 'NF' instead.

rachel3834 commented 7 years ago

This occurred because when new events were ingested to the DB by artemis_subscriber, they were being set to 'AC'tive status automatically. I've added a check in that section of the code that checks whether the code is in the footprint and sets the status accordingly.

I've also wrapped the fixes.py function notnf as a python manage command, for convenience:

python manage.py fix_nf

...and run this over the active DB after updating the subscriber code.