-
Notifications
You must be signed in to change notification settings - Fork 7
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
Import sample data through API #2690
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2690 +/- ##
===========================================
- Coverage 89.28% 65.72% -23.56%
===========================================
Files 35 146 +111
Lines 1241 5628 +4387
Branches 289 1501 +1212
===========================================
+ Hits 1108 3699 +2591
- Misses 133 1929 +1796
Continue to review full report at Codecov.
|
There is one remaining Cypress test failure, I have spent over a day diagnosing it and am no closer, but it is in behaviour we don't use so I am arguing for changing the test expectation to match the new behaviour, merging this PR, then making a new issue to remove the unused functionality. Failure analysisThe test does manual CSV upload, then manual CSV upload of the same cases again but with the gender changed in one of two cases. It checks that only one case has been updated (the one with changed gender), but on this branch the test fails because it reports that both tests have been updated. In fact, they have. The unmodified case has the same values that it did before, but gets attached to the new upload and gets new revision metadata. So there's no visible change, except that the case looks like it got updated (and the As far as I can tell, the decision on whether a document needs updating or not is internal to mongodb's Why I think we should ignore this failureFirstly, we don't use manual CSV uploads any more, so we won't really observe any issues with incorrect revision metadata. Secondly, we don't use the revision metadata at all, and even in our plans to have frozen API requests we will not use it, so there is no incorrect behaviour even where revisions are recorded for unchanged cases. So I'm actually suggesting not only ignoring this failure for now and merging the PR, but making another issue to completely remove the document revision pattern at a future date. This will greatly increase write performance (i.e. ingestion) without compromising the existing or planned snapshot behaviour (i.e. frozen requests, and daily downloads). What do you think? |
Regarding your comment above, if we don't need use manual CSV uploads or revision metadata, then removing the document revision pattern makes sense. |
Agreed with @jim-sheldon, we should remove unused functionality. Document revisions could be useful for partner instances, but that’s a if, and the timeline for getting there is unknown, so we shouldn’t keep this around just in case. |
this means that the sample data is correctly age-bucketed.