Re: [PATCH] pgarchives: pglister_sync: import lists with subscriber_access set to True

From: Célestin Matte <celestin(dot)matte(at)cmatte(dot)me>
To: pgsql-www(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] pgarchives: pglister_sync: import lists with subscriber_access set to True
Date: 2023-04-03 15:16:18
Message-ID: a99938be-c9ad-8d94-0a16-8305e6391f1e@cmatte.me
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

Update: previously attached patches were incorrectly using subscriber_access in ListGroup, although it's a field of List in pgarchives.
Besides, they were not built on top of upstream. Please note that this set of patches is built on top of the patch I sent in gitlab [1], as upstream currently crashes on migration.
New sets of patched attached.

[1] https://gitlab.com/pglister/pglister/-/merge_requests/33

On 28/02/2023 11:39, Célestin Matte wrote:
> Attached another proposed solution to that problem, with a series of patches for pglister and pgarchives:
> - 0001-Add-subscriber_access-field-to-ListGroup_pglister.patch adds a subscriber_access field in pglister's admin section
> - 0002-Add-subscriber_access-to-archives-API_pglister.patch adds subscriber_access to the API's archive section in pglister
> - 0001-pglister_sync-obtain-subscriber_access-from-API_pgarchives.patch uses the value received from the API instead of a default "False" that has to be manually changed
>
> As a reminder, the problem was that subscriber_access was set to False by default, which means that any list created on pglister and set to be archived on pgarchives won't be reachable by subscribers, unless the subscriber_access field is manually modified in the database.

--
Célestin Matte

Attachment Content-Type Size
0001-Add-subscriber_access-field-to-List.patch text/x-patch 1.9 KB
0001-pglister_sync-obtain-subscriber_access-from-API.patch text/x-patch 2.5 KB
0002-Add-subscriber_access-to-archives-API.patch text/x-patch 2.8 KB

In response to

Browse pgsql-www by date

  From Date Subject
Next Message Andreas 'ads' Scherbaum 2023-04-05 10:08:02 Re: GSoC page under /developer is out of date
Previous Message Célestin Matte 2023-04-01 21:38:26 [PATCH] pgarchives: Always load auth, even when using PUBLIC_ARCHIVES=True