1
0
Fork 0
Commit Graph

746 Commits (master)

Author SHA1 Message Date
Vasilis Tsiligiannis 369f51cddb docker-compose: Use stable version of MariaDB (fixes #292)
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-26 14:42:28 +03:00
Alfredos-Panagiotis Damkalis f3977c27ea Filter trasnmitters API by uuid
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>
2019-04-24 15:59:11 +03:00
Vasilis Tsiligiannis 448b48e61c Use Read the Docs theme
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-22 14:07:51 +03:00
Vasilis Tsiligiannis 28a7111a1f Compile docs and publish them as GitLab pages
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-22 14:07:51 +03:00
Corey Shields 5e5296f154 fix dependencies for moving up to Django 2
this fixes for 2.0, will be one step toward 2.2

Fixes #278
2019-04-20 21:49:33 -04: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 5b7814000c Fix telemetry API methods 2019-04-19 18:53:21 +03:00
Alfredos-Panagiotis Damkalis d786ce72bd Fix transmitter API test 2019-04-19 17:23:47 +03:00
Corey Shields f43c387e2d fixing db api 2019-04-17 21:55:15 -07:00
Kevin Pak 4c6ee89cd7 Add db version to footer. Create function inside context_processors file to display version in template. In addition, added decoders version below db version. Signed-off-by: Kevin Pak <kedpak10@gmail.com> 2019-04-15 04:30:06 +00:00
Vasilis Tsiligiannis a2401fe1e5 refresh-requirements.sh: Fix replacing of compatible package versions
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-09 20:01:33 +03:00
Vasilis Tsiligiannis d574b65cfd gitignore: Ignore '*.egg-info' directory
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-09 16:34:51 +03:00
Vasilis Tsiligiannis 7b1315cb9d Update fixtures from 'db-dev.satnogs.org'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-09 16:04:48 +03:00
Vasilis Tsiligiannis efa30be189 refresh-requirements.sh: Add support for comptible release packages
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-09 00:52:46 +03:00
Vasilis Tsiligiannis adf4b813a8 refresh-requirements.sh: Fix backslashes in regular expression variable
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-04-09 00:52:46 +03:00
Alfredos-Panagiotis Damkalis 30e2b6ef9e Don't drop last column of base_suggestion table 2019-04-09 00:05:41 +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
Patrick Dohmen cc4e9ef141 gitlab-ci: Always install latest stable version of satnogsdecoders
Signed-off-by: Patrick Dohmen <dl4pd@darc.de>
2019-04-07 15:10:27 +00:00
Vasilis Tsiligiannis cdbe9b41f9 gitlab-ci: Install compatible PyPI packages only
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-03-31 23:39:40 +03:00
Vasilis Tsiligiannis ffc5cef720 gitlab-ci: Restrict Docker images to compatible versions
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-03-31 22:33:21 +03:00
Vasilis Tsiligiannis c5d321dd8b Drop 'dev' branch and switch to tagging for releasing
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-03-16 16:07:29 +02:00
Vasilis Tsiligiannis e870527d64 docs: Fix copyright notice
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-03-14 22:51:36 +02:00
Vasilis Tsiligiannis f5be1d784e docs: Fix references on documents
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-03-14 22:49:43 +02:00
Vasilis Tsiligiannis 6f7e38b888 docs: Fix name of transmitters API referenced document
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-03-14 22:47:05 +02: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 2a84aacbe7 Update contribution and developing guides
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-03-06 00:09:17 +02:00
Vasilis Tsiligiannis 4c6ea303b2 Utilize Docker cache to speed up building
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-02-13 12:32:31 +02:00
Ansgar Schmidt 81549264cf Adding UTC in header, fixing #267
Signed-off-by: Ansgar Schmidt <ansgar.schmidt@gmx.net>
2019-02-12 11:27:25 +01:00
Vasilis Tsiligiannis 58b0cc9bfd Fix invalid quoting in InfluxDB query
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-24 21:33:44 +02:00
Alfredos-Panagiotis Damkalis b24d292fc8 Add Blank=True for decayed date in satellite model 2019-01-21 15:34:02 +02:00
Pierros Papadeas 6d5e1db09c
Add decayed field in Satellite model 2019-01-19 19:27:48 +02:00
Vasilis Tsiligiannis a6b79bace0 Fix InfluxDB query to drop whole measurements
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-16 15:04:59 +02:00
Corey Shields a05a614dd9 hack our way around the django cache
Signed-off-by: Corey Shields <cshields@gmail.com>

In django cache we are storing a full queryset of the satellites with their data count and last payload time. By trying to filter on this (sat_cache = sats_cache.filter(norad_cat_id=norad)) we cause django to re-evaluate the queries for that specific satellite. For CAS-4a this results in 2 queries that exceed 5 mins each.

This does not impact the /stats/ page as it iterates through the whole list of satellites in cache. This change mimics that behavior to find the satellite cache we care about in the template.  Its a huge hack but its the only way we can show a count and bring the page view back for !237 quickly...  This needs refactoring, big time..

I also pulled an unused has_telemetry_data which caused a db count

This leaves behind a query to pull the last payload to show who submitted the last payload, as without this query there is no connection between the cached satellite info and the actual observer (because the /stats/ page was not meant to make that connection). If this query continues to be prohibitive we may just need to remove the "last frame submitted by.." blob.
2019-01-12 14:00:59 -05:00
Corey Shields 9ea72f808a stop triggering a cache update on page load 2019-01-11 23:52:49 -05:00
Corey Shields 3adf7a2f35 fix satellite slow queries
In this change we continue using the cache for the frame count, but instead of using the cache for the latest frame as discussed in IRC we grab the latest frame based on the ID.  In my test environment this was a reasonable query time.

I'd rather we try this route before resorting to the cache for latest frame as it will be a better user experience.

Signed-off-by: Corey Shields <cshields@gmail.com>
2019-01-11 21:28:52 -05:00
Vasilis Tsiligiannis 940fc5e923 gitlab-ci: Use separate jobs for triggering 'master' and 'dev' downstream pipelines
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-12 03:44:07 +02:00
Vasilis Tsiligiannis e27e892fba Replace recursive 'dict' extraction with 'satnogs-decoders' docstring fields
This commit replaces the recursive 'dict' extraction functions with
'get_fields()' method which returns specific fields from Kaitai Struct
docstrings. The InfluxDB schema is also optimized to write multiple
fields per data point with the unique NORAD id used as the measurement
name.

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-09 20:51:26 +02:00
Vasilis Tsiligiannis 7f16a16ee2 Add telemetry fixtures
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-09 17:51:26 +02:00
Vasilis Tsiligiannis 5780fb8ebb Update fixtures
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-09 17:49:43 +02:00
Pierros Papadeas a8f5e53647 Add UI for transmitter UUID 2019-01-07 18:21:39 +00:00
Vasilis Tsiligiannis 63e1eb71b5 Update requirements file
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 19:57:21 +02:00
Vasilis Tsiligiannis fe6edd4f6a gitlab-ci: Do not call 'tox' twice
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 19:51:44 +02:00
Pierros Papadeas 6a1f145c07 Add more fields and filters on satellite admin view 2019-01-07 16:28:33 +00: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 e4cadb93d5 Update documentation to mention refreshing of 'requirements-dev.txt' file
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 18:13:42 +02:00
Vasilis Tsiligiannis 436d4bfd12 flake8: Test 'auth0login' module as well
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 18:02:49 +02:00
Vasilis Tsiligiannis 6cfabf9829 Always use latest stable version of 'satnogsdecoders'
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 17:15:28 +02:00
Vasilis Tsiligiannis 86df51b031 Remove unused import, fix line break before operator
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 17:15:28 +02:00
Vasilis Tsiligiannis f689d86e50 tox: Add dependency checking environment, do not install dependencies
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2019-01-07 16:39:00 +02:00