Skip to content

Fix the merge damage in create_extn, plus two bugs the real schema surfaced#3

Open
sparkyfen wants to merge 2 commits into
Shadytel:mainfrom
sparkyfen:fix-create-extn-indent
Open

Fix the merge damage in create_extn, plus two bugs the real schema surfaced#3
sparkyfen wants to merge 2 commits into
Shadytel:mainfrom
sparkyfen:fix-create-extn-indent

Conversation

@sparkyfen

@sparkyfen sparkyfen commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Update: supersat fixed the parse-breaking indentation directly on main in 626040e, so that commit dropped out of this PR in the rebase. What's left is the two bugs found by testing against the schema posted in #2:

  • create_extn bound 't'/'f' strings for publish, but the column is boolean and asyncpg rejects a str parameter for a bool column — every activation would have been a 500. It now binds a real bool. (The WHERE publish = 't' literals elsewhere are fine, Postgres casts those.)
  • The homepage row form posts its checkbox as published, but the non-admin path of publish_extn read publish with a default of '1' — so a regular user could never unpublish a line. It now reads the same key and default as the admin path.

Tested with the dev environment from #2 (rebased on this) against the definitive schema: activation with good/bad/duplicate input, SIP and POTS, and unpublish/republish showing up in the directory. #2 is stacked on this branch, so merging this first keeps that one clean.

sparkyfen added 2 commits July 9, 2026 23:15
The publish column is boolean (per the schema supersat posted in Shadytel#2), and
asyncpg rejects a str parameter for a boolean column, so inserting the
string 't'/'f' fails with a DataError. Pass a real bool instead.
The homepage row form posts the checkbox as 'published', but the
non-admin path read 'publish' with a default of '1', so a regular user
could never unpublish a line. Use the same key and default as the admin
path.
@sparkyfen
sparkyfen force-pushed the fix-create-extn-indent branch from 2143348 to 979ddfb Compare July 10, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant