1
0
Fork 0
Commit Graph

119 Commits (0d137863b38a3b6812291f21ffafd05b076f3269)

Author SHA1 Message Date
Alfredos-Panagiotis Damkalis 0d137863b3 Add merge satellites functionality
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-07-19 14:39:55 +03:00
Corey Shields c217f66b2d better error handling around latest_data
In satellite_card.html we assume if telemetry_data_count returns a value then latest_data will also run fine. This adds some better handling in the off chance that it does not (like in an odd cache state)

Signed-off-by: Corey Shields <cshields@gmail.com>
2021-05-14 16:11:52 -04:00
Corey Shields 33dd436cc1 do not require a norad id on new satellites 2021-05-14 14:26:36 -04:00
Alfredos-Panagiotis Damkalis 2f11e6b8e8 Separate aprrove permission for satellite and transmitter
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-11 20:27:05 +03:00
Alfredos-Panagiotis Damkalis 418fe5ab3d Support suggestions for creating/editing satellite
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-11 20:27:05 +03:00
Alfredos-Panagiotis Damkalis c75b491b9b Replace SatelliteEntry with Satellite in models
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-11 20:27:05 +03:00
Alfredos-Panagiotis Damkalis af2d04a33f Use Satellite model for satellite API endpoint
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-11 20:26:52 +03: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 0d81ecbe77 Rename Satellite model to SatelliteEntry
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-04-29 08:35:49 +03:00
Alfredos-Panagiotis Damkalis 5426167d5b Remove is_reviewed field from TransmitterEntry
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-03-11 08:29:38 +02:00
Alfredos-Panagiotis Damkalis a97f9666db Add reviewer and reviewed fields in TransmitterEntry
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-03-11 08:29:38 +02:00
Alfredos-Panagiotis Damkalis 2805acde27 Rename field reviewed on transmitterentry to is_reviewed
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-03-07 19:33:59 +02:00
Alfredos-Panagiotis Damkalis 00a91ba947 Rename field user on transmitterentry to created_by
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-03-07 19:01:34 +02:00
Alfredos-Panagiotis Damkalis afda478ccc Add station_id in DemodData model
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-02-04 12:16:16 +02:00
Alfredos-Panagiotis Damkalis 2b3282792d Add observation_id in DemodData model
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-01-30 19:38:53 +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
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
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
Vasilis Tsiligiannis f85273a592 isort: Fix line length configuration
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-09-29 00:19:55 +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 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
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
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
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
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
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
Alfredos-Panagiotis Damkalis ce1c189f02 Add Tle and LatestTle models
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-08-11 15:11:51 +03:00
Alfredos-Panagiotis Damkalis 2c97ff4f58 Use cache for satellite property "telemetry_data_count"
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-08-09 02:28:04 +03:00
Alfredos-Panagiotis Damkalis 41cb47f9ff Improve performance and reduce SQL queries
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-08-09 01:05:01 +03:00
Corey Shields 771aa22ecd Some more performance improvements for home page
Add index to DemodData.timestamp

prefetch suggestions

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-08 13:30:44 -04:00
Corey Shields 488fd9d7b4 Add migration for model validators and help_text
Fixes #397

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-02 14:07:19 -04:00
Alfredos-Panagiotis Damkalis 7938239120 Remove python 2 combatibility code
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-08-02 09:05:41 +03:00
Corey Shields 0ba46f0913 More transmitter submission improvements
Relates to #233
Fixes #364

More improvements to the transmitter submission process to auto-convert PPB to Hz and back, as well as popover.js tooltips from help_text in the model.

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-08-01 23:08:13 -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 ff3d88001e Refacter transmitter_card fields and kaitai struct decoder info
Removes the field.html include - and the frequent inclusion of that in the transmitter cards.

Fix a bug in satellite.js where input not recognized as an integer

Add gitlab links to the version info

Removes the manually-entered kaitai struct field from view (will need removed from db in a later change) - replacing with a procedurally generated list of fields from the class imported through satnogsdecoders.

Fixes #385

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-07-30 18:51:48 -04:00
deckbsd faa38e3960 add unit on frequency fields on transmitter modal
Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2020-07-30 10:54:23 +00:00
deckbsd f9baf45aa1 Add checks for high and low freq on transmitter model
Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2020-07-30 07:31:01 +00:00
deckbsd ead89b6d03 add model validators
Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2020-07-29 13:12:54 +00:00
Corey Shields 68e1e20a4e New UI fixes: data export, transmitters count, sat data leaderboard
Fixes #384 - by cleaning up the data export links

Fixes #379 - simple fontawesome change

Fixes #308 - adds 'most recent 5' observation submitters (regardless of number of submissions or staggering of submissions)

Changes the queryset for satellites to pull the properly 'approved'/valid transmitters as approved_transmitters which can be used to count transmitters with |length and reduce queries at the same time. As such:

Fixes #365
Fixes #381

Thanks to @deckbsd and @adamkalis for their assistance on these!

Signed-off-by: Corey Shields <cshields@gmail.com>
2020-07-26 17:21:05 -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
deckbsd ef1c4313aa Remove python3 migration remnants
Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2020-05-27 20:54:39 +02: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 6a81937465 Create ExportedFrameset model and fix exported frames url
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-05-20 18:14:23 +03:00
Alfredos-Panagiotis Damkalis 4ba7b8cfa9 Increase character limit on mode name
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-04-10 14:50:18 +03:00
deckbsd 1d1c72edf4 Add link to the dashboard on satellite page
remove migration tests

Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>

use urlfield instead of texfield on sat model

Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>

remove the initialization of the url field

Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2020-04-09 12:22:06 +00:00
Vasilis Tsiligiannis e9334d89e1 tox: Bump environment dependencies version
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-03-28 22:43:08 +02:00