-
Notifications
You must be signed in to change notification settings - Fork 6
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
DOC-7628 scope/collection analytics examples #20
Conversation
The scope example is commented out, as I don't understand the API here, am investigating and will fix/uncomment.
Currently, uncommenting the handle-scope section gives this error:
This is with the following datasets created:
This seems to match the conventions documented in the Java implementation of RFC, and does work in the Java SDK, so I'm not sure if the Ruby SDK is incomplete here? |
A recommended way to create an Analytics collection is e.g. ALTER COLLECTION `travel-sample`.`inventory`.`airport` ENABLE ANALYTICS; This creates a dataverse with a name like `travel-sample`.inventory However the scope example now gives an error like: .rvm/gems/ruby-3.0.0/gems/couchbase-3.0.3/lib/couchbase/scope.rb:100: in `document_analytics': unable to execute analytics query (24034: Cannot find dataverse with name `travel-sample.inventory`): dataverse_not_found, context={...
|
||
[source,ruby] | ||
---- | ||
include::../examples/analytics.rb[tag=handle-collection] |
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.
I'm not sure what extra macro power Antora derives from using example$ in place of ../example/
(I'd need to rtfm ;) )
but I'm pretty sure that there was a reason beyond cargo-culting why we do this.
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.
No problem merging from the adoc pov (although see passing comment on example$),
if @avsej has no time to review the code, I'm happy for it to be merged as working,
and we can revisit later if necessary.
Thanks. I've made a few fixes including the |
see #27 |
The scope example is commented out, as I don't understand the
API here, have asked for advice from @avsej and will uncomment/fix in due course.