Kim Alvefur <zash@zash.se> [Thu, 06 Apr 2023 17:07:09 +0200] rev 13039
mod_admin_shell: Calculate widths of columns from example values
Harder to accidentally count wrong if Lua is doing the counting on a
plausible input.
Kim Alvefur <zash@zash.se> [Sun, 02 Apr 2023 22:44:29 +0200] rev 13038
mod_admin_shell: Strip 'prosody:' prefix to allow narrower Role column
Kim Alvefur <zash@zash.se> [Thu, 06 Apr 2023 16:30:26 +0200] rev 13037
util.set: Change tostring format to {a, b, c}
Makes it easier to make out where the set starts and ends in cases where
it may get embedded and tostring()-ed in a log message.
{ } taken over from util.array for consistency with some other systems
syntax for Sets, e.g. Python
Kim Alvefur <zash@zash.se> [Thu, 06 Apr 2023 16:27:37 +0200] rev 13036
util.array: Change tostring format to [a,b,c]
Arrays in Lua do use { } but since __tostring is often user-facing it
seems sensible to use [ ] instead for consistency with many other
systems; as well as to allow the {a,b,c} formatting to be used by
util.set without being confused with util.array.
Matthew Wild <mwild1@gmail.com> [Thu, 06 Apr 2023 15:03:45 +0100] rev 13035
util.human.io: Fix pattern to support fractional proportions
Matthew Wild <mwild1@gmail.com> [Thu, 06 Apr 2023 14:51:52 +0100] rev 13034
util.human.io: Support for dynamic "proportional" columns
Instead of a percentage, this allows you to specify e.g. `width="[N]p"`, where
a width="2p" will be twice the width of a width="1p" column.
Compatibility with the old %-based widths is preserved, and percentages adding
up to more than 100 are handled more gracefully.
Matthew Wild <mwild1@gmail.com> [Thu, 06 Apr 2023 14:49:11 +0100] rev 13033
mod_debug_reset: Remove now unused import of util.time (thanks luacheck)
Matthew Wild <mwild1@gmail.com> [Thu, 06 Apr 2023 14:17:50 +0100] rev 13032
mod_debug_reset: Don't delay operations until next tick
For some unknown reason, this was required with the old mock util.time
functions prior to 012d6e7b723a.
After 012d6e7b723a, it breaks. So I'm happy to revert to not delaying
anything. This makes tests pass again.
Matthew Wild <mwild1@gmail.com> [Thu, 06 Apr 2023 14:00:54 +0100] rev 13031
integration tests: Preserve unmocked time.monotonic()
With monotonic() frozen, timers may fail to trigger. This caused problems
after the new util.startup changes that moved the server-started event to a
timer. The timer wouldn't trigger, the event didn't fire, and prosody would
fail to daemonize.
All the tests that depend on specific time behaviour are depending on wall
clock time, so only mocking util.time.now() and os.time() fixes those.
Kim Alvefur <zash@zash.se> [Thu, 06 Apr 2023 08:36:39 +0200] rev 13030
mod_csi: Drop summary stats, doesn't work in normal module
This method ends up going up for each collection and the :clear() method
is only available to global modules (see e.g. mod_c2s), while regular
per-host modules get scoped stats