Skip to content

Search pgsql-bugs too when attaching a thread - #121

Open
Shihao-Zhong wants to merge 1 commit into
postgres:mainfrom
Shihao-Zhong:search-pgsql-bugs
Open

Shihao-Zhong wants to merge 1 commit into
postgres:mainfrom
Shihao-Zhong:search-pgsql-bugs

Conversation

@Shihao-Zhong

Copy link
Copy Markdown

Fixes #117.

The "Attach thread" search only looked at pgsql-hackers. A patch for a bug report could only be attached by pasting a message id, which is easy to miss.

getThreads now searches every list in a new setting, ARCHIVES_SEARCH_LISTS, which defaults to pgsql-hackers and pgsql-bugs. Results are merged newest first, a message sent to both lists shows up once, and the total is still capped at 100.

This costs one more request to the archives server per search. I could not test against the real archives API, since it is restricted by host. The latest.json endpoint in pgarchives takes any list name, so I expect it to work as is.

The dialog does not show which list a message came from. I can add that if you want it.

🤖 Generated with Claude Code

The "Attach thread" search only looked at pgsql-hackers, so a patch for
a bug report could only be attached by pasting a message id. Search
every list in ARCHIVES_SEARCH_LISTS, which is pgsql-hackers and
pgsql-bugs by default, and merge the results.

Fixes postgres#117

This branch has not been deployed

No deployments
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.

"Attach thread" search only covers pgsql-hackers

1 participant