1
0
Fork 0
Commit Graph

1106 Commits (spacecruft)

Author SHA1 Message Date
Vasilis Tsiligiannis 13c39be360 gitlab-ci: Split application and API client build into separate jobs
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-25 19:03:03 +03:00
Vasilis Tsiligiannis b0aebd41b9 gitlab-ci: Set DAG relationships
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-25 18:41:04 +03:00
Vasilis Tsiligiannis 9a39a70722 gitlab-ci: Remove deprecated dependency scanning option
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-25 18:32:25 +03:00
Vasilis Tsiligiannis 53ea7728e2 gitlab-ci: Disable Babel for NodeJS scanning
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-25 18:32:25 +03:00
Vasilis Tsiligiannis 6af7d06a74 gitlab-ci: Fix security templates path
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-25 18:32:25 +03:00
Vasilis Tsiligiannis b457e7460d gitlab-ci: Enable secret detection job
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-25 18:32:25 +03:00
Patrick Dohmen cb0b00e304
Fix wrong break statements and optimize django query
Fixes issue 427

Signed-off-by: Patrick Dohmen <dl4pd@darc.de>
2020-09-25 10:42:44 +02:00
Alfredos-Panagiotis Damkalis 8e2f52a59f Fix datetime format in Tle API endpoint
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-25 04:59:18 +03:00
Patrick Dohmen 1e9b695569 Issue #422: fix character field size
Includes migration.
Fixes issue #422

Signed-off-by: Patrick Dohmen <dl4pd@darc.de>
2020-09-23 16:55:50 +00:00
Alfredos-Panagiotis Damkalis 09e630890f Add absolute path to logo image on 5xx pages
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-23 17:04:40 +03:00
Alfredos-Panagiotis Damkalis a841bd48d5 Add static html pages for 501, 503 and 504 errors
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-23 13:33:27 +03:00
Alfredos-Panagiotis Damkalis 63e1c50f8d Add custom admin save/delete methods for Tle model
As currently the only way to add/delete manually Tle objects is
through admin panel, I've replaced Tle signal receivers with custom
admin save/delete methods in order to trigger updating of
LatestTleSet objects more efficently.

Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-22 22:25:23 +03:00
Alfredos-Panagiotis Damkalis e38fa63079 Add list_filter on LatestTleSet admin view
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-22 22:18:17 +03:00
Alfredos-Panagiotis Damkalis 87d5329c36 Fix tle_source field in satellite view template
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-22 22:18:17 +03:00
Patrick Dohmen 6dd9bff360
Move signal handlers to separate files
Signed-off-by: Patrick Dohmen <dl4pd@darc.de>
2020-09-22 21:02:46 +02:00
Patrick Dohmen 2ef400acf9
Add task to decode a currently stored frame
Signed-off-by: Patrick Dohmen <dl4pd@darc.de>
2020-09-22 21:02:46 +02:00
Vasilis Tsiligiannis 31320f739c Implement script to post-process OpenAPI generated schema
The script can be used to:
- Expand aliases and anchors
- Set API version
- Set server URL
- Enable API key authentication scheme

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-22 21:38:07 +03:00
Vasilis Tsiligiannis 2b714a754e gitlab-ci: Remove futile copy of API docs
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-22 21:38:07 +03:00
Alfredos-Panagiotis Damkalis 6a12f76a26 Remove LatestTle model and introduce LatestTleSet model
LatestTle model was a proxy model on Tle one, using it for API adds a
significant delay to respond on the API requests. For this reason
LatestTle model is removed and LatestTleSet model takes its place.

LatestTleSet is updated asynchronously and keeping references to
latest TLE sets of Tle model. This allows to retrieve the TLE sets
faster.

Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-22 17:37:55 +03:00
Alfredos-Panagiotis Damkalis ae48ac7008 Move app's signals and methods to seperate file
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-22 17:23:29 +03:00
Alfredos-Panagiotis Damkalis 74fd41b2a8 Remove Tle model constaint
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-22 17:23:18 +03:00
Alfredos-Panagiotis Damkalis e27fbb09b9 Add status "future" migration
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-21 19:17:54 +03:00
Pierros Papadeas 5c01c5d72b Add satellite status 'future'
fixes issue 409

Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2020-09-21 18:26:13 +03:00
Vasilis Tsiligiannis b51e6f4792 docs: Properly set version and release
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-21 17:43:00 +03:00
Vasilis Tsiligiannis 498fa704a3 docs: Point to generated API documentation
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-21 17:41:05 +03:00
Vasilis Tsiligiannis e2086c72b8 satnogs-db-api-client: Generate API documentation
Generate API documentation from OpenAPI specification. Also, update
outdated Sphinx documentation and include the generated docs.

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-21 13:13:10 +03:00
Alfredos-Panagiotis Damkalis 45eb948f57 Add button to update TLE sets in Tle admin panel
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-18 04:47:35 +03:00
Alfredos-Panagiotis Damkalis 816ab8cd49 Add 'norad_follow_id' field to Satellite model
The 'norad_follow_id' field is used for aquiring TLE sets for a
satellite with a temporary NORAD ID.

Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-17 20:35:44 +03:00
Alfredos-Panagiotis Damkalis 09bb5b0875 Remove satellite TLE fields in favor of Tle model
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-15 21:05:43 +03:00
Alfredos-Panagiotis Damkalis dd10892eaf Use new model for TLE sets
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-09-15 21:05:43 +03:00
Vasilis Tsiligiannis 37cc41d86c Make file uploads world readable
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-14 22:38:18 +03:00
Corey Shields 0dbb1df42d Stats page improvements
Various improvements to the stats page:

