~petersanchez

Los Angeles, USA - Managua, Nicaragua

https://petersanchez.com

Recent activity

[PATCH dowork] Adding task Before function support 2 months ago

From Peter Sanchez to ~sircmpwn/public-inbox

---
In my local testing this is working. Please review.

I left it to call the before function before every attempt 
because each use case is different. Leave it up to the 
developer to decide how the before function behaves if it's 
the first attempt or not.

 task.go | 41 +++++++++++++++++++++++++++++------------
 1 file changed, 29 insertions(+), 12 deletions(-)

diff --git a/task.go b/task.go
index 8cef704..8056796 100644
--- a/task.go
[message trimmed]

[PATCH dowork] Adding .Name() helper to Queue struct 3 months ago

From Peter Sanchez to ~sircmpwn/public-inbox

---
This is just a helper to easily identify queues.

 queue.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/queue.go b/queue.go
index 110412c..83a5c6e 100644
--- a/queue.go
+++ b/queue.go
@@ -80,6 +80,11 @@ func (q *Queue) Now(now func() time.Time) {
	q.now = now
}

[message trimmed]

Re: [PATCH meta.sr.ht] api: fix webhooks being called with outdated data 3 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-dev

On 08/04, Conrad Hoffmann wrote:
>When a user updates their profile, the database gets updated
>accordingly, but the webhooks get called with data retrieved before the
>update.
>
>Make the update statement return the new values and apply them to the
>user object that gets passed to the webhooks.

I believe this will resolve this ticket:

https://todo.sr.ht/~sircmpwn/meta.sr.ht/192

Re: [PATCH hg.sr.ht-deb] Add GraphQL API 9 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-packages

On 02/17, Denis Laxalde wrote:
>(Having a second look.)
>
>This user does not exist. But we're having an 'hg' user (see 
>debian/srht-hg.postinst), should we use the same one here?

You're right. The user is 'hg'. Sorry about that, I should have verified
before just assuming all the users followed the same pattern.

[PATCH todo.sr.ht-deb] Adding GraphQL API 9 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-packages

---
 debian/rules                           |  7 +++++++
 debian/srht-todo.install               |  1 +
 debian/srht-todo.postinst              |  3 +++
 debian/srht-todo.postrm                | 21 +++++++++++++++++++++
 debian/srht-todo.srht-todo-api.service | 13 +++++++++++++
 5 files changed, 45 insertions(+)
 create mode 100644 debian/srht-todo.install
 create mode 100644 debian/srht-todo.postrm
 create mode 100644 debian/srht-todo.srht-todo-api.service

diff --git a/debian/rules b/debian/rules
index 4abedcb..2d27bca 100755
--- a/debian/rules
[message trimmed]

[PATCH lists.sr.ht-deb] Adding GraphQL API 9 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-packages

---
 debian/rules                             |  7 +++++++
 debian/srht-lists.install                |  1 +
 debian/srht-lists.postinst               |  3 +++
 debian/srht-lists.postrm                 | 21 +++++++++++++++++++++
 debian/srht-lists.srht-lists-api.service | 13 +++++++++++++
 5 files changed, 45 insertions(+)
 create mode 100644 debian/srht-lists.install
 create mode 100644 debian/srht-lists.postrm
 create mode 100644 debian/srht-lists.srht-lists-api.service

diff --git a/debian/rules b/debian/rules
index 1f0e430..3f8c644 100755
--- a/debian/rules
[message trimmed]

[PATCH hg.sr.ht-deb] Add GraphQL API 9 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-packages

# HG changeset patch
# User Peter Sanchez <peter@netlandish.com>
# Date 1645051197 21600
#      Wed Feb 16 16:39:57 2022 -0600
# Node ID b48a2faef25007557c3846811a6d4952e697208c
# Parent  a834e88829f173d439f0cfca106a67d14e0acc99
Add GraphQL API

diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -16,11 +16,14 @@ override_dh_auto_build:
	make SRHT_PATH=${SRHT_PATH}
	dh_auto_build
[message trimmed]

Re: [PATCH hg.sr.ht] Use @ as default revision before using tip 11 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-dev

On 12/02, Roger Pate wrote:
>Use @ as default revision before using tip
>
>The '@' bookmark is special because it will be cloned by default, otherwise it is just another bookmark, which can be defined, moved, and exported.  The 'tip' bookmark is more special, as it always represents the latest commit on any head and cannot be altered except by adding a commit.
>
>Compared to the prior behavior of showing 'tip' by default, it makes more sense to show '@'.  If '@' is not defined, then fall back to 'tip'.

Not sure this makes sense for default behavior.

The use of '@' is, generally, a team specific workflow. One that I don't
see in the wild too frequently. We're a heavy Mercurial shop and many of
our clients also make heavy use of hg and it's quite rare we see this
bookmark workflow revolving around '@'.

Re: [PATCH core-go v5] Add support for mail setups that don't support TLS or Auth 1 year, 13 days ago

From Peter Sanchez to ~sircmpwn/sr.ht-dev

On 11/17, Peter Sanchez wrote:
>The go-smtp docs says to not use plain instead of login

Sigh. s/not //

Re: [PATCH] add flag to specify base path to themes 1 year, 2 months ago

From Peter Sanchez to ~migadu/alps-devel

On 09/09, Simon Ser wrote:
>You mean that the argument type is missing? That's valid Go, if the
>type is omitted, it takes the one from the next argument.

Oh, neat. I honestly didn't know that! Sorry for the confusion Alex.

Peter