Repository navigation
Conversation
AI Code ReviewCritical IssuesNone found. Moderate IssuesNone found. Minor Issues
What Looks Good
RecommendationApprove the PR. The changes are well-tested, documented, and address the stated requirements without introducing regressions or violating project conventions. The feature is ready for merging. Automated review via OpenRouter (Nemotron Super 120B) — workflow source |
5d8c44c to
f6c4412
Compare
|
The PR has merge conflicts |
AI Code ReviewWhat Looks Good
RecommendationApprove the PR. The feature is well-implemented, thoroughly tested, properly documented, and follows project conventions. It addresses a real user need (auditing app-owned text by excluding vendor documentation) while maintaining backward compatibility (opt-in flag). The snapshot scoping limitation is correctly implemented and tested. No changes needed. Automated review via OpenRouter (Nemotron Super 120B) — workflow source |
…es (mendixlabs#1477) An audit of the app's own text reported a vendor module's text beside the project's. The flag drops hits whose module was downloaded from the Marketplace, a module's own documentation included. It is off by default and the SEARCH statement is unchanged. Which modules are Marketplace modules is read from the current snapshot only, so a module that was one in an older snapshot is not left out of every later search. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… a list The hand-written list of document types would drift as the objects view grows; "every element the catalog records" stays true. Suggested in review of mendixlabs#1478. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Rebased on
The exclude-marketplace tests now use #1492's
On Linux ( |
f6c4412 to
e425fa4
Compare
AI Code ReviewCritical IssuesNone found. Moderate IssuesNone found. Minor IssuesNone found. What Looks Good
RecommendationApprove. The PR is ready for merge. It cleanly implements the requested feature with appropriate test coverage, documentation, and adherence to project conventions. The opt-in design preserves backward compatibility, and the snapshot-scoped filtering logic is sound for the stated use case (auditing app-owned text). No changes are needed. Automated review via OpenRouter (Nemotron Super 120B) — workflow source |
Part of #1477. It was split out of #1478 at review. #1478 is now merged, so this PR is rebased on
main. It has two commits: the flag, and thesearch --helpwording suggested in review of #1478 ("the documentation of every element the catalog records" instead of a hand-written list that would drift).What it does
mxcli search … --exclude-marketplaceleaves out hits inside modules downloaded from the Marketplace. An audit of the app's own text usually wants this, because the vendor's documentation isn't yours to edit. The flag is opt-in:searchis read-only, and existing callers must see the same results. TheSEARCHstatement is unchanged.How
SearchOptions{ExcludeMarketplace bool}andExecutor.SearchWithadd the filter to both the strings and the source query, in table, names and JSON formats.marketplaceModuleFilterreadsmodulesfor the current snapshot only, using the idiom fromAddGraphAnalysis:SnapshotId = (select SnapshotId from snapshots order by rowid desc limit 1). So a module that is Marketplace-sourced in another snapshot is not excluded here.strings/sourceFTS tables have noSnapshotId, so the hits themselves are not snapshot-scoped, as before.docs-site/src/tools/search.md, plus the help text, the syntax entry and a CHANGELOG entry under Added.Evidence
TestSearchWith_ExcludeMarketplace, which includes a documented Marketplace module row, the case from the review;TestSearchWith_ExcludeMarketplace_AllFormats;TestSearchWith_ExcludeMarketplace_UsesTheCurrentSnapshot, with two snapshots in both directions.search "keyboard focus"returnsWebActions.FocusNextandWebActions.FocusPrevious(JAVASCRIPT_ACTION, documentation).--exclude-marketplaceit returnsNo matches found.mdl/catalog,mdl/executorandcmd/mxcliare the same set as onmain.golang:1.26.6-bookworm, ANTLR 4.13.2, as in CI):make grammar build test check-mdl check-findings check-conformance check-migration-reference lint-goall pass.--fail-on-match(#1492) also adds a field toSearchOptions. Whichever PR lands second will need a small rebase, and I'll do it.🤖 Generated with Claude Code