~petersanchez

Los Angeles, CA

https://www.petersanchez.com

LA, CA USA - Managua, Nicaragua

~petersanchez/public-inbox

Last active 10 months ago

~petersanchez/blog-discussion

Last active 1 year, 2 months ago
View more

Recent activity

Re: [PATCH 2 of 2 django-impersonate] Add Python 3.13 classifier and update tox output in README 3 days ago

From Peter Sanchez to ~petersanchez/public-inbox

Applied! Made a small edit to remove Django 5.0 as it's now EOL'd but 
otherwise it's the same patch.

Thanks!

django-impersonate 1.9.5 release 10 days ago

From Peter Sanchez to ~petersanchez/public-inbox

Just a heads up that I just pushed django-impersonate 1.9.5 to pypi.  
This adds support to impersonate users when the User model has a UUID as 
the primary key.

https://pypi.org/project/django-impersonate/1.9.5/

This implements ticket #44[0]. Thanks to Adam Taylor for the patch[1] to 
implement it.

Peter

[0] https://todo.code.netlandish.com/~petersanchez/django-impersonate/44
[1] https://lists.code.netlandish.com/~petersanchez/public-inbox/patches/120

links 0.3.0 12 days ago

From Peter Sanchez to ~netlandish/links-discuss

Hi all,

I am happy to announce the release of links 0.3.0.

https://git.code.netlandish.com/~netlandish/links/refs/0.3.0

Release highlights:

# Added

- Handlers to view audit logs at various levels.
- Audit log index for faster queries
- Missing transaltions for new Audit log views
- Be sure we are shutting down background tasks correctly to avoid any data errors, etc.

links 0.3.0 12 days ago

From Peter Sanchez to ~netlandish/links-dev

Hi all,

I am happy to announce the release of links 0.3.0.

https://git.code.netlandish.com/~netlandish/links/refs/0.3.0

Release highlights:

# Added

- Handlers to view audit logs at various levels.
- Audit log index for faster queries
- Missing transaltions for new Audit log views
- Be sure we are shutting down background tasks correctly to avoid any data errors, etc.

Re: [PATCH links] Fixing "wonky" previous (back) pagination issues. 12 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   cbe9bed..9d69e58  master -> master

[PATCH links] Fixing "wonky" previous (back) pagination issues. 12 days ago

From Peter Sanchez to ~netlandish/links-dev

Created generic functions to query correctly and also paginate correctly
given the pagination needs and requirements for this project.

Fixes: https://todo.code.netlandish.com/~netlandish/links/102
Changelog-added: Generic functions to fetch data and paginate correctly
  so all views that need pagination can easily plug it in.
---
This should resolve the weirdness when paginating via "prev" links
throughout the site. Also there was a lot of inconsistencies in the
pagination. Sometimes the ordering was wrong on display even though the
data was returned correctly (needed reversing, etc.). I've made it all
uniform and use the same generic functions to keep everything in sync.

Some more tweaks are probably needed in the future to customize sort
[message trimmed]

Re: [PATCH links] Fixing missing query string options when paginating org links. 14 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   f712053..cbe9bed  master -> master

[PATCH links] Fixing missing query string options when paginating org links. 14 days ago

From Peter Sanchez to ~netlandish/links-dev

Fixes: https://todo.code.netlandish.com/~netlandish/links/104
Signed-off-by: Peter Sanchez <peter@netlandish.com>
---
 admin/routes.go   | 12 ++++++------
 billing/routes.go |  4 ++--
 core/routes.go    |  6 +++---
 helpers.go        | 29 ++++++++++++++++-------------
 list/routes.go    | 12 ++++++------
 short/routes.go   |  4 ++--
 6 files changed, 35 insertions(+), 32 deletions(-)

diff --git a/admin/routes.go b/admin/routes.go
index 3184bb8..1e730b1 100644
--- a/admin/routes.go
[message trimmed]