*
I'm a programmer interested in creative & non-commercial applications of free software.
From Kevin Schoon to ~kevinschoon/ayllu-dev
> Just a small patch to fix the two dead links in the README.md file.
First, thank you for the contribution and apologies for the long delay,
we haven't had any patches sent to sourcehut yet and I missed this.
tree-sitter-amalgamation was something I hacked together to overcome the
lack of system tree-sitter packages. I archived it though as both the
distribution packages for both Alpine and Arch have improved and so
tree-sitter-amalgamation is no longer needed.
I have updated the README to remove the mention of
tree-sitter-amalgamation entirely.
Thank you anyway for the patch though, it is appreciated.
From Kevin Schoon to ~emersion/gqlclient-dev
> Hm, this is a pretty big breaking change, not sure it's worth it...
Do you know off hand what other projects are using gqlclient? I'm happy
to follow up with patches on downstream projects using it. It should
only require arguments to be swapped around, e.g. fuu.Bar(cli, ctx) ->
fuu.Bar(ctx, cli). I'm doing some general sourcehut hacking recently
and so it would be easy for me to update those projects.
From Kevin Schoon to ~emersion/gqlclient-dev
The canonical usage of context in Go is to pass it in as the first argument to all functions that accept it. This changes gqlclientgen to generate code accepting context as the first parameter. --- cmd/gqlclientgen/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gqlclientgen/main.go b/cmd/gqlclientgen/main.go index 541f5e0..8a1e920 100644 --- a/cmd/gqlclientgen/main.go +++ b/cmd/gqlclientgen/main.go @@ -302,8 +302,8 @@ func genOp(schema *ast.Schema, op *ast.OperationDefinition) *jen.Statement { var stmts, in, out, ret, dataFields []jen.Code [message trimmed]
From Kevin Schoon to ~sircmpwn/sr.ht-dev
Most services across sr.ht limit pagination to 15 items per page[1]. This makes for a good viewing experience on FHD screens and should continue to be the default. On larger displays or FHD displays with vertical orientation it leaves a bit to be desired since you loose half or more of your screen real estate. I'd like to add the ability to specify a default pagination configuration between 10, 15 (default), 30, and 45. The setting would globally effect all pages that return paginated items from the server .e.g git.sr.ht, lists.sr.ht, etc. Here are several approaches that could be taken for an implementation: 1. Add a default configuration option in `/etc/sr.ht/config.ini` with a configuration section such as:
From Kevin Schoon to ~sircmpwn/sr.ht-dev
This change adds a new sr.ht configuration option `graphql-debugging` which when enabled logs each request and response object to and from the server for the purposes of debugging. Because enabling this for a production environment could expose sensitive information I have added a check and a warning for it when the server starts up. Additionally the graphql package has been updated to no longer use the deprecated `handler` package and instead uses `graphql/handler`. --- server/debugging.go | 48 +++++++++++++++++++++++++++++++++++++++++++++ server/server.go | 40 +++++++++++++++++++++++++++++++------ 2 files changed, 82 insertions(+), 6 deletions(-) create mode 100644 server/debugging.go [message trimmed]