Patrick Paul

Results 4 issues of Patrick Paul

This adds a field `PeriodicTask.origin_key` which indicates if a task database row was populated dynamically or from source code (e.g. `settings.CELERYBEAT_SCHEDULE` or `settings.beat_schedule` in `4.1+`). If an entry is removed...

Changes Needed

The [OriginValidator](https://github.com/django/channels/blob/33db839a34cc32d27a80421977b07f15d5fcf0d8/channels/security/websocket.py#L35) and `AllowedHostsOriginValidator` do not currently log anything to `stdout`/`stderr` when requests are denied. API client tools like [Insomnia](https://insomnia.rest) may not set any `Origin` header when making a websocket...

This fixes importing a COCO formatted file with an empty `segmentation` key, e.g.: `{"segmentation":[]}`. Without this fix, the function `create_segmentation` blows up with an `IndexError` here: https://github.com/HumanSignal/label-studio-converter/blob/83ac08ce3870de4bb04834314c017735c5f7bb04/label_studio_converter/imports/coco.py#L54

fix

Needs to be tested on actual python2 project/environment for compatibility. Python3 returns a `bytes` object which `re.sub` cries about. I also was not sure if there was reason for usage...