Back in d153ece we switched to the upstream backend social_core.backends.auth0.Auth0OAuth2
this commit removes the custom app we had to use for Auth0
Signed-off-by: Corey Shields <cshields@gmail.com>
Upgrade to Django 3.2 LTS
add DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' for Django 3.2
un-pin urllib3 and requests as the newer releases work with auth0 now
Signed-off-by: Corey Shields <cshields@gmail.com>
In satellite_card.html we assume if telemetry_data_count returns a value then latest_data will also run fine. This adds some better handling in the off chance that it does not (like in an odd cache state)
Signed-off-by: Corey Shields <cshields@gmail.com>
fixes deprecation warning and upcoming error:
WARNING: --use-feature=2020-resolver no longer has any effect, since it is now the default dependency resolver in pip. This will become an error in pip 21.0.
Signed-off-by: Corey Shields <cshields@gmail.com>
package.json: Add satellite.js dependency
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
Move to satellite.js in map, drop satellite footprint
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
Remove gpredict.js dependency
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
Replace gpredict.js with satellite.js
Builds on the work of kerel-fs in !596 and #440, implements satellite.js for core TLE and SGP4 handling, deprecating and removing gpredict.js
fixes#440
does NOT fix#204
Signed-off-by: Corey Shields <cshields@gmail.com>
Adds an optional 'version' field which will store version details for clients that are sending it (such as some SiDS clients, even though version is not clearly indicated in the protocol pdf)
I set this as a 45 length CharField, anticipating that there may be some application names, versions, and possible git hashes included as well.
Adds a db migration for this field, blank by default.
also removed an unnecessary setting which was default (see !628)
Relates to #456
Signed-off-by: Corey Shields <cshields@gmail.com>
With the new drf-spectacular generated schema, need to add nulltype to the list of requirements to install
update copyright dates
Improve examples and client generated docs via drf-spectacular
Signed-off-by: Corey Shields <cshields@gmail.com>
I've decided to change things up in API schema and doc generation.
Work is not quite complete but its enough for testing in dev and feedback.
Major changes:
* Renaming of api.view classes to match ViewSet inheritance (minor annoyance)
* Introduce drf-spectacular for schema generation and doc UI via swagger-ui
* lots of doc changes for the API to provide a good experience with the above.
New schema generation should work seamlessly in gitlab ci, as well as via /api/schema dynamically.
The new swagger ui view is available via /api/schema/docs/
Signed-off-by: Corey Shields <cshields@gmail.com>
There are a slew of issues related to eventlet monkeypatching ssl.py which leads to the issues we've seen in the updates I pushed to dev this week. The gunicorn update to 20 seems to be the culprit here, and wasn't caught locally because "develop" in djangoctl.sh uses the django runserver, not gunicorn.
Hopefully this fixes our issues, and I'll slowly update eventlet, requests, and urllib3 back up
Signed-off-by: Corey Shields <cshields@gmail.com>
The RecursionError we keep hitting is happening in requests+urllib3, and I can't see why quite yet but there are enough changes there to try rolling them back, if the problem goes away then we've found an upstream bug.
Signed-off-by: Corey Shields <cshields@gmail.com>