Athanasius
9af6474d3c
docs: Further config.py -> config tweaks
2022-01-31 15:45:40 +00:00
Athanasius
3e0c69be5e
docs: Pass for config.py -> config/__init__.py and related changes
2022-01-31 15:41:25 +00:00
Athanasius
d5fba46e75
Merge pull request #1419 from EDCD/enhancement/1255/inara-credits-delta-threshold
...
Inara: Change the way we determine if a credits delta is interesting
2022-01-31 15:28:14 +00:00
Athanasius
adb8055f08
Inara: Be paranoid in case of -ve credits balance
2022-01-31 15:22:36 +00:00
Athanasius
02dd800c57
Inara: Change the way we determine if a credits delta is interesting
...
Now based on the *minimum* of a fractional or absolute change. See
<https://github.com/EDCD/EDMarketConnector/issues/1255 > for discussion.
2022-01-31 14:50:12 +00:00
Athanasius
5f61f2ccc1
Merge pull request #1417 from EDCD/enhancement/add-editorconfig
...
Add .editorconfig and reference in Contributing.md
2022-01-27 18:04:33 +00:00
Athanasius
c6a52cb080
Merge pull request #1409 from A-UNDERSCORE-D/fix/1390/Ensure-we-handle-413
-from-EDDN-properly
...
Compress outgoing EDDN data if its large
2022-01-27 17:54:32 +00:00
A_D
b180f34f16
fix bugs that were hidden
2022-01-27 19:52:51 +02:00
A_D
f4ba4775f2
pull decode/decompress out into its own function
2022-01-27 19:40:06 +02:00
Athanasius
32f98ea6de
.editorconfig: Fix the EOL comment
2022-01-27 17:01:49 +00:00
Athanasius
cdba879369
.editorconfig: Actually, we use crlf, with git converting
2022-01-27 16:37:20 +00:00
Athanasius
f36d45d4bc
Contributing: Add section on text formatting / .editorconfig
2022-01-27 16:36:41 +00:00
Athanasius
0d68c454a5
Add .editorconfig
...
* The settings are for all file types, we might have some exceptions, i.e.
.xml files.
* This is based on what we've been doing all along. Only the max line length
has previously been codified in, e.g. pyproject.toml. We've not even
codified things like "4-space indentations, expanded from TABs" in
Contributing.md.
2022-01-27 16:28:43 +00:00
A_D
17c886af84
fix log
2022-01-27 16:03:41 +02:00
A_D
38f35403c9
fix gzip support in debug_webserver
2022-01-27 16:02:06 +02:00
A_D
d6dcebf545
Remove unused import
2022-01-27 14:59:27 +02:00
Athanasius
5e612d56b3
Merge pull request #1411 from A-UNDERSCORE-D/sys-plaform-mypy
...
Ensure that platform guards are recognised by mypy
2022-01-27 12:58:26 +00:00
Athanasius
055254d323
Merge pull request #1416 from EDCD/fix/navroute-retry-spam-on-startup-scan
...
monitor: Gate navroute on *not* being in journal catch up mode
2022-01-27 12:55:51 +00:00
Athanasius
b678d078b4
Merge pull request #1415 from EDCD/dependabot/pip/develop/coverage-toml--6.3
...
build(deps-dev): bump coverage[toml] from 6.2 to 6.3
2022-01-27 12:54:59 +00:00
A_D
6c0cb45e61
removed unused import
2022-01-26 22:40:09 +02:00
A_D
8c2a0ae95a
make tests not explode on windows
2022-01-26 20:37:10 +02:00
Athanasius
3a4690d292
monitor: Gate navroute on *not* being in journal catch up mode
...
We can't just use `EDLogs.live` here as it'll get set `true` when the
`Commander` event is seen *during the catch up*. We need that catchup
to have finished before we'll try processing a `NavRoute` event and
file.
2022-01-26 17:29:29 +00:00
A_D
e891ee4da0
log more contextual data if possible on a 413
2022-01-26 19:05:00 +02:00
dependabot[bot]
f753ce4308
build(deps-dev): bump coverage[toml] from 6.2 to 6.3
...
Bumps [coverage[toml]](https://github.com/nedbat/coveragepy ) from 6.2 to 6.3.
- [Release notes](https://github.com/nedbat/coveragepy/releases )
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst )
- [Commits](https://github.com/nedbat/coveragepy/compare/6.2...6.3 )
---
updated-dependencies:
- dependency-name: coverage[toml]
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-26 17:03:23 +00:00
A_D
e6ffe7e520
refactor error logging
2022-01-26 18:58:34 +02:00
A_D
1c190dd76f
drop match statement
2022-01-26 18:58:34 +02:00
A_D
ec6f333cfa
removed old code
2022-01-26 18:58:34 +02:00
A_D
10824250e1
add deflate support
2022-01-26 18:58:33 +02:00
A_D
45dba2ba88
change module doc comment for text.py
2022-01-26 18:58:33 +02:00
A_D
5f7234ce89
address PR comments
2022-01-26 18:58:32 +02:00
A_D
73f45e37cd
always compress eddn data, comment rationale
2022-01-26 18:58:32 +02:00
A_D
2b8fe57bc7
gzip decompress support for debug_webserver
2022-01-26 18:58:32 +02:00
A_D
b780b1ab8e
Compress outgoing EDDN data if its large
...
This is a sidestep solution to #1390 . It doesn't attempt to directly
resend data, only compressing with gzip over a given size. If that STILL
returns a 413, its dropped, as without introspection of the message we
cannot make it any smaller
2022-01-26 18:58:31 +02:00
A_D
d65bcbbf0a
Added util directory and http util file
...
HTTP utils are anything generally useful for HTTP things, currently
thats just compressing a string if its larger than a given number of
bytes.
These libraries are intended to be available to plugins
2022-01-26 18:58:31 +02:00
A_D
3814f9ebb9
Quick fix to a type warning
2022-01-26 18:58:30 +02:00
A_D
7bcf3a6f4d
note sys.platform requirements in contributing
2022-01-26 18:51:50 +02:00
A_D
f160acfe57
add configs for switching platforms
2022-01-26 18:51:49 +02:00
A_D
bff6175ee7
Update to use sys.platform over platform
2022-01-26 18:51:49 +02:00
A_D
86292e02e2
Move config to module, separate out implementation
...
Does what it says on the tin. Moves config implementations out to
individual files, guards those around platforms to make stuff more
reasonably split out.
2022-01-26 18:51:49 +02:00
A_D
eb28a3b502
Use sys.platform, minor type updates
2022-01-26 18:51:41 +02:00
Athanasius
a5317e984f
Merge pull request #1412 from EDCD/fix/1378/inara-sync-ranks-onfoot
...
Inara: send setCommanderRankPilot message when on-foot
2022-01-26 16:43:17 +00:00
Athanasius
e98aec0169
monitor: Comment what MAX_NAVROUTE_DISCREPANCY is
...
So as to disambiguate from "some discrepancy within the route data".
2022-01-26 16:38:01 +00:00
Athanasius
cfb77944c2
Merge pull request #1410 from A-UNDERSCORE-D/fix/1348/NavRoute-Attempt-to-handle-delayed/old-NavRoutejson-files
...
Retry parsing navroute after failure
2022-01-26 16:37:22 +00:00
A_D
62a0a96dc6
resolve final review comments
2022-01-26 17:42:50 +02:00
A_D
36ecb69964
refactor to use retry function for all attempts at navroute
2022-01-26 13:17:27 +02:00
A_D
06d4842da2
Be more parinoid about navroute files
2022-01-25 20:17:05 +02:00
A_D
d4c6cd94fe
retry navroute parsing after failure
2022-01-25 20:17:04 +02:00
Athanasius
0c938bddfc
Inara: API stated to not support compression
2022-01-25 17:43:04 +00:00
Athanasius
5b80ffbb90
Merge pull request #1414 from A-UNDERSCORE-D/fix/1369/Status-window-missing-Odyssey-ranks-of-Mercenary-and-Exobiology
...
Add Odyssey ranks to status page
2022-01-25 17:26:50 +00:00
A_D
ddcb5219b4
fix mercenary rank, add some comments
2022-01-25 19:23:22 +02:00