1
0
Fork 0
Commit Graph

30 Commits (ef1c4313aa2efc56f4b33f2e330ae80884c309f0)

Author SHA1 Message Date
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
Vasilis Tsiligiannis e9334d89e1 tox: Bump environment dependencies version
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2020-03-28 22:43:08 +02:00
Alfredos-Panagiotis Damkalis 36a339f6a3 Update tox version in .gitlab-ci.yml
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2020-02-02 01:09:20 +02:00
Fabian P. Schmidt e681e825e2 {api|base}/tests.py: Change import order
The last dependency update changed the required import order apparently
so the 'isort' command failed.

Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2020-02-01 23:06:32 +01:00
deckbsd 062152aeec add uplink_mode field for transciever and transponder transmitter type
Signed-off-by: Flawinne Julien flawinne.julien at protonmail dot com

add uplink_mode field for transciever and transponder
Signed-off-by: Flawinne Julien flawinne.julien@protonmail.com

adapt unit test for transmitter model

Update migration for taking account of the invert value

update uplink_mode migration condition

Not request TLE with NORAD ID above 99000

Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>

rename mode transmitter field to downlink_mode

adapt unit test for transmitter model

update uplink_mode migration condition

add uplink_mode field for transciever and transponder transmitter type
Signed-off-by: Flawinne Julien flawinne.julien at protonmail dot com

keep mode id

add forgotten field mode id

add missing ,

fix yapf error
2019-12-01 09:43:44 +00:00
Corey Shields 6920bbab03 move py2 lint exceptions to .pylintrc
Ignore py2-specific linting errors in .pylintrc while testing them in .pylintrc3

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-08-10 15:53:00 -04:00
Corey Shields fc8f9a8c35 Linting for C0412
There are clashes between the positioning and ordering of our imports between pylint and isort, just ignoring them on the pylint side for now..

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-27 14:45:19 -04:00
Corey Shields 91d8ba20bd Linting for R0903
Ignoring R0903 for tests.py where we do not need to care about public methods, and for django managers in models.py

This negates the need for MR !396

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-07-27 12:13:56 -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 2ec2fd2a4d pylint C0111 docstrings
phew, fixed all of the missing-docstring and found some other things along the way (for future changes)
2019-07-12 22:36:18 -04:00
Corey Shields d4fb5189d1 future imports and remove unicode strings
adds from __future__ import unicode_literals, absolute_import, division, print_function to all files, removes unicode strings from RTD conf.py (none other were found in our codebase)

See also https://docs.djangoproject.com/en/1.11/topics/python3/#unicode-literals

fixes #290

tested locally in docker
2019-06-30 19:23:55 -04: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
Corey Shields ff21847b52 rename demoddata.source to demoddata.app_source
We have a field in demoddata called "source" which stores the application source of the data (network, sids, manual). This causes a lot of confusion with the SiDS API format which has a "source" parameter (that we convert to "station")

As I'm working through documenting the API (and getting us ready for feature expansion), I'd like this field renamed to avoid future confusion.
2019-04-20 19:15:29 -04:00
Alfredos-Panagiotis Damkalis d786ce72bd Fix transmitter API test 2019-04-19 17:23:47 +03:00
Alfredos-Panagiotis Damkalis c2e378da4e Refactor transmitter model
Transmitter model has been refactored by changing the current schema
from Transmitter and Suggestion models to TransmitterEntry model and
two proxy models TransmitterSuggestion and Transmitter:

* TransmitterEntry model will hold all the entries and changes on
transmitter entries in db.

* TransmitterSuggestion model will be the proxy model of the unreviewed
transmitter entries.

* Transmitter model will be the proxy model of the latest approved and
reviewed transmitter entries.

There are also change on Transmitter model fields:

* alive field is now change to status field

* there are new fields: citation, user, reviewed and created
2019-04-08 21:21:46 +03:00
Corey Shields 44fee695b5 fix bare excepts
Upon fixing CI we now have a slew of PEP8 722 issues (bare excepts).  This MR fixes all of those by excepting Exception, which should catch anything the program generates while allowing systemexit exceptions.
2018-07-14 14:50:07 -04:00
Nikos Roussos 37598fc74d
Switch from dotenv to decouple 2018-01-06 13:25:23 +02:00
Nikos Roussos 7c7115f9be
Expose more fields to Telemetry API endpoint
* Rename decoded API fields for clarity
2017-03-28 22:00:05 +03:00
Nikos Roussos c54348cad9
Fix GA CSP
* Fix API test
2017-03-27 19:18:02 +03:00
Nikos Roussos 3da2647a0d
Limit API pagination to Telemetry endpoint 2017-03-26 17:07:54 +03:00
Nikos Roussos 2411e3c736
Add tests for the static views 2017-03-13 13:54:33 +02:00
Nikos Roussos b920497a9e
Add more API tests 2017-03-12 16:51:01 +02:00
Nikos Roussos e0d3b8d062
Add some basic tests 2017-03-03 01:14:36 +02:00
Nikos Roussos ba0f9ec056 Reset migrations 2015-08-26 14:02:08 +03:00
Nikos Roussos b433bc6238 s/transponders/transmitters 2015-07-23 15:48:58 +03:00
Nikos Roussos 1d3fda269c Bring custom Manager for approved Transponders 2015-04-26 17:28:49 +03:00
Nikos Roussos 4d4662f509 Inherit Transponder model for Suggestions 2015-04-25 21:51:25 +03:00
Nikos Roussos 2134f44b49 First iteration on suggestions forms 2015-04-25 19:47:22 +03:00
Nikos Roussos 6828eb315b Initial commit 2015-04-22 18:10:13 +03:00