Remove the dependency on django-avatar and use simple urls pointing
to Gravatar avatar images.
This replacement will require manual changes:
1. Remove from database the django-avatar table
2. Remove images directory that hosts old avatar images
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
This commit is part of a series of commits fixing the usage of
API Token vs API Key, see e4100a2 for details.
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
This commit is part of a series of commits fixing the usage of
API Token vs API Key.
The REST framework is using the word API Token and we already did
as well, so we should use only this word for it.
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
In SatNOGS artifacts format version 2 the observation id was moved
from its own hdf5 field into a newly created metadata field.
This commit adds support for reading this field so db can handle
version 1 and version 2 artifact files now.
Fixes#493.
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
CORS preflight uses unauthenticated OPTIONS requests to check for
the CORS headers. Thus they shouldn't be blocked.
This is a workaround proposed in:
https://github.com/encode/django-rest-framework/issues/5616Fixes#491.
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
Additional pytests, including tests for a fully populated DB
Also:
- simplify a conditional statement in the home page view
- fix broken robots.txt url parsing
- fix case in cached stats generation where new satellite id association could
trip a comparison against a NoneType by adding a default
- removed a print statement leftover from satellite id development
Signed-off-by: Corey Shields <cshields@gmail.com>
Improved handling of input data for the telemetry API and added tests for such
ensure that we return a 400 on an empty frame, station, timestamp
return 400 when lat/lng value conversion fails or when the resulting lat/lng is
out of range.
Fixes#463
Signed-off-by: Corey Shields <cshields@gmail.com>
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>