Repository navigation
feat(tools/discourse): search forum topics by full text - #34
Draft
MakerFlyFly wants to merge 3 commits into
Draft
MakerFlyFly wants to merge 3 commits into
MakerFlyFly wants to merge 3 commits into
Conversation
Let callers discover relevant discussions with Discourse's native query syntax and open the matching posts. Preserve ranked hits and distinguish an observed extra topic from reaching the forum's search window. Generated-by: OpenAI Codex CLI 0.166.0-alpha.5.1 (GPT-6)
2 tasks done
Report an actionable query error when Discourse returns a null search group. Preserve malformed-response errors and successful empty searches. Document representative posts, pagination costs and native filters so callers can interpret matches and choose an appropriate query. Generated-by: OpenAI Codex CLI 0.166.0-alpha.5.1 (GPT-6)
Suggest a keyword when the forum cannot evaluate the first search page. If a later page has no result group, identify that page so callers can distinguish the failed read from an unusable query. Document the forum's term filtering and the scope of its ten-page search window. Generated-by: OpenAI Codex CLI 0.166.0-alpha.5.1 (GPT-6)
11 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream submission
Owner review of audited
868119319e05a0e213b613af76d4ca8e0c1eaa24is complete. apache/magpie#2018 is Ready for review atbc5dd1bce83c298381515d019f2c0704e772dc68, a single commit onb6ccd434a54bdd4761fb487d7b55aaa8bd89dbc0.The publication was consolidated from three commits to one. Its entire Git tree and canonical patch are identical to the previous publication
89d47d81d9edbe4f4adb28abb4eeaf71e639ee9a. The original audit candidate and its historical verification remain recorded below. The upstream PR tracks the new SHA's CI results and maintainer review.Summary
magpie-discourse topic search <query> [--limit N]to discover relevant discussions and open their posts. The configured forum receives the original query, including native filters and ordering. For a leading dash, usetopic search --limit 5 -- '-tags:foo'.in:all-postscan yield several. The length ofmatchescannot establish a total hit count or a contributor's activity. Use the topic permalink withtopic viewfor the full discussion.truncatedand a continuing tenth page withserver_limit_reached. A valid empty search returns an empty list. On an explicit null group, page 1 suggests adding a keyword or using a longer one. A later page reports its number. Failed reads exit 1 with empty stdout.Type of change
Test plan
Current candidate
86811931, fixed audit basec748ccd35bbdf4280a55c6ad95517a2f3b4188dd. The audit range includes the original search implementation and both review follow-ups.5a13977d, all three closeout diagnostic assertions failed as expected. On the current head both first-page cases (a b c,in:title) give the revised hint, and a null lookahead page reports page 2 with empty stdout.in:titleexited 1 with the new keyword hint and empty stdout.notifications --limit 2returned two topics withtruncated=trueandserver_limit_reached=false. A null later page and rate limiting were exercised offline. Example resultRFC-AI-0004 compliance
Linked issues
Owner audit #33. Refs apache/magpie#307, following the merged topic read and category list.
Notes for reviewers
f5c410c4. The reported test runs used the fixed audit candidate.AI disclosure
AI-generated PR description. OpenAI Codex CLI 0.166.0-alpha.5.1 (GPT-6) assisted with implementation, review follow-up, tests and verification. Owner review of the audited change is complete. Upstream maintainer review is pending.