Skip to content

feat: enhance MongoDB index checker with detailed sharding guidelines and common patterns#25

Merged
mfori merged 3 commits into
mainfrom
chore/sharded-collections-prompt
Jun 3, 2026
Merged

feat: enhance MongoDB index checker with detailed sharding guidelines and common patterns#25
mfori merged 3 commits into
mainfrom
chore/sharded-collections-prompt

Conversation

@mfori

@mfori mfori commented May 28, 2026

Copy link
Copy Markdown
Member

There are false positives in evaluation of sharding rules, for example here: https://github.com/apify/apify-core/pull/28206#pullrequestreview-4372775926

This should hopefully perform better.

Note: waiting for https://github.com/apify/apify-core/pull/28238

@mfori mfori requested review from mtrunkat, mvolfik and valekjo May 28, 2026 20:09
@mfori mfori self-assigned this May 28, 2026

@mvolfik mvolfik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have no idea how to review this, nothing here seems factually wrong, don't know what else is expected from a prompt review

@mfori

mfori commented May 29, 2026

Copy link
Copy Markdown
Member Author

nothing here seems factually wrong

I think that's enough and we will see and can modify it later. You're on review mainly to be aware of this :)

@valekjo valekjo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, some tiny suggestions, and I'm not even very sure about those :D

Comment thread mongodb-query-index-check/prompts/review.md Outdated

Flag only when ALL of the following hold:
- The collection is multi-shard (per `mongo_connection.ts`).
- At least one shard-key field is *entirely absent* from the filter object — not just `undefined`, *missing*.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Isn't this already covered by the types?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is, but this is mainly to teach claude, that when there is undefined it should not report it as a missing shard key

Comment thread mongodb-query-index-check/prompts/review.md Outdated
@mfori mfori merged commit ebbf103 into main Jun 3, 2026
3 checks passed
@mfori mfori deleted the chore/sharded-collections-prompt branch June 3, 2026 12:00
fnesveda pushed a commit that referenced this pull request Jun 23, 2026
🤖 I have created a release *beep* *boop*
---


## [1.3.0](v1.2.0...v1.3.0)
(2026-06-05)


### Features

* enhance MongoDB index checker with detailed sharding guidelines and
common patterns ([#25](#25))
([ebbf103](ebbf103))
* extend MongoDB index-check prompt with six more review patterns
([#21](#21))
([8bab229](8bab229))
* PR title check action
([#24](#24))
([28507c2](28507c2))
* Update model version from claude-opus-4-7 to claude-opus-4-8
([#26](#26))
([f4bd7c9](f4bd7c9))


### Bug Fixes

* **git-cliff-release:** Improve behavior with no existing version tag
([#27](#27))
([9d7631e](9d7631e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

5 participants