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

feature: add couchbase query runner #3658

Merged
merged 7 commits into from
Apr 24, 2019

Conversation

AntonZarutsky
Copy link
Contributor

@AntonZarutsky AntonZarutsky commented Mar 29, 2019

What type of PR is this? (check all applicable)

  • Feature

Description

Connector for Couchbase 5x+

  1. Supports N1QL queries Couchbase 5x+ (maybe lower versions, didn't checked)
  2. Supports Analytics service Couchbase 5.5+. (https://docs.couchbase.com/server/6.0/analytics/introduction.html)
  • Access is done via Couchbase Rest API.
  • JSON response transformation is carried from MongoDB connector.

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Screen Shot 2019-03-29 at 17 37 01

Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @AntonZarutsky ! Please see comments.

def test_connection(self):
result = self.call_service(self.noop_query, '')

def get_buckets(self, query, nameParam):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nameParam should be name_param to be consistent with PEP-8/our naming convention.

Copy link
Contributor Author

@AntonZarutsky AntonZarutsky Apr 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arikfr. thx for review. Fixed nameParams.

port = self.configuration.get('port', 8095)
params = {'statement': query}

url = "http://%s:%s/query/service" % (host, port)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Couchbase support HTTPS? In such case, we should probably make the protocol (http) configurable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extracted as parameter

@AntonZarutsky
Copy link
Contributor Author

Hi @arikfr. Updated PR. Can you check if we can proceed further?

@AntonZarutsky AntonZarutsky reopened this Apr 17, 2019
@AntonZarutsky AntonZarutsky reopened this Apr 19, 2019
@AntonZarutsky AntonZarutsky reopened this Apr 22, 2019
@AntonZarutsky AntonZarutsky reopened this Apr 24, 2019
@arikfr arikfr merged commit a1e75d2 into getredash:master Apr 24, 2019
@arikfr
Copy link
Member

arikfr commented Apr 24, 2019

Merged. Thanks!

harveyrendell pushed a commit to pushpay/redash that referenced this pull request Nov 14, 2019
* feature: add couchbase query runner

* fix style

* fix style

* fix style

* fix naming due to convention

* extracting protocol as parameter
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.

2 participants