Repository navigation
fix(mongo): correctly process embedded arrays of nested documents - #10940
Conversation
f0ad0ac to
a82b1ae
Compare
a82b1ae to
b1f1c4d
Compare
|
@pleerock @NoNameProvided sorry to ping you but may I ask you please to review this PR? |
4263b69 to
bb0bf2e
Compare
bb0bf2e to
cec9f3e
Compare
cec9f3e to
3ea8a88
Compare
WalkthroughThe changes refactor the logic for extracting embedded column values in Changes
Sequence Diagram(s)sequenceDiagram
participant TestSuite
participant Post
participant Counters
participant Color
participant MongoDB
TestSuite->>Post: Create Post with Counters[]
loop For each Counter
TestSuite->>Color: Create Color(name)
TestSuite->>Counters: Create Counters(..., color: Color)
Post->>Counters: Embed Counters (with Color)
end
TestSuite->>MongoDB: Save Post
MongoDB-->>TestSuite: Post with nested Counters and Colors
TestSuite->>MongoDB: Retrieve Post
MongoDB-->>TestSuite: Post with Counters[] (each with Color)
TestSuite->>Counters: Assert color is instance of Color
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
npm error Exit handler never called! 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code Graph Analysis (2)test/functional/mongodb/basic/array-columns/entity/Counters.ts (2)
test/functional/mongodb/basic/array-columns/mongodb-array-columns.ts (2)
🔇 Additional comments (16)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
gioboa
left a comment
There was a problem hiding this comment.
is this PR still valid? can I ask you to solve the conflicts please?
3ea8a88 to
f6f9fda
Compare
PR Code Suggestions ✨Latest suggestions up to c4243b4
Previous suggestionsSuggestions up to commit 42bdbb3
Suggestions up to commit f6f9fda
|
|||||||||||||||||||||||||||||
f6f9fda to
42bdbb3
Compare
|
Hi @gioboa! Yes, the updated tests still fail without the changes in the PR. I’ve rebased the branch |
commit: |
gioboa
left a comment
There was a problem hiding this comment.
Yes, the updated tests still fail without the changes in the PR. I’ve rebased the branch
Thank you 🙏
gioboa
left a comment
There was a problem hiding this comment.
LGTM 👏
Thanks @mciuchitu
…peorm#10940) --- Co-authored-by: Maxim Ciuchitu <[email protected]>
…peorm#10940) --- Co-authored-by: Maxim Ciuchitu <[email protected]>
…peorm#10940) --- Co-authored-by: Maxim Ciuchitu <[email protected]>
Description of change
These changes fix the issue with embedded array update in MongoDB.
Pull-Request Checklist
masterbranchnpm run formatto apply prettier formattingnpm run testpasses with this changeFixes #0000Summary by CodeRabbit
New Features
Tests
Refactor