1
0
Fork 0
Commit Graph

77 Commits (spacecruft)

Author SHA1 Message Date
Alfredos-Panagiotis Damkalis 4e3e6c5902 Update python-satellitetle library
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-07-08 16:38:17 +03:00
Alfredos-Panagiotis Damkalis 7f1911082f Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-07-08 16:33:26 +03:00
Alfredos-Panagiotis Damkalis 0dc188f41b Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-06-04 20:36:45 +03:00
Alfredos-Panagiotis Damkalis 842a6b3d77 Replace django-avatar with Gravatar requests
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>
2022-04-27 15:13:34 +03:00
Alfredos-Panagiotis Damkalis 56255a0ad5 Unpin version of django-compressor python library
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-04-23 16:26:50 +03:00
Alfredos-Panagiotis Damkalis e5c0f03339 Fix missing python-jose package
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-04-19 23:50:46 +03:00
Alfredos-Panagiotis Damkalis 7ae859baea Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-04-18 11:25:19 +03:00
Alfredos-Panagiotis Damkalis da58d39357 Update to Django 4
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-04-16 23:19:15 +03:00
Alfredos-Panagiotis Damkalis e0cddccb85 Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-04-09 13:40:49 +03:00
Alfredos-Panagiotis Damkalis 69f4938908 Install django-cors-headers python library
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-10-19 03:30:34 +03:00
Alfredos-Panagiotis Damkalis 84f754dc62 Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-10-19 03:30:34 +03:00
Corey Shields ad9f4f0d6f Roll back eventlet and gunicorn for a bug
Rolling these back to avoid https://github.com/benoitc/gunicorn/pull/2581

Signed-off-by: Corey Shields <cshields@gmail.com>
2021-05-14 21:00:16 -04:00
Corey Shields cbb169e5de package and dependency updates
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>
2021-05-14 20:24:23 -04:00
Alfredos-Panagiotis Damkalis d1eab762fa Update satellite models introducing Satellite Identifier
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-04-29 08:35:49 +03:00
Alfredos-Panagiotis Damkalis ce6a5ebf4c Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-04-29 08:35:49 +03: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 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
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 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 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 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
Patrick Dohmen 83f383d851
Bump kaitaistruct version
Signed-off-by: Patrick Dohmen <dl4pd@darc.de>
2020-10-22 17:41:32 +02: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 613ef7cdbb Refresh requirements
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-07 19:17:17 +03:00
Alfredos-Panagiotis Damkalis e2b916f3ed Add task for fetching and saving TLE sets
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-08-11 15:11:51 +03:00
Corey Shields f05658476f Django 2.2.15 upgrade
Quick version bump before prod release

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-04 17:05:40 -04:00
Corey Shields 2b80a3a88f make transmitter creation and edit forms dyanmic based on type
Re-implementing the case-on-type of the prior db UI.

To keep CSP happy along with the fact that we dynamically load the modal with django-bootstrap-modal, the javascript for these modals is in a new file, and that file's hash is kept in the CSP.

Also re-introduces child_src to test fixing a safari mapbox bug

Relates to #233
Fixes #387
2020-08-01 18:50:17 -04:00
Corey Shields a7141c5b30 New SatNOGS DB user interface
Initial commit of new UI. There is still some work to be done before this goes into dev, but here is the work so far:

* Updated dependencies to latest 2.x django
* Updated to Bootstrap 4
* New home screen to display most recent satellite entries, most recent data, and contributors
* Adopted django-bootstrap-modal-forms for handling satellite and transmitter creation and update, with more of an emphasis on django's model/view/form model - and a dynamic flow where the modals and details are only loaded when the proper icon is clicked, reducing the overall page size
* Adopted AdminLTE 3.x framework atop Bootstrap 4
* Created reusable cards for satellite and transmitters
* Cards and Modals are organized into subdirectories for template includes and base templates, respectively
* New stats display widgets using BS4 and AdminLTE 3
* Satellite search is redesigned and now accessible from any page of the site
* Introduced datatables for an "All Satellites" view and a modification of the new "All Transmitters" view
* Focus on all UI scaling down to mobile devices
* New model created for Operator (/ Owner): name, names, description, website
* Added django-countries for support of CountryField
* Satellite model expanded to include: Operator, (satellite) website, countries, launched datetime, deployed datetime
* Transmitter suggestions can now be approved in the UI by superusers
* Satellite entries can now be edited in the UI by users with the change satellite permission
* Satellite page is now broken into 'tabbed' panels (Profile, Map, Transmitters, etc) - with the tab menu options appearing in the sidebar or at the top depending on screen size
* Other cleanup and changes that I'm missing for sure.

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-07-25 22:08:44 +00:00
Alfredos-Panagiotis Damkalis aef8d5c33b Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-07-13 13:32:45 +03:00
Alfredos-Panagiotis Damkalis 39befe0dfc Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-07-13 13:32:45 +03:00
Alfredos-Panagiotis Damkalis 20153300cf Add PyLD library for JSON-LD support
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-07-01 16:59:20 +03:00
Alfredos-Panagiotis Damkalis 412c2aa085 Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-07-01 16:59:20 +03:00
Pierros Papadeas d8aef58025 Add artifact model and API endpoint for new waterfall artifacts
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2020-05-20 19:42:31 +03:00
Alfredos-Panagiotis Damkalis 3b2f41bded Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-03-24 14:19:23 +02:00
Alfredos-Panagiotis Damkalis e6d0f4b417 Update Django to 2.2.10 and other python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-02-04 16:40:27 +02:00
Fabian P. Schmidt 80558c4c28 Update 'satellitetle' dependency
v0.8.1 -> v0.9.0

Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2020-02-01 23:09:44 +01:00
Fabian P. Schmidt f3c395a795 Update dependencies
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2020-02-01 23:04:52 +01:00
Alfredos-Panagiotis Damkalis 6d86d9fb23 Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-01-20 19:18:30 +02:00
Vasilis Tsiligiannis 632f951531 Refresh requirements
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-12-20 02:24:42 +02:00
Fabian P. Schmidt 97dc4e0652 Update 'satellitetle' dependency
v0.8.0 -> v0.8.1

Fixes broken TLE update due to trailing newline in AMSAT TLE source.

Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2019-12-19 11:51:05 +01:00
Fabian P. Schmidt f72bd9a3f3 Update 'satellitetle' dependency
Move 'satellitetle' from 0.7.0 to 0.8.0,
fixes update_satellite management command and update_all_tle task for
satellites which are not part of any list in celestrak but available
via the Celestrak satcat/tle.php endpoint (currently only NARSSCube-1).

Both commands use `fetch_tle_from_celestrak` (directly and indirectly),
which was broken due to an API change by Celestrak.

Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2019-12-01 19:41:49 +01:00
Corey Shields 72e5d728a2 Django 2.2(.6) upgrade
This change bumps DB up to django 2.2.6 and resolves dependencies.  No migrations are necessary.  I've tested in my own environment, time to test in db-dev!

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-10-14 02:59:52 -04:00
Corey Shields e7e400e49a Revert "Django 2.2(.6) upgrade"
This reverts commit 8cae425ac9
2019-10-12 14:55:37 +00:00
Corey Shields 8cae425ac9 Django 2.2(.6) upgrade
This change bumps DB up to django 2.2.6 and resolves dependencies.  No migrations are necessary.  I've tested in my own environment, time to test in db-dev!

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-10-10 19:17:23 -04:00
Vasilis Tsiligiannis 8710a2df3b Install and enable Django Debug Toolbar when in debug mode
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-10-07 23:35:42 +03:00