]> git.sesse.net Git - skvidarsync/log
skvidarsync
2 weeks agoAdd a script to refresh if we missed any reactions. master
Steinar H. Gunderson [Sat, 13 Apr 2024 12:12:42 +0000 (14:12 +0200)]
Add a script to refresh if we missed any reactions.

2 weeks agoAdd last-added to HKS.
Steinar H. Gunderson [Thu, 11 Apr 2024 21:16:59 +0000 (23:16 +0200)]
Add last-added to HKS.

2 weeks agoAdd WebSocket pings to try to work around Slack hangs.
Steinar H. Gunderson [Thu, 11 Apr 2024 21:11:18 +0000 (23:11 +0200)]
Add WebSocket pings to try to work around Slack hangs.

2 weeks agoLocal changes for HKS 2024.
Steinar H. Gunderson [Wed, 10 Apr 2024 19:39:01 +0000 (21:39 +0200)]
Local changes for HKS 2024.

7 weeks agoSupport marking with orange.
Steinar H. Gunderson [Mon, 4 Mar 2024 14:07:25 +0000 (15:07 +0100)]
Support marking with orange.

2 months agoIgnore more headings.
Steinar H. Gunderson [Tue, 13 Feb 2024 22:32:54 +0000 (23:32 +0100)]
Ignore more headings.

2 months agoIf reconnect fails, don't kill the entire script.
Steinar H. Gunderson [Sun, 11 Feb 2024 19:52:49 +0000 (20:52 +0100)]
If reconnect fails, don't kill the entire script.

The intention was indeed to try again, but RaiseError on DBI->connect()
evidently also raises error on connection failure.

2 months agoDon't match dates in channel names.
Steinar H. Gunderson [Sun, 11 Feb 2024 19:52:09 +0000 (20:52 +0100)]
Don't match dates in channel names.

4 months agoFix an issue where we would not get timestamps from first-time messages?
Steinar H. Gunderson [Mon, 25 Dec 2023 12:06:02 +0000 (13:06 +0100)]
Fix an issue where we would not get timestamps from first-time messages?

4 months agoHandle edits, at last?
Steinar H. Gunderson [Fri, 8 Dec 2023 13:08:44 +0000 (14:08 +0100)]
Handle edits, at last?

4 months agoMake a query capable of using an index.
Steinar H. Gunderson [Thu, 7 Dec 2023 13:26:20 +0000 (14:26 +0100)]
Make a query capable of using an index.

Postgres doesn't choose the optimal plan, but we're still down from
100 to 10 ms.

4 months agoFix picking up the date from new messages.
Steinar H. Gunderson [Thu, 7 Dec 2023 13:26:08 +0000 (14:26 +0100)]
Fix picking up the date from new messages.

Seemingly, the old code only worked for edits?

5 months agoBe more robust towards Sheets API errors; for instance, if the sheet does not exist.
Steinar H. Gunderson [Mon, 27 Nov 2023 20:43:37 +0000 (21:43 +0100)]
Be more robust towards Sheets API errors; for instance, if the sheet does not exist.

5 months agoFix an off-by-one.
Steinar H. Gunderson [Tue, 14 Nov 2023 08:34:20 +0000 (09:34 +0100)]
Fix an off-by-one.

5 months agoLog delay in the Slack WebSocket API.
Steinar H. Gunderson [Sat, 11 Nov 2023 18:06:22 +0000 (19:06 +0100)]
Log delay in the Slack WebSocket API.

5 months agoDo not use quotes around people's Slack names; it seems a bit weird.
Steinar H. Gunderson [Sat, 11 Nov 2023 17:37:23 +0000 (18:37 +0100)]
Do not use quotes around people's Slack names; it seems a bit weird.

5 months agoIf nothing is happening, do some fake requests to keep the HTTP/TLS connections alive.
Steinar H. Gunderson [Sat, 11 Nov 2023 17:01:19 +0000 (18:01 +0100)]
If nothing is happening, do some fake requests to keep the HTTP/TLS connections alive.

5 months agoBetter comment about the UCA cache.
Steinar H. Gunderson [Sat, 11 Nov 2023 15:43:37 +0000 (16:43 +0100)]
Better comment about the UCA cache.

5 months agoMore timing of things we thought were slow.
Steinar H. Gunderson [Sat, 11 Nov 2023 14:20:02 +0000 (15:20 +0100)]
More timing of things we thought were slow.

