1
0
Fork 0
Commit Graph

976 Commits (0e6c120cc9437f99e7c74a2f12bdf3e62483d050)

Author SHA1 Message Date
Alfredos-Panagiotis Damkalis 0e6c120cc9 Narrow ignored members to zmq library
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-01-20 13:09:00 +02:00
Alfredos-Panagiotis Damkalis 4aed383ed0 Add observer field to ZeroMQ sent data
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-01-20 13:06:29 +02:00
Alfredos-Panagiotis Damkalis 87ac2f9dc9 Remove post_save signal for Telemetry object
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-01-20 13:06:29 +02:00
Alfredos-Panagiotis Damkalis 4b8239739a Publish new SiDS frames by using a ZeroMQ socket
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-01-20 13:06:29 +02:00
Alfredos-Panagiotis Damkalis 1b366d1722 Add zeromq python library
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-01-20 13:06:29 +02:00
Alfredos-Panagiotis Damkalis f1d885f172 Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-01-20 13:06:29 +02:00
Corey Shields 131831a811 Add version field for demoddata entries
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>
2021-01-19 19:38:54 -05:00
Corey Shields bb24e771d6 minor updates to satnogs-db-api-client
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>
2021-01-17 11:45:52 -05:00
Vasilis Tsiligiannis 0f09f58629 Fix skipping of migrations by 'isort'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2021-01-14 16:04:08 +02:00
Vasilis Tsiligiannis fd337e9dd0 Remove futile dependency conflict workaround
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2021-01-14 15:51:05 +02:00
Vasilis Tsiligiannis 8107ee4460 gitlab-ci: Bump 'tox' version
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2021-01-14 15:50:35 +02:00
Vasilis Tsiligiannis 98acbd2640 tox: Bump 'twine' and 'sphinx_rtd_theme' versions
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2021-01-14 15:28:20 +02:00
Vasilis Tsiligiannis 79382a5c2f tox: Bump 'pylint' and 'pylint-django' versions
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2021-01-14 15:28:20 +02:00
Vasilis Tsiligiannis d92e655cb5 Use Python 3 style 'super()'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2021-01-14 15:28:20 +02:00
Vasilis Tsiligiannis 648db98037 tox: Bump 'yapf' version
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2021-01-14 15:28:15 +02:00
Vasilis Tsiligiannis a114826f80 tox: Bump 'isort' version
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2021-01-14 14:45:25 +02:00
Vasilis Tsiligiannis 3d96fe1e41 Fix YAPF dict formatting
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2021-01-13 20:21:55 +02:00
Corey Shields 5e03f7c759 Epic API (doc) changes for SatNOGS DB
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>
2021-01-09 20:44:19 -05:00
Corey Shields bec7469dc2 bump container from python 3.8.6 to 3.8.7, revert gunicorn
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>
2021-01-03 18:43:23 -05:00
Corey Shields 8ec3b93aba auth0 debugging: pull requests and urllib3 back down
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>
2020-12-30 19:30:39 -05:00
Corey Shields e5ddc38e96 add https back to callback url on auto0
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-12-30 17:53:30 -05:00
Corey Shields d153ece5ef Trying upstream auth0 backend in social_core
Trying the upstream backend against the ssl recursion issue we are seeing in dev.  May back out.

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-12-30 17:16:21 -05:00
Corey Shields bcee356c24 auth0login updates
Start using JWT from auth0, along with updated social-auth-app plugin and newer jose.  Tested locally but only with a http redirect, will test ssl in dev

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-12-30 10:29:28 -05:00
Corey Shields 46eb5aa8c8 Roll a couple of libraries back
We seemed to hit a regression in celery with db-dev that should have been fixed in https://github.com/celery/celery/issues/6445 but is causing us issues.

Also pulling the social-auth package back with a weird ssl recursion issue.

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-12-29 22:04:24 -05:00
Corey Shields 17f4ab100b Update packages and libraries
Updating pretty much everything but django itself, ahead of a jump to Django 3 real soon.

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-12-29 22:46:51 +00:00
Corey Shields a1aafce76b Offer a dynamic API schema view
adds the /api-schema URL which will provide the current API schema in OpenAPI format, both in rendered and downloadable formats.

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-12-29 15:00:08 -05:00
Corey Shields 0fc7107172 Tighter exception handling
Removed most of the bare Exception catches and put proper errors to catch in their place.

