David Sangrey
0410806152
[2199] Add Broader Exception
2024-04-14 18:07:30 -04:00
David Sangrey
45a38ccdaa
[2051] Dashboard, Killswitch, l10n
2023-11-17 19:21:48 -05:00
Athanasius
12ee3deb59
killswitches: Implement --killswitches-file
CL arg
...
* New CL arge `--killswitches-file`. This needs to reference a file either
with an absolute path, or relative to the CWD of the process.
* Internally if the argument is provided it is prefixed with `"file:"` in
order to actually be loaded. This is because `requests` doesn't have an
adapter for `file:` URLs.
* Also fixes a visual bug with reporting of active killswitches. The entire
SingleKill object was used instead of just its `reason` property. mypy
type checks caught this.
2022-12-16 14:02:59 +00:00
A_D
afa0217ed8
additional info in docstrings
2021-08-22 21:45:51 +02:00
A_D
8134a04739
clarified docstrings
2021-08-19 20:46:29 +02:00
A_D
f62f1ee97b
made types consistent and generic
2021-08-19 20:37:39 +02:00
A_D
1e71955375
added check_multiple method
2021-08-19 20:37:39 +02:00
A_D
984d09947c
added threaded request helper
2021-08-19 20:37:38 +02:00
A_D
e081e1991b
docstring fixups
2021-08-19 20:37:38 +02:00
A_D
710807f585
made precedence of operators a part of the API
2021-08-19 20:37:37 +02:00
A_D
532716e748
use range instead of silly checks
2021-08-19 20:37:36 +02:00
A_D
3133cba0a4
checked negatives, added test to that effect
2021-08-19 20:37:36 +02:00
A_D
1c3c29abb6
silcenced flake8
2021-08-19 20:37:36 +02:00
A_D
0c34e363f3
fix flake8 complaint
2021-08-19 20:37:35 +02:00
A_D
b04825985b
added version optional arg
2021-08-19 20:37:34 +02:00
A_D
baa70ff938
Added defaults to SingleKill
2021-08-19 20:37:33 +02:00
A_D
9255c4fa96
resolved edgecase with dotted keys
2021-08-19 20:37:33 +02:00
A_D
36d786ef8c
Added more utility methods
2021-08-19 20:35:49 +02:00
A_D
366da05cba
added utility methods for using the new actions
2021-08-19 20:35:49 +02:00
A_D
feb05c60d0
guard clause Sequence indexing
2021-08-19 20:35:48 +02:00
A_D
39eaf608a2
Scratch that, lets do this in an extensible manner
...
Keys now exist directly on Kills entries, those keys are only additive,
if EDMC doesnt understand something it just drops the entire event etc.
2021-08-19 20:35:48 +02:00
A_D
2583d07baf
Added additional data fields to killswitches
...
These fields will be used for various things moving forward. The
currently intended use is to redact fields when sending data to
inara/edsm/eddn in case Frontier accidentally includes something that is
unwanted
2021-08-19 20:35:47 +02:00
Athanasius
5de4950fba
Change config.appversion() to return semantic_version.Version
...
As we're changing it to a function at this stage anyway, it might as
well return this type, not a str.
2021-04-01 14:46:43 +01:00
Athanasius
2f9789afdd
Update all code to use config.appversion() as a function
...
This *also* caught some instances where appversion_nobuild should
already have been used, so those were both changed and updated to a
function call.
2021-04-01 14:45:52 +01:00
A_D
0fb5a3476a
Removed prototyping code
2021-04-01 14:45:48 +01:00
A_D
4900361621
Set default killswitch URL to releases branch
2021-04-01 14:45:48 +01:00
A_D
81e2cd2f92
Added warning popup on start
...
Popup shows on start when there are killswitches that match the current
version.
2021-04-01 14:45:48 +01:00
A_D
6b75179199
switched to using SimpleSpec for constraints
2021-04-01 14:45:47 +01:00
A_D
8dca6783fc
Fixed spelling, added utility methods
2021-04-01 14:45:47 +01:00
A_D
d5b62d957b
Added support for comments in kill switches
2021-04-01 14:45:47 +01:00
A_D
98b27ee046
Fixed startup exception when unable to connect
2021-04-01 14:45:47 +01:00
A_D
517a0e1f7c
Added timeout to GET for killswitches
2021-04-01 14:45:47 +01:00
A_D
29adaa413b
Added util method for URL -> KillSwitchSet
2021-04-01 14:45:47 +01:00
A_D
f7890a460b
Added killswitch library
...
Killswitch exists to allow us to disable features causing issues in
specific versions remotely.
The system is designed to support plugins, where they can request their
own killswitch list by querying any web file that follows our format
(docs to be added), and using the returned KillSwitchSet to check for
disabled features.
2021-04-01 14:45:47 +01:00