Skip to content
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

Projection: excluded and included fields #83

Merged
merged 36 commits into from
Mar 22, 2022
Merged

Projection: excluded and included fields #83

merged 36 commits into from
Mar 22, 2022

Conversation

seeforschauer
Copy link
Contributor

@seeforschauer seeforschauer commented Mar 21, 2022

tests/ferret/core_test.go Outdated Show resolved Hide resolved
tests/ferret/core_test.go Outdated Show resolved Hide resolved
tests/ferret/core_test.go Outdated Show resolved Hide resolved
tests/ferret/core_test.go Outdated Show resolved Hide resolved
tests/ferret/core_test.go Outdated Show resolved Hide resolved
@seeforschauer seeforschauer marked this pull request as draft March 22, 2022 12:09
@seeforschauer seeforschauer marked this pull request as ready for review March 22, 2022 13:02
tests/ferret/core_test.go Outdated Show resolved Hide resolved
tests/ferret/core_test.go Outdated Show resolved Hide resolved
tests/ferret/core_test.go Outdated Show resolved Hide resolved
tests/ferret/core_test.go Outdated Show resolved Hide resolved
tests/ferret/core_test.go Outdated Show resolved Hide resolved
}),
err: mongo.CommandError{
Code: 31253,
Name: "ErrorCode(31253)",
Copy link
Member

Choose a reason for hiding this comment

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

That value is generated from those comments by stringer tool

Copy link
Member

Choose a reason for hiding this comment

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

tests/ferret/core_test.go Outdated Show resolved Hide resolved
seeforschauer and others added 4 commits March 22, 2022 16:27
Co-authored-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
Co-authored-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
Co-authored-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
Co-authored-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
@seeforschauer seeforschauer marked this pull request as draft March 22, 2022 13:28
@seeforschauer seeforschauer marked this pull request as ready for review March 22, 2022 15:04
Copy link
Member

@AlekSi AlekSi left a comment

Choose a reason for hiding this comment

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

Tests fail

// o is FindOptions, it's used in projections testing.
// v is a value and it is also being used in the projections testing,
// since the resulting value for projection differs from the document value.
// It's being checked only one of (v, IDs, err).
Copy link
Member

Choose a reason for hiding this comment

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

And with inline comments we no longer need that comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

@AlekSi
Copy link
Member

AlekSi commented Mar 22, 2022

@seeforschauer seeforschauer marked this pull request as draft March 22, 2022 15:31
@seeforschauer
Copy link
Contributor Author

hmmm, it didn't fail locally :|

@seeforschauer
Copy link
Contributor Author

@seeforschauer seeforschauer marked this pull request as ready for review March 22, 2022 15:41
@AlekSi AlekSi merged commit f44323a into FerretDB:main Mar 22, 2022
@seeforschauer seeforschauer deleted the projection-simple branch March 23, 2022 10:30
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.

None yet

2 participants