redash icon indicating copy to clipboard operation
redash copied to clipboard

UI switched with a checkbox called Use Custom for Oracle

Open radkmb opened this issue 1 year ago • 19 comments

What type of PR is this?

  • [x] Refactor
  • [x] Feature

Description

Related to #6332 . This change to the PR changed the UI so that the "Use Custom" checkbox switches the UI instead of the user having to type in a specific string to switch functions.

How is this tested?

  • [x] Unit tests (pytest, jest)
  • [ ] E2E Tests (Cypress)
  • [x] Manually
  • [ ] N/A

Related Tickets & Documents

  • #6332

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

https://github.com/getredash/redash/assets/8194473/af50a4e2-ca76-436b-a0cb-d23a2b1ca1f0

radkmb avatar Jan 08 '24 16:01 radkmb

@snickerjp This PR will probably be of interest to you. :smile:

justinclift avatar Jan 09 '24 00:01 justinclift

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (4c47bef) 63.38% compared to head (3ada201) 63.38%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6696   +/-   ##
=======================================
  Coverage   63.38%   63.38%           
=======================================
  Files         162      162           
  Lines       13165    13165           
  Branches     1817     1817           
=======================================
  Hits         8344     8344           
  Misses       4532     4532           
  Partials      289      289           

codecov[bot] avatar Jan 09 '24 00:01 codecov[bot]

@snickerjp Actually, would you be interested in reviewing this PR, and also seeing if the concept itself looks good? :smile:

justinclift avatar Jan 09 '24 00:01 justinclift

Looks like a very good concept. I too would have liked to make this change.

snickerjp avatar Jan 09 '24 00:01 snickerjp

@snickerjp Ok, so should we merge this as-is? :smile:

justinclift avatar Jan 09 '24 02:01 justinclift

@justinclift Can I see some more? I still don't understand the part where you pass values from Front UI to query_runner/oracle.py.

Maybe some changes are needed on the query_runner/oracle.py side.

snickerjp avatar Jan 09 '24 02:01 snickerjp

@snickerjp The full source code for this PR is here:

https://github.com/radkmb/redash/tree/toggle-custom-ui

It looks like the current Redash master branch, with 3 new commits added on top:

https://github.com/radkmb/redash/commits/toggle-custom-ui/

You'll probably need to ask @radkmb about the changes, as I didn't write this code. :smile:

justinclift avatar Jan 09 '24 03:01 justinclift

@radkmb Hopefully you're ok to assist @snickerjp with this? :smile:

justinclift avatar Jan 09 '24 03:01 justinclift

@justinclift Thank you very much.

I will look into the part that works with query_runner/oracle.py.

snickerjp avatar Jan 09 '24 04:01 snickerjp

@justinclift Thanks for the confirmation! I will also review the part that works with query_runner/oracle.py.

radkmb avatar Jan 09 '24 05:01 radkmb

With this source code, it doesn't seem to work without modifications

git checkout -b radkmb-toggle-custom-ui
git pull https://github.com/radkmb/redash.git toggle-custom-ui
yarn
make build
make compose_build
make up

The browser (or proxy) sent a request that this server could not understand.

edit-datasource-error

snickerjp avatar Jan 15 '24 17:01 snickerjp

With this source code, it doesn't seem to work without modifications

Ahhh. Thanks for checking @snickerjp.

@radkmb Are you ok to look into the above error and fix things? :smile:

justinclift avatar Mar 02 '24 04:03 justinclift

Why do I not have the option to connect to oracle Database

sk-on avatar May 17 '24 01:05 sk-on

@sk-on Which version of Redash are you using? :smile:

justinclift avatar May 17 '24 07:05 justinclift