Added a legend of top chart items to the footer of bands and modes charts. Fixes #408

Added a (cached) count of decoded frames to the Satellites table. Fixes #400

Added a note about the cached nature of stats. Fixes #403

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-12 17:10:06 -04:00
Corey Shields 2e25763185 Make contributor list scrollable
Hooray for success - we have tons of contributors in a 24 hr leaderboard!! Making this fit the screen a bit better and scrollable.

Fixes #402

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-12 14:33:45 -04:00
Corey Shields b5dd2eb4ea Fix TLE formatting in Satellite Data tab
Have to make this card a full width, even at col-xl-6 size it can shrink to stretch past the edge of the card. Adjusted a little more to make better visual use of the space as well.

Fixes #426

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-12 14:03:45 -04:00
Corey Shields 3af17917ba docstring fix
small docstring fix, we are not moving toward any 'purchases' :)

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-12 13:16:52 -04:00
Corey Shields eb859b7a44 show status text if satellite has uncoordinated transmitter
If the satellite has a transmitter that is flagged as 'bad_transmitter' (frequency coordination violation today), then show such in the Status card.

Fixes #250
 
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-12 11:00:50 -04:00
Pierros Papadeas fa32a0ebb4 Fix broken links to Dashboards and Network Observations
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2020-09-09 12:13:25 +03:00
Corey Shields d6f6ff0c2e Accessibility improvements
Some accessibility improvements:

* fixed some buttons to be more compatible with keyboard focus
* added labels where missing for tab links where a screenreader might get confused by the fontawesome icon
* added a "Skip to main content" link
* labeled the search box 
* added labels for some of our visual indicators for satellite and transmitter statuses
* ensured that "Focusable elements should have interactive semantics"

Fixes #414
Fixes #417
Fixes #418
Fixes #419
Fixes #420

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-07 12:38:59 -04:00
Vasilis Tsiligiannis cb705d3c1b Add schema YAML aliases workaround
This patch is a workaround to https://github.com/encode/django-rest-framework/issues/7479

Load and dump YAML using a dumper with disabled aliases in order to
workaround the aforementioned bug.

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-07 19:17:25 +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
Corey Shields 3d1c504e1d Linting and cleanup of unused view data
Linting for imported-auth-user to use get_user_model() instead

Pulled unused (old) variables and queries out of views for home, satellites, satellite, stats. Should improve page load a bit.

Relates to #424 

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-06 13:24:15 -04:00
Corey Shields 402ec942ab Add frequency coordination status to transmitters
Adds 2 fields to transmitter model, coordination (fixed set of choices, defaulting to blank) and coordination_url. API, UI, and tests are included.

Also introduces a bad_transmitter property to transmitter that will return true if any 'Uncoordinated' or '..Rejected' status is selected.

Fixes #311

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-06 11:32:15 -04:00
Corey Shields 0600d2a090 Change the way admin notifications are triggered for new transmitters
Changes the admin email notifications to a backend celery task so that the UI does not block on it.

Also prevents this process from running twice as form_valid gets triggered for validation and saving.

Should fix #421

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-03 14:14:44 -04:00
Corey Shields b002ca6e37 improve deep link anchor formatting
Be more consistent with /url#anchor when deep linking to tabs in satellite and stat views
 
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-09-03 10:01:01 -04:00
Corey Shields b7e82848d5 Add ability to link to tabbed panes and fix map visibility
handle deep-linking of anchors into tabbed panes on the satellite and stats pages.
Fixes #399

Also clean up map visibility, only showing if a satellite has not re-entered *and* has a TLE associated with it (note, we are not testing for validity of the TLE).
Fixes #412
 
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-30 16:17:08 -04:00
Corey Shields 5395122ac7 Fix for satellite image upload in new UI
Image files were not getting uploaded due to the lack of enctype on the form.

Easy fix, hard discovery (sigh)

Fixes #413
  
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-27 21:00:42 -04:00
Corey Shields aa5eaaad74 Better numerical sorting for transmitters table
Improve the column sorting for numerical data per datatables.net docs at https://datatables.net/plug-ins/sorting/natural

Fixes #407
 
Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-27 20:12:17 -04:00
Pierros Papadeas 87ab59c738 Fix datetime format displaying
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
2020-08-14 16:33:50 +03:00
Alfredos-Panagiotis Damkalis f18140e153 Add distribution logic on TLE model and API endpoint
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-08-11 15:11:51 +03:00