1
0
Fork 0
Commit Graph

55 Commits (83f9b07e218be2cc682af0d69e8893ea60600223)

Author SHA1 Message Date
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
Vasilis Tsiligiannis f85273a592 isort: Fix line length configuration
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-29 00:19:55 +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 613ef7cdbb Refresh requirements
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-07 19:17:17 +03:00
Vasilis Tsiligiannis db9457776c Update Django REST Framework
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-07 16:44:51 +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 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 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
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
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
Alfredos-Panagiotis Damkalis 6d86d9fb23 Update python libraries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-01-20 19:18:30 +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
Vasilis Tsiligiannis 9a5f58864e Generate OpenAPI schema
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-09-30 22:50:14 +03:00
Vasilis Tsiligiannis 59c3078872 Ignore 'node_modules' for 'flake8', 'isort' and 'yapf'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-09-30 19:54:38 +03:00
Alfredos-Panagiotis Damkalis 281913e9f6 Add tox as dev dependency
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2019-09-25 19:10:05 +03:00
Patrick Dohmen 8c340d9e78 satnogs-decoders: pin version to ~=1.0
Signed-off-by: Patrick Dohmen <dl4pd@darc.de>
2019-09-24 18:42:12 +02:00
Vasilis Tsiligiannis 25059fbeac Update all dependencies
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-09-22 21:53:50 +03:00
Vasilis Tsiligiannis 8f3666c2a6 Use new name of 'satnogs-decoders' package
'satnogsdecoders' has been renamed to 'satnogs-decoders'.

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-09-22 13:29:17 +03:00
Corey Shields cacef2a91e python3 - finally
Switch from python2 to python3 container

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-09-01 13:02:28 -04:00
Vasilis Tsiligiannis 26662074e5 isort: Declare 'factory' as a third-party import
* Apply changes based on new configuration
* Enable 'C0411' pylint checking

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-07-17 17:51:53 +03:00
Corey Shields dc06369f9a Update celery and dependencies
celery needed updating to avoid a 3.7 bug (see https://github.com/celery/celery/issues/4500 )

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-10 19:55:48 +02:00
Fabian P. Schmidt 723fa19ebb Update 'satellitetle'
In the 0.6.0 release the main CelesTrak source was changed from
'Satellites (active)' to the new 'SatNOGS' list. This list is
composed by CelesTrak by fetching the list of satellites
from satnogs-db.

This doesn't introduce a circular dependency:
As before, if a TLE is not available from the main collections
(which beside the previously discussed CelesTrak list includes
another from AMSAT and CalPoly), the CelesTrak SATCAT API is
questioned for each missing satellite separately.

Signed-off-by: Fabian P. Schmidt <kerel-fs@gmx.de>
2019-07-05 01:58:34 +02:00
Vasilis Tsiligiannis 45abdcd33a tox: Move 'isort' skip lists to 'setup.cfg'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 18:25:40 +03:00
Vasilis Tsiligiannis cb2c4899a9 tox: Move 'flake8' ignore list to 'setup.cfg'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-05-09 18:03:25 +03:00
Vasilis Tsiligiannis 655f98f39c Use 'isort' to fix order of imports
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-27 14:08:11 +03:00
Vasilis Tsiligiannis 140180b6b3 Reformat code with 'yapf', check format using 'tox'
Use configration based on Django coding style guidelines

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-27 12:32:33 +03:00
Vasilis Tsiligiannis f0856840f7 Update requirements, fix 'urllib3' version conflict
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-26 15:06:21 +03:00
Vasilis Tsiligiannis a14b2fda6e Update 'django-redis-cache' and 'sentry-sdk'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-03-14 00:07:15 +02:00
Vasilis Tsiligiannis bbdeeead97 Update 'gunicorn' with 'eventlet' extra, update dependencies
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-03-13 21:34:41 +02:00
Vasilis Tsiligiannis fa88e3bf51 flake8: Ignore versioneer and all migrations
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 18:14:10 +02:00
Vasilis Tsiligiannis 877f983075 Update development requirements, refresh requirement files
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 16:39:00 +02:00
Vasilis Tsiligiannis 479e3a2267 Move 'pytest' config in 'setup.cfg', add 'pytest' tox environment
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 16:39:00 +02:00
Vasilis Tsiligiannis ef76c1eb5a Add 'dev' extras
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 16:39:00 +02:00
Vasilis Tsiligiannis def0457c61 flake8: Move exclusion of versioneer to 'setup.cfg', ignore W504
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 16:38:59 +02:00
Vasilis Tsiligiannis 2bbb276be9 Install 'redis-py' version which is supported by 'django-redis-cache'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-03 00:05:20 +02:00
Vasilis Tsiligiannis 98daf161a6 Remove unused dependencies, refresh requirements file
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-03 00:05:20 +02:00
Vasilis Tsiligiannis 93baff1e1e Add missing 'sgp4' requirement
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-12-30 14:07:28 +02:00
Vasilis Tsiligiannis 0afdb0c19e Move 'sentry-sdk' under logging section in setup configuration
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-12-30 14:07:28 +02:00
Vasilis Tsiligiannis 4f1fb5fe6d Add missing 1st level dependencies in 'setup.cfg', update and freeze new lower level deps in 'requirements.txt'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-12-15 17:16:29 +02:00
Corey Shields 04b8f815c7 case LOGIN_URL for AUTH0
Signed-off-by: Corey Shields <cshields@gmail.com>

The auth0 change forces an auth0 LOGIN_URL. This fixes that with an if statement

See also https://gitlab.com/librespacefoundation/satnogs/satnogs-db/issues/248
2018-12-15 09:33:20 -05:00
Fabian P. Schmidt 923b6780bd Update satellitetle dependency (2)
Restores consistency.
2018-12-11 01:27:28 +01:00
Fabian P. Schmidt c405f781c4 Add additional TLE sources via python-satellitetle 2018-11-29 20:04:19 +00:00
Vasilis Tsiligiannis 1a037d875c Use decoders from 'satnogsdecoders' package
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2018-11-08 00:29:20 +02:00