You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API Documentation: Example for zip is faulty. #691
The arguments to eqJoin here seem to be invalid. First, the order should be ('id', 't2'). Second, 't2' should really be r.table('t2'). So overall, the following would actually work:
I believe the validation tests don't care much about what is sent to the server.
And the drivers don't do a lot of type checking on their side either, do they?
Yep, I think the validations tests are just checking syntax. But I was under the impression that we rewritten these docs so they are the basis of real tests too. This is the part that should have caught the issue.
The docs aren't currently the basis of examples. They just share a similar yaml format, and we run a validator on doc examples (which merely checks that the query compiles). We still have to do a lot of work to actually run the examples, which will take some time. @AtnNn -- can you confirm that doc validation is part of the Travis build?
Activity
al3xandru commentedon Apr 21, 2013
Thanks for the catch @danielmewes. I'll fix this right away, but there might be a delay until we push the change to the site.
danielmewes commentedon Apr 21, 2013
Thanks!
Fix for #691
al3xandru commentedon Apr 22, 2013
The API docs were fix. I'm leaving this open so @AtnNn can check why the corresponding tests were still passing.
danielmewes commentedon Apr 24, 2013
I believe the validation tests don't care much about what is sent to the server.
And the drivers don't do a lot of type checking on their side either, do they?
al3xandru commentedon Apr 24, 2013
Yep, I think the validations tests are just checking syntax. But I was under the impression that we rewritten these docs so they are the basis of real tests too. This is the part that should have caught the issue.
coffeemug commentedon Apr 24, 2013
The docs aren't currently the basis of examples. They just share a similar yaml format, and we run a validator on doc examples (which merely checks that the query compiles). We still have to do a lot of work to actually run the examples, which will take some time. @AtnNn -- can you confirm that doc validation is part of the Travis build?
AtnNn commentedon Apr 24, 2013
Documentation validation is not being run on travis because it needs the ruby driver.
AtnNn commentedon Apr 25, 2013
To be able to fully test the documentation examples we would need to have
The python script that runs the tests would need to be rewritten.
Enable docs validation on travis