5 months agoAdd a cache in front of Unicode::Collate.
Steinar H. Gunderson [Sat, 11 Nov 2023 13:24:59 +0000 (14:24 +0100)]
Add a cache in front of Unicode::Collate.

5 months agoReduce the number of calls to sort_key().
Steinar H. Gunderson [Fri, 10 Nov 2023 23:35:02 +0000 (00:35 +0100)]
Reduce the number of calls to sort_key().

5 months agoMake do with only one commit per sync.
Steinar H. Gunderson [Fri, 10 Nov 2023 22:16:23 +0000 (23:16 +0100)]
Make do with only one commit per sync.

5 months agoAdd timing for the sort key reverse mapping, which is kind of slow.
Steinar H. Gunderson [Fri, 10 Nov 2023 21:51:18 +0000 (22:51 +0100)]
Add timing for the sort key reverse mapping, which is kind of slow.

5 months agoAdd connection keepalive.
Steinar H. Gunderson [Fri, 10 Nov 2023 21:51:00 +0000 (22:51 +0100)]
Add connection keepalive.

5 months agoCache SSL parameters between runs.
Steinar H. Gunderson [Fri, 10 Nov 2023 21:46:05 +0000 (22:46 +0100)]
Cache SSL parameters between runs.

5 months agoAdd a benchmark mode.
Steinar H. Gunderson [Fri, 10 Nov 2023 21:45:41 +0000 (22:45 +0100)]
Add a benchmark mode.

5 months agoSpeed up fuzzy searching on Slack a bit.
Steinar H. Gunderson [Fri, 10 Nov 2023 21:42:34 +0000 (22:42 +0100)]
Speed up fuzzy searching on Slack a bit.

5 months agoCombine the two Sheets API calls into one, to reduce the latency further.
Steinar H. Gunderson [Fri, 10 Nov 2023 17:05:13 +0000 (18:05 +0100)]
Combine the two Sheets API calls into one, to reduce the latency further.

5 months agoCache /properties; it was getting untenably slow for something that nearly never...
Steinar H. Gunderson [Fri, 10 Nov 2023 16:36:36 +0000 (17:36 +0100)]
Cache /properties; it was getting untenably slow for something that nearly never changes.

5 months agoImprove logging of Slack nag messages.
Steinar H. Gunderson [Fri, 10 Nov 2023 16:22:17 +0000 (17:22 +0100)]
Improve logging of Slack nag messages.

5 months agoTell users what group they are part of when they sign up.
Steinar H. Gunderson [Fri, 10 Nov 2023 16:12:51 +0000 (17:12 +0100)]
Tell users what group they are part of when they sign up.

5 months agoStick ws.pl messages on stderr, which is seemingly better for systemd.
Steinar H. Gunderson [Fri, 10 Nov 2023 16:10:41 +0000 (17:10 +0100)]
Stick ws.pl messages on stderr, which is seemingly better for systemd.

5 months agoUse diacritic-ignoring, proper UCA comparison.
Steinar H. Gunderson [Mon, 6 Nov 2023 22:32:39 +0000 (23:32 +0100)]
Use diacritic-ignoring, proper UCA comparison.

5 months agoCommunicate through NOTIFY/LISTEN instead of a file.
Steinar H. Gunderson [Mon, 6 Nov 2023 21:19:40 +0000 (22:19 +0100)]
Communicate through NOTIFY/LISTEN instead of a file.

Less delay, obviously.

5 months agoAdd a WebSocket daemon, hopefully with lower latency than HTTP events.
Steinar H. Gunderson [Mon, 6 Nov 2023 21:03:10 +0000 (22:03 +0100)]
Add a WebSocket daemon, hopefully with lower latency than HTTP events.

5 months agoAllow gzip encoding when querying the Sheets API.
Steinar H. Gunderson [Mon, 6 Nov 2023 17:32:08 +0000 (18:32 +0100)]
Allow gzip encoding when querying the Sheets API.

Doesn't matter all that much (each sheet is 130–150 kB), but is good
as a best practice.

5 months agoSlightly more consistent timing logging.
Steinar H. Gunderson [Sun, 5 Nov 2023 15:34:20 +0000 (16:34 +0100)]
Slightly more consistent timing logging.

