Skip to content

Enable test of nsType with a collection view #1702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2025
Merged

Conversation

jyemin
Copy link
Collaborator

@jyemin jyemin commented May 1, 2025

The reason this test fails is due to a unified test runner bug, in which a view is created only when a pipeline is specified.

JAVA-5769

The reason this test was failing is due to a unified test runner bug,
in which a view was created only when a pipeline was specified.

JAVA-5679
@jyemin jyemin requested a review from rozza May 1, 2025 15:06
@jyemin jyemin self-assigned this May 1, 2025
String viewOn = arguments.getString("viewOn").getValue();
List<BsonDocument> pipeline =
arguments.getArray("pipeline").stream().map(BsonValue::asDocument).collect(toList());
arguments.getArray("pipeline", new BsonArray()).stream().map(BsonValue::asDocument).collect(toList());
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If no pipeline provided, use an empty one.

@rozza
Copy link
Member

rozza commented May 1, 2025

LGTM - note I edited the description to point to the correct ticket JAVA-5769

@jyemin jyemin merged commit eef0c38 into mongodb:main May 1, 2025
52 of 54 checks passed
@jyemin jyemin deleted the JAVA-5769 branch May 1, 2025 15:46
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.

2 participants