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

#579 Support for metricless queries #580

Merged
merged 5 commits into from
Aug 11, 2014
Merged

#579 Support for metricless queries #580

merged 5 commits into from
Aug 11, 2014

Conversation

itayw
Copy link
Member

@itayw itayw commented Aug 11, 2014

Resolves #579

Added support for metricless queries, tests document process.
Example:

it("should perform an last_n_items query w/o metrics", function (done) {
  var query = {
    timeframe: 'last_1_items',
    interval: 'minute',
    dimensions: ['attribute'],
    metrics: [

    ],
    collection: this.collection
  };
  joola_proxy.query.fetch(this.context, query, function (err, result) {
    if (err)
      return done(err);

    expect(result).to.be.ok;
    expect(result.documents).to.be.ok;
    expect(result.documents.length).to.be.greaterThan(0);
    expect(result.documents[0].values.attribute).to.equal('test');
    return done();
  });
});

Related to:
joola/joola.datastore-influxdb#4
joola/joola.datastore-mongodb#10

itayw added a commit that referenced this pull request Aug 11, 2014
#579 Support for metricless queries
@itayw itayw merged commit eb9fd4a into develop Aug 11, 2014
@itayw itayw deleted the feature/#579 branch August 11, 2014 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support metricless queries
1 participant