5 months agoStore OAuth tokens in the database instead of asking for them for every single sync.
Steinar H. Gunderson [Sun, 5 Nov 2023 14:19:17 +0000 (15:19 +0100)]
Store OAuth tokens in the database instead of asking for them for every single sync.

5 months agoDon't bother updating the Slack mapping sheet if there are no updates.
Steinar H. Gunderson [Fri, 3 Nov 2023 22:44:43 +0000 (23:44 +0100)]
Don't bother updating the Slack mapping sheet if there are no updates.

5 months agoLog timing of each HTTP call.
Steinar H. Gunderson [Fri, 3 Nov 2023 22:21:11 +0000 (23:21 +0100)]
Log timing of each HTTP call.

5 months agoUse an ephemeral message for nagging about the spreadsheet; hopefully more visible...
Steinar H. Gunderson [Wed, 1 Nov 2023 22:30:47 +0000 (23:30 +0100)]
Use an ephemeral message for nagging about the spreadsheet; hopefully more visible, though a bit slow.

5 months agoDetect and log when people move between groups.
Steinar H. Gunderson [Wed, 1 Nov 2023 22:18:02 +0000 (23:18 +0100)]
Detect and log when people move between groups.

5 months agoCorrect cell names for duplicate detection.
Steinar H. Gunderson [Wed, 1 Nov 2023 21:47:23 +0000 (22:47 +0100)]
Correct cell names for duplicate detection.

5 months agoMake a TODO more precise.
Steinar H. Gunderson [Wed, 1 Nov 2023 21:43:55 +0000 (22:43 +0100)]
Make a TODO more precise.

5 months agoFix an issue where someone signed up and then duplicating themselves would cause...
Steinar H. Gunderson [Wed, 1 Nov 2023 21:38:30 +0000 (22:38 +0100)]
Fix an issue where someone signed up and then duplicating themselves would cause a crash.

5 months agoMinor cosmetic fix.
Steinar H. Gunderson [Wed, 1 Nov 2023 08:28:50 +0000 (09:28 +0100)]
Minor cosmetic fix.

5 months agoUpdate TODO about messaging.
Steinar H. Gunderson [Tue, 31 Oct 2023 22:48:41 +0000 (23:48 +0100)]
Update TODO about messaging.

5 months agoAdd timing information to the local console.
Steinar H. Gunderson [Mon, 30 Oct 2023 07:59:42 +0000 (08:59 +0100)]
Add timing information to the local console.

5 months agoIf run with --daemon, start a single run even if there is no marker, because the...
Steinar H. Gunderson [Sun, 29 Oct 2023 23:01:11 +0000 (00:01 +0100)]
If run with --daemon, start a single run even if there is no marker, because the code might have changed.

5 months agoSupport reacting to attend multiple different events, not just yellow.
Steinar H. Gunderson [Sun, 29 Oct 2023 22:49:13 +0000 (23:49 +0100)]
Support reacting to attend multiple different events, not just yellow.

5 months agoFactor out best_name_for_log.
Steinar H. Gunderson [Sun, 29 Oct 2023 22:48:49 +0000 (23:48 +0100)]
Factor out best_name_for_log.

