~petersanchez

Los Angeles, CA

https://www.petersanchez.com

LA, CA USA - Managua, Nicaragua

~petersanchez/blog-discussion

~petersanchez/public-inbox

View more

Recent activity

Re: [PATCH links] gobwebs bump 2 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   9d75a47..2ea094e  master -> master

[PATCH links] gobwebs bump 2 days ago

From Peter Sanchez to ~netlandish/links-dev

Adding `server.ShouldProcessCommon` to ignore common errors and thus
their error emails.
---
 cmd/api/main.go   |  1 +
 cmd/links/main.go |  1 +
 cmd/list/main.go  |  1 +
 cmd/short/main.go |  1 +
 go.mod            | 12 ++++++------
 go.sum            | 24 ++++++++++++------------
 6 files changed, 22 insertions(+), 18 deletions(-)

diff --git a/cmd/api/main.go b/cmd/api/main.go
index ab6ee51..bfec080 100644
--- a/cmd/api/main.go
[message trimmed]

Re: [PATCH links] Add ability to specify the ordering of tags. For tag clouds the options are: 2 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   fc421d4..9d75a47  master -> master

[PATCH links] Add ability to specify the ordering of tags. For tag clouds the options are: 2 days ago

From Peter Sanchez to ~netlandish/links-dev

Name
Name (reverse)
Count
Count (reverse)
Created
Created (reverse)

The same applies to tag listings on each individual bookmark saved with
the exception of "Count" options as it makes no sense in this case. If a
users setting is set to a Count option, then it defaults to `Name`

Thanks to AJilityJ <ajilityj@pm.me> for this suggestion.

Changelog-added: Ability to specify how you want tags to be ordered in
[message trimmed]

Re: [PATCH links] Add tests to cover adding and updating organizations in both the API and web app spaces. 17 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   eef93b7..fc421d4  master -> master

[PATCH links] Add tests to cover adding and updating organizations in both the API and web app spaces. 17 days ago

From Peter Sanchez to ~netlandish/links-dev

Changelog-added: Unit tests for adding and updating organizations (api
  and web app)
---
 api/api_test.go                             | 256 ++++++++++++++++++++
 core/routes_test.go                         | 164 +++++++++++++
 core/samples/add_organization.json          |  21 ++
 core/samples/add_organization_error.json    |  11 +
 core/samples/update_organization.json       |  17 ++
 core/samples/update_organization_error.json |  11 +
 6 files changed, 480 insertions(+)
 create mode 100644 core/samples/add_organization.json
 create mode 100644 core/samples/add_organization_error.json
 create mode 100644 core/samples/update_organization.json
 create mode 100644 core/samples/update_organization_error.json
[message trimmed]

Re: [PATCH links] Fix bug when creating second (or more) organizations. It was two fold. 17 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   47b6efd..eef93b7  master -> master

[PATCH links] Fix bug when creating second (or more) organizations. It was two fold. 17 days ago

From Peter Sanchez to ~netlandish/links-dev

1. An issue when an image upload failed was causing a nil pointer
   reference
2. A default public visibility was missing using the newer PostgreSQL
   enum values.

Changelog-fixed: Traceback caused by 2 edge cases when adding a second+
  organization.
---
 api/graph/schema.resolvers.go    | 22 ++++++++++++----------
 cmd/admin/commands.go            | 11 ++++++-----
 helpers.go                       | 20 ++++++++++++++++++++
 migrations/test_migration.up.sql |  6 +++---
 4 files changed, 41 insertions(+), 18 deletions(-)
[message trimmed]

Re: [PATCH links] Ability to edit Organization name in edit form. 17 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   dea1bf8..47b6efd  master -> master

[PATCH links] Ability to edit Organization name in edit form. 17 days ago

From Peter Sanchez to ~netlandish/links-dev

Changelog-added: Ability to edit organization name in edit form.
---
 core/inputs.go          | 2 ++
 core/routes.go          | 8 +++++---
 templates/org_edit.html | 8 ++++++++
 3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/core/inputs.go b/core/inputs.go
index 4c05ca6..a7b7fa4 100644
--- a/core/inputs.go
+++ b/core/inputs.go
@@ -55,6 +55,7 @@ func (o *OrganizationForm) Validate(c echo.Context) error {

// UpdateOrganizationForm ...
[message trimmed]