1
0
Fork 0
Commit Graph

1106 Commits (spacecruft)

Author SHA1 Message Date
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
Corey Shields b44b618c04 set TLE object relationship to NULL when satellite is deleted
Changes CASCADE to SET_NULL when upstream satellite object is deleted, preserving the TLE history in DB. 

Tested locally with a deletion

Fixes #435

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-10-11 10:13:07 -04:00
Corey Shields 2400c6b4f6 Add sorting by status to satellites view
Adds the ability to sort on the 'status' column (which today does nothing) by setting the field by which datatables will sort on to sat.status

This also has the benefit of filtering on sat.status as well, though one would need to know the backend statuses to use (ie: 'alive' vs 'dead'). Not sure that is ideal but this is a quick fix.

Fixes #428 

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-10-11 09:51:45 -04:00
Corey Shields a653f0697c Fix export last week bug
As reported in #433 there was a bug causing export requests for the last week to be treated as a last month export.

Fixes #433 by treating the period variable as the int that it is. Also makes the preceding check a little easier to understand by being explicit against the None case. 

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-10-11 08:57:07 -04:00
Vasilis Tsiligiannis 08cd629c05 Improve reproducability of CI and image building (fixes #436)
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-10-09 12:54:16 +03:00
Fabian P. Schmidt 3ed0d750db transmitters-chart: Show satellite name in tooltip
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2020-10-08 22:02:08 +02:00
Pierros Papadeas 2835df9553 Add transmitters chart
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2020-10-03 15:35:16 +03:00
Alfredos-Panagiotis Damkalis 8e52ab8e8d Update last_modified field on LatestTleSet object update
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-30 09:09:58 +03:00
Vasilis Tsiligiannis f85273a592 isort: Fix line length configuration
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-29 00:19:55 +03:00
Alfredos-Panagiotis Damkalis f53d240f5b Generate observer in DemodData object in api/view
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-28 12:08:21 +03:00
Alfredos-Panagiotis Damkalis 387affac12 Fix AttributeError on decode_data function
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-28 10:06:49 +03:00
Alfredos-Panagiotis Damkalis 2b594d427c Stop triggering signals during DemodData decoding
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-28 04:23:46 +03:00
Alfredos-Panagiotis Damkalis b31d40809f Fix race condition in DemodData decoding
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-27 22:43:44 +03:00
Alfredos-Panagiotis Damkalis ed0a22503d Improve performance when update LatestTleSet entries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-26 22:55:03 +03:00
Vasilis Tsiligiannis 5406261482 Refresh requirements, fix conflicts
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-26 01:11:20 +03:00
Vasilis Tsiligiannis 8561037130 gitlab-ci: Fix disabling of Babel on SAST scanning
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-25 23:45:09 +03:00
Vasilis Tsiligiannis 34c7e4fd03 gitlab-ci: Improve Docker image reproducability
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-25 23:32:43 +03:00
Alfredos-Panagiotis Damkalis 815d56a6f8 Ignore set TLE sources from latest TLE calculations
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-25 20:34:29 +03:00
Vasilis Tsiligiannis e29e8eb5a4 gitlab-ci: Enable license scanning
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-25 19:43:48 +03:00
Vasilis Tsiligiannis 30e0c27461 gitlab-ci: Deploy right after Docker image is pushed
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-25 19:39:50 +03:00
Vasilis Tsiligiannis e6a76cf1a7 gitlab-ci: Reorder jobs in YAML file
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-25 19:39:19 +03:00