5 months agoFix a very strange off-by-one (why did this only start when we moved from reading...
Steinar H. Gunderson [Sun, 29 Oct 2023 22:37:48 +0000 (23:37 +0100)]
Fix a very strange off-by-one (why did this only start when we moved from reading A9 to A4?)

5 months agoRename $config::oauth_token to $config::slack_oauth_token, for clarity.
Steinar H. Gunderson [Sun, 29 Oct 2023 13:29:26 +0000 (14:29 +0100)]
Rename $config::oauth_token to $config::slack_oauth_token, for clarity.

5 months agoMessage user to ask them about their user ID in the spreadsheet, if we cannot find...
Steinar H. Gunderson [Sun, 29 Oct 2023 13:12:55 +0000 (14:12 +0100)]
Message user to ask them about their user ID in the spreadsheet, if we cannot find them.

6 months agoSpelling fix.
Steinar H. Gunderson [Sat, 28 Oct 2023 22:25:27 +0000 (00:25 +0200)]
Spelling fix.

6 months agoSimplification in event.pl.
Steinar H. Gunderson [Sat, 28 Oct 2023 22:25:11 +0000 (00:25 +0200)]
Simplification in event.pl.

6 months agoUpdate TODO.
Steinar H. Gunderson [Sat, 28 Oct 2023 22:24:26 +0000 (00:24 +0200)]
Update TODO.

6 months agoAdd a blank line.
Steinar H. Gunderson [Sat, 28 Oct 2023 17:50:23 +0000 (19:50 +0200)]
Add a blank line.

6 months agoBetter daemon behavior.
Steinar H. Gunderson [Sat, 28 Oct 2023 17:47:15 +0000 (19:47 +0200)]
Better daemon behavior.

6 months agoSplit out find_diff() into its own function.
Steinar H. Gunderson [Sat, 28 Oct 2023 17:38:45 +0000 (19:38 +0200)]
Split out find_diff() into its own function.

6 months agoSplit out create_reaction_log() into its own function.
Steinar H. Gunderson [Sat, 28 Oct 2023 17:34:40 +0000 (19:34 +0200)]
Split out create_reaction_log() into its own function.

6 months agoRemove an unused hash.
Steinar H. Gunderson [Sat, 28 Oct 2023 17:31:11 +0000 (19:31 +0200)]
Remove an unused hash.

6 months agoFactor out %seen_names computation into a function.
Steinar H. Gunderson [Sat, 28 Oct 2023 17:30:48 +0000 (19:30 +0200)]
Factor out %seen_names computation into a function.

6 months agoFix an issue where one could be deleted from the database even if we were unable...
Steinar H. Gunderson [Sat, 28 Oct 2023 11:56:55 +0000 (13:56 +0200)]
Fix an issue where one could be deleted from the database even if we were unable to delete them from the spreadsheet.

6 months agoUse seen_names for the final location.
Steinar H. Gunderson [Sat, 28 Oct 2023 11:50:13 +0000 (13:50 +0200)]
Use seen_names for the final location.

6 months agoGet more of the sheet, so that we get the headings (will be needed soon).
Steinar H. Gunderson [Sat, 28 Oct 2023 10:56:51 +0000 (12:56 +0200)]
Get more of the sheet, so that we get the headings (will be needed soon).

6 months agoFix so that G4.5 headings are properly ignored.
Steinar H. Gunderson [Fri, 27 Oct 2023 22:19:33 +0000 (00:19 +0200)]
Fix so that G4.5 headings are properly ignored.

6 months agoSmall refactoring.
Steinar H. Gunderson [Fri, 27 Oct 2023 22:02:25 +0000 (00:02 +0200)]
Small refactoring.

6 months agoUpdate TODO.
Steinar H. Gunderson [Fri, 27 Oct 2023 14:33:15 +0000 (16:33 +0200)]
Update TODO.

6 months agoRemove some debugging.
Steinar H. Gunderson [Fri, 27 Oct 2023 14:21:14 +0000 (16:21 +0200)]
Remove some debugging.

6 months agoTweak the recent changes log.
Steinar H. Gunderson [Fri, 27 Oct 2023 14:16:06 +0000 (16:16 +0200)]
Tweak the recent changes log.

6 months agoSupport non-fixed sheets and messages to sync.
Steinar H. Gunderson [Fri, 27 Oct 2023 14:12:57 +0000 (16:12 +0200)]
Support non-fixed sheets and messages to sync.

6 months agoStore messages with dates in them, for future sync/matching.
Steinar H. Gunderson [Fri, 27 Oct 2023 13:30:52 +0000 (15:30 +0200)]
Store messages with dates in them, for future sync/matching.

6 months agoSupport event.pl replaying JSON from stdin.
Steinar H. Gunderson [Fri, 27 Oct 2023 13:19:41 +0000 (15:19 +0200)]
Support event.pl replaying JSON from stdin.

6 months agoRemove the legacy (non-logged) reactions table.
Steinar H. Gunderson [Fri, 27 Oct 2023 13:11:03 +0000 (15:11 +0200)]
Remove the legacy (non-logged) reactions table.

6 months agoAdd SQL schema.
Steinar H. Gunderson [Fri, 27 Oct 2023 13:09:36 +0000 (15:09 +0200)]
Add SQL schema.

6 months agoInitial commit.
Steinar H. Gunderson [Fri, 27 Oct 2023 13:06:35 +0000 (15:06 +0200)]
Initial commit.