Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix workbench bugs from plugin platform upgrade #886

Merged
merged 10 commits into from
Dec 7, 2020
Merged

Fix workbench bugs from plugin platform upgrade #886

merged 10 commits into from
Dec 7, 2020

Conversation

joshuali925
Copy link
Contributor

@joshuali925 joshuali925 commented Dec 3, 2020

Issue #, if available:

Description of changes:

  • update download json api to be /api/sql_console/sqljson instead of /api/sql_console/queryjson
  • update cypress tests
  • changed POST body to { body: `{ "query": "${query}" }` } from { query: query } so we no longer need convertQueryToString (ref: Migrate Query Workbench to new Platform  #812 (comment))
  • use request instead of actual query as parameter when calling client.asScoped(request), so it works with security plugin
  • fix margin of results tabs in 7.10

image

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@joshuali925 joshuali925 added bug Something isn't working Workbench labels Dec 3, 2020
@codecov
Copy link

codecov bot commented Dec 3, 2020

Codecov Report

Merging #886 (d7d1330) into develop (793d92d) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop     #886   +/-   ##
==========================================
  Coverage      99.85%   99.85%           
  Complexity      2148     2148           
==========================================
  Files            216      216           
  Lines           4845     4845           
  Branches         318      318           
==========================================
  Hits            4838     4838           
  Misses             5        5           
  Partials           2        2           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 793d92d...d7d1330. Read the comment docs.

Copy link
Contributor

@davidcui1225 davidcui1225 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix

@joshuali925 joshuali925 changed the title Fix workbench json API, margins and cypress tests Fix workbench bugs from plugin platform upgrade Dec 7, 2020
Copy link
Member

@chloe-zh chloe-zh left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the changes!

@joshuali925 joshuali925 merged commit 9f65c67 into opendistro-for-elasticsearch:develop Dec 7, 2020
joshuali925 added a commit that referenced this pull request Dec 7, 2020
* Fix download json api path

* Fix cypress tests

* Fix response tab margin

* Update cypress tests

* Fix server log message

* Fix asScoped call for security plugin

* Update cypress tests

* Fix unique keys problem

* Remove console log
chloe-zh pushed a commit to chloe-zh/sql that referenced this pull request Dec 15, 2020
…icsearch#886)

* Fix download json api path

* Fix cypress tests

* Fix response tab margin

* Update cypress tests

* Fix server log message

* Fix asScoped call for security plugin

* Update cypress tests

* Fix unique keys problem

* Remove console log
chloe-zh pushed a commit to chloe-zh/sql that referenced this pull request Dec 15, 2020
…icsearch#886)

* Fix download json api path

* Fix cypress tests

* Fix response tab margin

* Update cypress tests

* Fix server log message

* Fix asScoped call for security plugin

* Update cypress tests

* Fix unique keys problem

* Remove console log
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Workbench
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants