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

Deprecate dotted fields in data documents #1313

Merged
merged 20 commits into from
Oct 28, 2022

Conversation

w84thesun
Copy link
Contributor

@w84thesun w84thesun commented Oct 24, 2022

Description

Closes #659.

Readiness checklist

  • I added tests for new functionality or bugfixes.
  • I ran task all, and it passed.
  • I added/updated comments for both exported and unexported top-level declarations (functions, types, etc).
  • I checked comments rendering with task godocs.
  • I ensured that the title is good enough for the changelog.
  • (for maintainers only) I set Reviewers (@FerretDB/core), Assignee, Labels, Project and project's Sprint fields.
  • I marked all done items in this checklist.

@w84thesun w84thesun self-assigned this Oct 24, 2022
@vercel
Copy link

vercel bot commented Oct 24, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
ferret-db ✅ Ready (Inspect) Visit Preview Oct 27, 2022 at 3:42PM (UTC)

@w84thesun w84thesun added the code/enhancement Some user-visible feature could work better label Oct 24, 2022
@vercel vercel bot temporarily deployed to Preview October 24, 2022 15:16 Inactive
@codecov
Copy link

codecov bot commented Oct 24, 2022

Codecov Report

Merging #1313 (ac0bc31) into main (f996a91) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1313      +/-   ##
==========================================
- Coverage   67.15%   67.13%   -0.02%     
==========================================
  Files         279      279              
  Lines       13131    13134       +3     
==========================================
  Hits         8818     8818              
- Misses       3388     3390       +2     
- Partials      925      926       +1     
Impacted Files Coverage Δ
internal/types/document_validation.go 87.50% <100.00%> (+1.01%) ⬆️
internal/util/version/version.go 48.52% <0.00%> (-4.42%) ⬇️
internal/handlers/common/filter.go 87.37% <0.00%> (ø)
Flag Coverage Δ
integration 63.23% <0.00%> (-0.04%) ⬇️
mongodb 14.27% <0.00%> (-0.03%) ⬇️
pg 52.80% <0.00%> (-0.04%) ⬇️
tigris 34.63% <0.00%> (-0.04%) ⬇️
unit 26.04% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@vercel vercel bot temporarily deployed to Preview October 24, 2022 16:30 Inactive
@vercel vercel bot temporarily deployed to Preview October 25, 2022 08:43 Inactive
@vercel vercel bot temporarily deployed to Preview October 26, 2022 09:18 Inactive
@vercel vercel bot temporarily deployed to Preview October 26, 2022 09:19 Inactive
@w84thesun w84thesun marked this pull request as ready for review October 26, 2022 09:29
@w84thesun w84thesun requested a review from a team October 26, 2022 09:29
@w84thesun w84thesun requested a review from a team as a code owner October 26, 2022 09:29
@w84thesun w84thesun requested review from AlekSi, Fashander, rumyantseva and a team and removed request for rumyantseva and a team October 26, 2022 09:29
@vercel vercel bot temporarily deployed to Preview October 26, 2022 20:50 Inactive
@vercel vercel bot temporarily deployed to Preview October 26, 2022 21:20 Inactive
@vercel vercel bot temporarily deployed to Preview October 26, 2022 21:34 Inactive
Copy link
Member

@rumyantseva rumyantseva left a comment

Choose a reason for hiding this comment

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

One tiny thing in the documentation.

Also, please note that dance tests need to be added for . and modified for $ as you modified the error message. (Personally, I don't think that the word sign is really needed in error messages, but I leave it up to you).

Dance tests are here: https://github.com/FerretDB/dance/blob/main/tests/diff/document_validation_test.go

website/docs/diff.md Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview October 27, 2022 13:19 Inactive
w84thesun added 2 commits October 27, 2022 14:29
rumyantseva
rumyantseva previously approved these changes Oct 27, 2022
Copy link
Member

@rumyantseva rumyantseva left a comment

Choose a reason for hiding this comment

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

LGTM

website/docs/diff.md Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview October 27, 2022 15:42 Inactive
Copy link
Member

@rumyantseva rumyantseva left a comment

Choose a reason for hiding this comment

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

LGTM

@AlekSi AlekSi added this to the v0.6.1 milestone Oct 28, 2022
@w84thesun w84thesun merged commit 05be2d5 into FerretDB:main Oct 28, 2022
@w84thesun w84thesun deleted the issue-659-deprecate-dotted-fields branch October 28, 2022 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code/enhancement Some user-visible feature could work better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explicitly do not support fields with a dot in data documents
4 participants