Alfredos-Panagiotis Damkalis
5e219954bb
Remove squashed migrations
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-04-12 13:08:25 +03:00
Alfredos-Panagiotis Damkalis
26677db242
Fix color of toast element for error messages
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-03-30 13:04:55 +00:00
Alfredos-Panagiotis Damkalis
2e13954fef
Increase cache time and update interval for stats
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-02-07 16:27:43 +02:00
Alfredos-Panagiotis Damkalis
1eb1526cd5
Change choices of coordination field of TransmitterEntry model
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-01-11 08:52:49 +00:00
Alfredos-Panagiotis Damkalis
9ff314fe88
Fix caching statistics task
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2022-01-04 22:02:27 +02:00
Alfredos-Panagiotis Damkalis
0f95cdec29
Convert set of NORAD IDs to list in update_tle_sets task
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-12-26 17:32:34 +02:00
deckbsd
52d23bc7e0
Prevent unwanted modal close
...
fixes #484
Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2021-11-03 09:26:31 +00:00
Fabian P. Schmidt
fffca10916
Rename API Key to API Token nav item
...
This commit is part of a series of commits fixing the usage of
API Token vs API Key, see e4100a2 for details.
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2021-11-02 13:20:20 +00:00
Fabian P. Schmidt
9f629bb715
Specify the scope of the SatNOGS DB API token in modal
...
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2021-11-02 13:20:20 +00:00
Fabian P. Schmidt
d674f10e70
Rename get_apikey to get_api_token
...
This commit is part of a series of commits fixing the usage of
API Token vs API Key.
The REST framework is using the word API Token and we already did
as well, so we should use only this word for it.
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2021-11-02 13:20:20 +00:00
deckbsd
51d9a3f499
Check for bad transmitter only on valid ones
...
fixes #479
Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2021-11-02 13:14:22 +00:00
deckbsd
8b641a89dc
Review the wording used for suggesting a new satelitte
...
fixes #476
Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2021-11-02 13:07:14 +00:00
Fabian P. Schmidt
ba950b6a34
Fix uploads for version 2 artifacts
...
Fixes #497 .
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2021-10-28 20:54:23 +03:00
deckbsd
24521a7f98
add sat_id filters on the different api views
...
fixes #473
Signed-off-by: Julien Flawinne <jf.satnogs at protonmail dot com>
2021-10-25 17:48:52 +00:00
Fabian P. Schmidt
49ee559251
Enable CORS headers for artifact media file requests
...
Fixes #495 .
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2021-10-21 20:09:27 +03:00
Fabian P. Schmidt
37daecf507
Add support for satnogs artifacts version 2
...
In SatNOGS artifacts format version 2 the observation id was moved
from its own hdf5 field into a newly created metadata field.
This commit adds support for reading this field so db can handle
version 1 and version 2 artifact files now.
Fixes #493 .
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2021-10-21 00:43:49 +03:00
Fabian P. Schmidt
52147ade28
Allow unauthenticated OPTIONS for artifacts API requests
...
CORS preflight uses unauthenticated OPTIONS requests to check for
the CORS headers. Thus they shouldn't be blocked.
This is a workaround proposed in:
https://github.com/encode/django-rest-framework/issues/5616
Fixes #491 .
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2021-10-20 08:01:18 +00:00
Alfredos-Panagiotis Damkalis
283cca5e40
Add CORS headers for artifacts API requests
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-10-19 03:30:34 +03:00
Alfredos-Panagiotis Damkalis
a175b59f1c
Return error for sids frame without Norad ID
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-10-19 03:30:34 +03:00
Alfredos-Panagiotis Damkalis
934a8eeccb
Fix transmitter API test
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-08-19 12:31:36 +03:00
Papadeas Pierros
51ec39a333
Exclude invalid transmitters from api and UI.
...
Signed-off-by: Papadeas Pierros <pierros@papadeas.gr>
Signed-off-by: Papadeas Pierros <pierros@papadeas.gr>
2021-08-19 11:01:41 +03:00
Alfredos-Panagiotis Damkalis
34f8c4e919
Fix SatelliteCreateView when form has no NORAD ID
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-07-30 18:24:12 +03:00
Alfredos-Panagiotis Damkalis
49eb53be30
Use bootstrap-modal-form for merging satellites
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-07-26 22:18:55 +03:00
Alfredos-Panagiotis Damkalis
c8081962ae
Fix update_tle_sets task
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-07-23 15:35:22 +03:00
Alfredos-Panagiotis Damkalis
6341c26783
Fix decoding data task
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-07-22 11:37:44 +03:00
Alfredos-Panagiotis Damkalis
3c1eda6c2e
Improve SQL queries in Satellite properties
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-07-22 11:37:44 +03:00
Alfredos-Panagiotis Damkalis
e7b0e56a17
Improve performance in home view by reducing sql queries
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-07-21 21:32:23 +03:00
Alfredos-Panagiotis Damkalis
3391fa8604
Fix cache_statistics function
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-07-21 21:32:23 +03:00
Papadeas Pierros
f8ca235faa
Add Satellite ID on UI elements.
...
Signed-off-by: Papadeas Pierros <pierros@papadeas.gr>
2021-07-20 12:22:47 +03:00
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
Alfredos-Panagiotis Damkalis
06e2f032fe
Fix edit buttons on satellites page
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-07-08 19:15:42 +03:00
Alfredos-Panagiotis Damkalis
1513e998bb
Fix modal submit button functionality
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-06-23 14:58:49 +03:00
Corey Shields
79ca1834c9
More improved unit testing
...
Additional pytests, including tests for a fully populated DB
Also:
- simplify a conditional statement in the home page view
- fix broken robots.txt url parsing
- fix case in cached stats generation where new satellite id association could
trip a comparison against a NoneType by adding a default
- removed a print statement leftover from satellite id development
Signed-off-by: Corey Shields <cshields@gmail.com>
2021-05-25 16:38:02 -04:00
Alfredos-Panagiotis Damkalis
f046863123
Fix export frames functionality
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-24 05:43:11 +03:00
Corey Shields
37b83bfa66
Improved unit testing around API calls
...
also adds some known-bad tests for tlm submission to ensure we handle correctly
Signed-off-by: Corey Shields <cshields@gmail.com>
2021-05-22 09:55:32 -04:00
Alfredos-Panagiotis Damkalis
d25436d594
Add JSON-LD post API endpoint for Satellite suggestions
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-20 16:59:14 +03:00
Alfredos-Panagiotis Damkalis
804b69e442
Add JSON-LD post API endpoint for Transmitter suggestions
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-20 16:59:14 +03:00
Corey Shields
4141e275cc
Improve testing and handling of telemetry upload API
...
Improved handling of input data for the telemetry API and added tests for such
ensure that we return a 400 on an empty frame, station, timestamp
return 400 when lat/lng value conversion fails or when the resulting lat/lng is
out of range.
Fixes #463
Signed-off-by: Corey Shields <cshields@gmail.com>
2021-05-16 18:54:48 -04:00
Alfredos-Panagiotis Damkalis
286c744141
Fix decode_all_data Satellite query
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-16 00:36:45 +03:00
Corey Shields
292f1978db
Remove old unused auth0login app
...
Back in d153ece
we switched to the upstream backend social_core.backends.auth0.Auth0OAuth2
this commit removes the custom app we had to use for Auth0
Signed-off-by: Corey Shields <cshields@gmail.com>
2021-05-14 20:40:03 -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
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
3b05184d14
Add review functionality for satellite suggestions
...
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2021-05-11 20:27:05 +03: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
f4ea975e0c
Remove dead code
...
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