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
Allow dashes (-
) in collection names
#1312
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1312 +/- ##
===========================================
+ Coverage 46.82% 67.42% +20.60%
===========================================
Files 279 279
Lines 13100 13100
===========================================
+ Hits 6134 8833 +2699
+ Misses 6231 3342 -2889
- Partials 735 925 +190
Flags with carried forward coverage won't be shown. Click here to find out more. |
We don't check for dashes inside the dance tests so I'm not sure what should we change there |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good to me in general.
I remember, at planning, we were discussing if we should start using dashes instead of undescores in CollectionName
testutil's handler -
FerretDB/internal/util/testutil/db.go
Line 92 in 74d6f83
func CollectionName(tb testing.TB) string { |
@rumyantseva I was confused about this part and thought that discussion and mention about this function was only because it would not work correctly. Now, I can see that the point of this change is different. Do we finally prefer using underscores there or dashes? |
@noisersup I think the idea was to have more test cases. Personally, I'm ok with either dashes or underscores. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as everything is tested.
Description
Closes #1280 .
Readiness checklist
task all
, and it passed.task godocs
.@FerretDB/core
), Assignee, Labels, Project and project's Sprint fields.