Reworked a bit of the gridsquare calculation, any exceptions raised should now be handled within the function.

I am purposefully leaving the 2 W0703's we have for data demodulation alone for now, as that will be quite a rabbit hole. Otherwise,

fixes #316

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-12-29 14:13:12 -05:00
Corey Shields 46883750e4 Remove former openapi postprocess script
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-12-29 10:33:16 -05:00
Vasilis Tsiligiannis 18ff90735e docs: Add requirements file
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-12-29 17:17:39 +02:00
Corey Shields 83f9b07e21 Updates for newer API / django rest framework
Update to Django Rest Framework 3.12.2 with improved schema generation.

However, it is still not quite complete for what we need (and what we currently postprocess for). Instead of postprocessing, this commit introduces our own extended generator to add the missing fields.

Once this is vetted good, we can remove contrib/postprocess-openapi-schema.py 

Also added better comments to api/views.py which will end up in schema docs

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-12-29 07:48:58 -05:00
Vasilis Tsiligiannis cc422353e7 docs: Simplify Sphinx configuration
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-12-29 13:13:57 +02:00
Vasilis Tsiligiannis 1abbf425ef gitlab-ci: Copy API documentation to pages
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-12-29 12:40:55 +02:00
Vasilis Tsiligiannis 1da488642a gitlab-ci: SAST: Do not scan dependencies
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-12-29 12:09:47 +02:00
Vasilis Tsiligiannis 7629b8f762 gitlab-ci: Fix missing assets
DAG was not set correctly and collected assets were not passed to
subsequent jobs that needed them.

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-12-29 10:47:36 +02:00
Vasilis Tsiligiannis 9abde9b765 Add Read the Docs configuration
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-12-28 21:34:52 +02:00
Vasilis Tsiligiannis 99f3a5fcc2 Override install requirements when building with Read the Docs
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-12-28 21:34:30 +02:00
deckbsd c07696c80e fix satellite structured data
fixes #431

Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2020-12-19 12:14:02 +00:00
Papadeas Pierros 9e8e1b169f Fix analytics code inclusion
Signed-off-by: Papadeas Pierros <pierros@papadeas.gr>
2020-12-11 13:11:03 +02:00
Vasilis Tsiligiannis 8d60968729 Fix catching of Kaitai decoding exceptions
Kaitai Struct exceptions inherit from 'BaseException' instead of
'Exception' class. This issue is fixed upstream but did not make it
to the release of Kaitai Struct (see PR #53).

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-12-08 23:58:57 +02:00
deckbsd 3ccc3ef0fd fix wrong dates showed on last 30 days data graph
Fixes #444

Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2020-12-03 17:29:35 +01:00
Corey Shields c7772f4c78 Show uplink mode
Show the uplink mode in the transmitter card when it exists.

Fixes #437

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-11-14 08:57:57 -05:00
Vasilis Tsiligiannis a3866f180b Bump 'mysqlclient' version, refresh requirements
This should fix failing 'Read the Docs' documentation generation since
presence of 'mysql' executable is not a checked when installing a wheel
package.

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-11-09 18:23:34 +02:00
Vasilis Tsiligiannis fce52ec637 refresh-requirements: Use new dependency resolver
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-11-09 18:12:11 +02:00
Vasilis Tsiligiannis 1f2dc4b75f Invalidate Docker cache by setting argument
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-11-04 10:46:52 +02:00
Vasilis Tsiligiannis 6680a7fe12 gitlab-ci: Create Sentry release on each tag
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-10-31 01:22:56 +02:00
Vasilis Tsiligiannis 6da1afd742 gitlab-ci: Always use latest compatible version of 'satnogs-decoders'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-10-31 01:21:51 +02:00
Vasilis Tsiligiannis b98cb87f4d sentry: Set release from version
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-10-31 00:59:34 +02:00
Vasilis Tsiligiannis d435eef416 sentry: Set environment tag
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-10-31 00:02:04 +02:00
Vasilis Tsiligiannis 816eba90c2 gitlab-ci: Pass commit SHA or tag variable when triggering pipelines
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-10-26 20:24:36 +02:00
Patrick Dohmen 83f383d851
Bump kaitaistruct version
Signed-off-by: Patrick Dohmen <dl4pd@darc.de>
2020-10-22 17:41:32 +02:00