Commit Graph

435 Commits

Author SHA1 Message Date
Mark Veidemanis 2eb090f088
Use generic meta variable for returning more data about the search 2023-01-16 16:44:55 +00:00
Mark Veidemanis bea84ee2b6
Set maximum amount 2023-01-16 07:20:37 +00:00
Mark Veidemanis 3d6c8d618f
Document rule system 2023-01-16 07:20:37 +00:00
Mark Veidemanis ef9734a34d
Initialise ES client only on first search 2023-01-16 07:20:37 +00:00
Mark Veidemanis c08ecc036f
Check if date range is equal to 2023-01-16 07:20:37 +00:00
Mark Veidemanis 1964ab62ec
Check the specified window 2023-01-16 01:17:19 +00:00
Mark Veidemanis 742a2f92da
Prepopulate the match field 2023-01-16 00:29:54 +00:00
Mark Veidemanis ddffc2c3d8
Store index and source as lists 2023-01-16 00:23:23 +00:00
Mark Veidemanis f5e371bf5c
Store dict in match field if empty 2023-01-16 00:20:40 +00:00
Mark Veidemanis 9de1787de6
Only look for ondemand rules in processing 2023-01-16 00:16:08 +00:00
Mark Veidemanis a2207bbcf4
Support sending messages when a rule no longer matches and fix dual-use notification sender 2023-01-16 00:10:41 +00:00
Mark Veidemanis 75603570ff
Finish implementing webhook delivery 2023-01-15 23:02:13 +00:00
Mark Veidemanis 2dd9efcc6f
Fix window/interval validation and make aggs optional in parse_results 2023-01-15 20:27:19 +00:00
Mark Veidemanis eb2486afba
Allow using webhooks for notifications 2023-01-15 18:40:17 +00:00
Mark Veidemanis 46c7d96310
Allow clearing matches 2023-01-15 18:39:57 +00:00
Mark Veidemanis 6bfa0aa73b
Implement running scheduled rules and check aggregations 2023-01-15 17:59:12 +00:00
Mark Veidemanis 435d9b5571
Implement running scheduled tasks 2023-01-14 17:24:54 +00:00
Mark Veidemanis 2a1e6b3292
Allow scheduling notification rules 2023-01-14 16:36:22 +00:00
Mark Veidemanis 9ee9c7abde
Fix insights 2023-01-14 16:36:00 +00:00
Mark Veidemanis dbf581245b
Validate interval and window fields in form 2023-01-14 14:45:19 +00:00
Mark Veidemanis fbe5607899
Add interval and window fields to NotificationRule 2023-01-14 14:36:46 +00:00
Mark Veidemanis 158fffed99
Show which fields matched 2023-01-13 07:20:31 +00:00
Mark Veidemanis dd4b2ddd3a
Log NTFY errors 2023-01-12 19:00:06 +00:00
Mark Veidemanis 092d4c64ff
Don't show None to the user if no topic is set 2023-01-12 07:20:48 +00:00
Mark Veidemanis 9aacc2cc51
Lowercase msg before matching 2023-01-12 07:20:48 +00:00
Mark Veidemanis 031995d4b9
Allow partial matching on msg field 2023-01-12 07:20:48 +00:00
Mark Veidemanis 4f55ffeaf7
Allow overriding topic 2023-01-12 07:20:48 +00:00
Mark Veidemanis 0b840d227b
Add priority to notification rules 2023-01-12 07:20:48 +00:00
Mark Veidemanis e01aea7712
Properly check tokens in notification rules 2023-01-12 07:20:48 +00:00
Mark Veidemanis b68d7606f8
Clean up debug statements 2023-01-12 07:20:48 +00:00
Mark Veidemanis 37789a1f18
Add local settings to processing 2023-01-12 07:20:48 +00:00
Mark Veidemanis 4dd8224a77
Finish implementing notification rules 2023-01-12 07:20:48 +00:00
Mark Veidemanis f93d37d1c0
Implement notification rules and settings 2023-01-12 07:20:43 +00:00
Mark Veidemanis a70bc16d22
Add CRUD and form helpers 2023-01-11 21:04:54 +00:00
Mark Veidemanis a6b385c8bf
Change default query string operator to and 2023-01-01 22:33:17 +00:00
Mark Veidemanis e40b943a01
Add tracker 2022-12-09 17:06:27 +00:00
Mark Veidemanis 0a132c6e3a
Fix deduplication function 2022-12-09 07:20:59 +00:00
Mark Veidemanis bd8b995134
Fix dedup 2022-12-09 07:20:28 +00:00
Mark Veidemanis 5fdd5121eb
Make buttons lighter 2022-12-08 07:20:46 +00:00
Mark Veidemanis 11f6d676f5
Change color of some buttons 2022-12-08 07:20:46 +00:00
Mark Veidemanis 78b28b3994
Fix partial swaps on table 2022-12-02 07:20:37 +00:00
Mark Veidemanis 32aa93a28e
Remove old code 2022-11-10 07:20:20 +00:00
Mark Veidemanis 1b2a02b5ab
Fix HTMX target for search results table 2022-11-10 07:20:20 +00:00
Mark Veidemanis f1a68f92a0
Also load results pane with errors on load 2022-12-01 07:20:35 +00:00
Mark Veidemanis ac3a57a2e8
Begin implementing smarter WM system for multi-type objects 2022-11-29 07:20:39 +00:00
Mark Veidemanis 23b35da282
Add perms for all the indexes 2022-11-22 07:20:37 +00:00
Mark Veidemanis ffc1aaa030
Mutate the response when reversing 2022-11-23 18:52:48 +00:00
Mark Veidemanis 1bdd332e6e
Fix annotating results and remove debugging code 2022-11-23 18:39:36 +00:00
Mark Veidemanis c49c8898eb
Fix online info 2022-11-23 18:33:09 +00:00
Mark Veidemanis 0fd004ca7d
Finish reimplementing Elasticsearch 2022-11-23 18:15:42 +00:00
Mark Veidemanis 39ae1203be
Begin refactoring Elastic backend to use helper functions 2022-11-21 19:43:23 +00:00
Mark Veidemanis 61f93390d9
Replace OpenSearch with Elasticsearch 2022-11-21 07:20:29 +00:00
Mark Veidemanis 7702e04286
Rename elastic and update settings file 2022-11-21 19:20:02 +00:00
Mark Veidemanis 2933360560
Remove duplicate mtype column 2022-10-21 07:20:30 +01:00
Mark Veidemanis 987ba6ed3c
Change druid URL 2022-10-04 21:47:37 +01:00
Mark Veidemanis 2a4db7476f
Fix the graph rendering 2022-09-30 07:22:22 +01:00
Mark Veidemanis 835be7e001
Allow duplicate tag keys 2022-09-30 07:22:22 +01:00
Mark Veidemanis 8010ebf2c1
Render the words as tags 2022-09-30 07:22:22 +01:00
Mark Veidemanis 5530fd762c
Fix context menu 2022-09-30 07:22:22 +01:00
Mark Veidemanis d8981378bd
Switch ujson to orjson 2022-09-30 07:22:22 +01:00
Mark Veidemanis 45b8483366
Remove unnecessary import in Threshold handler 2022-09-30 07:22:22 +01:00
Mark Veidemanis 4efeb27958
Add restricted source listing and remove card 2022-09-30 07:22:22 +01:00
Mark Veidemanis bb00475029
Implement Druid DB fetching 2022-09-30 07:22:22 +01:00
Mark Veidemanis 202a13cccb
Begin implementing DB framework 2022-09-27 15:15:08 +01:00
Mark Veidemanis 0c60413e5b
Don't print DB responses 2022-09-12 08:43:29 +01:00
Mark Veidemanis f160f4cb27
Reformat Drilldown 2022-09-12 08:27:30 +01:00
Mark Veidemanis 4b99d7272c
Adjust context size and pass it directly 2022-09-12 08:23:03 +01:00
Mark Veidemanis 8add25ac27
Fix drilldown modal 2022-09-08 07:20:30 +01:00
Mark Veidemanis 816ed2665b
Reformat 2022-09-07 07:20:30 +01:00
Mark Veidemanis 4bc97dcc4d
Add default parameters to search homepage 2022-09-07 07:20:30 +01:00
Mark Veidemanis f1cb539ca6
Switch to requests due to bug in Manticore client 2022-09-07 07:20:30 +01:00
Mark Veidemanis f35eb51aaf
Update internal index name 2022-09-05 07:20:30 +01:00
Mark Veidemanis 0882d3f0da
Maximise results on load 2022-09-07 11:30:45 +01:00
Mark Veidemanis 0095b787b1
Use correct sizes variable 2022-09-05 07:20:30 +01:00
Mark Veidemanis c2d78dc482
Switch to ujson and remove debugging statements 2022-09-05 07:20:30 +01:00
Mark Veidemanis 753c168940
Make cache configurable 2022-09-05 07:20:30 +01:00
Mark Veidemanis 958eb2b549
Reformat and add blacklisted directories to DjHTML 2022-09-05 07:20:30 +01:00
Mark Veidemanis 5be02807e3
Add cache indicator, time the fetch from Redis and round it 2022-09-05 07:20:30 +01:00
Mark Veidemanis 02e1b4698d
Don't add sources to query if we are allowed to see them all 2022-09-05 07:20:30 +01:00
Mark Veidemanis 667e4c475f
Add defaults to context and pass them before they are removed 2022-09-05 07:20:30 +01:00
Mark Veidemanis 11dbe3e094
Reformat and don't pass back default parameters to URL 2022-09-05 07:20:30 +01:00
Mark Veidemanis ad4d24b3a0
Add debug toolbar 2022-09-05 07:20:30 +01:00
Mark Veidemanis 8ae15ce9a4
Only trigger one search for populateSearch 2022-09-05 07:20:30 +01:00
Mark Veidemanis fe84a7b604
Don't render twice on HTMX requests 2022-09-05 07:20:30 +01:00
Mark Veidemanis 9774da0d00
Remove some debugging code 2022-09-06 12:18:58 +01:00
Mark Veidemanis 87324de666
Fix some Manticore queries 2022-09-06 11:53:32 +01:00
Mark Veidemanis 3b8735be72
Fix source queries 2022-09-06 09:41:07 +01:00
Mark Veidemanis 017a05880b
Add manticore client 2022-09-05 22:57:20 +01:00
Mark Veidemanis aeaf7bba5d
Move the compact button to the right 2022-09-02 07:20:30 +01:00
Mark Veidemanis aefd639e58
Add grid compact button 2022-09-02 07:20:30 +01:00
Mark Veidemanis a9453b6459
Don't display num if it's None in the context title 2022-09-02 07:20:30 +01:00
Mark Veidemanis f26daa2cb4
Keep position for widgets that are reloaded 2022-09-02 07:20:30 +01:00
Mark Veidemanis 79a8e5f6e4
Add the unique variable sooner to the Drilldown context 2022-09-02 07:20:30 +01:00
Mark Veidemanis 0ccde2af1b
Make all WM elements inherit from common templates 2022-09-01 19:59:27 +01:00
Mark Veidemanis 553d4fd33f
Fix setting up widgets containing HTMX code and unify the flow for results and widgets 2022-08-26 07:20:30 +01:00
Mark Veidemanis 2189381fa6
Make widgets play nice with HTMX 2022-08-26 07:20:30 +01:00
Mark Veidemanis c597af5523
Fix restricted source handling 2022-08-26 07:20:30 +01:00
Mark Veidemanis f14110dcd9
Add a perms migration 2022-08-26 07:20:30 +01:00
Mark Veidemanis c499f18b1b
Simplify adding results widget 2022-08-26 07:20:30 +01:00
Mark Veidemanis 996463b869
Fix scripts not running in widgets 2022-08-26 07:20:30 +01:00