redash icon indicating copy to clipboard operation
redash copied to clipboard

show column comments by default for athena and postgres if they are defined

Open AndrewChubatiuk opened this issue 1 year ago • 1 comments

What type of PR is this?

  • [x] Feature

Description

Use for PostgreSQL and Athena column comments to be shown instead of column name, when it's defined

How is this tested?

Running it on our Redash fork in production for a long time

AndrewChubatiuk avatar Nov 07 '23 19:11 AndrewChubatiuk

@AndrewChubatiuk thanks for the PR. Do you have any screenshots handy to show before/after this change?

guidopetri avatar Nov 08 '23 01:11 guidopetri

Codecov Report

Attention: Patch coverage is 54.54545% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 63.79%. Comparing base (af0773c) to head (aaf81fd). Report is 14 commits behind head on master.

:exclamation: Current head aaf81fd differs from pull request most recent head 30abe0e. Consider uploading reports for the commit 30abe0e to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6582      +/-   ##
==========================================
- Coverage   63.82%   63.79%   -0.03%     
==========================================
  Files         161      161              
  Lines       13060    13077      +17     
  Branches     1803     1807       +4     
==========================================
+ Hits         8335     8343       +8     
- Misses       4425     4430       +5     
- Partials      300      304       +4     
Files Coverage Δ
redash/models/__init__.py 91.95% <ø> (ø)
redash/query_runner/pg.py 42.13% <0.00%> (-0.44%) :arrow_down:
redash/query_runner/athena.py 51.49% <60.00%> (+0.23%) :arrow_up:

codecov[bot] avatar Apr 10 '24 11:04 codecov[bot]

@guidopetri @justinclift added image

AndrewChubatiuk avatar Apr 11 '24 20:04 AndrewChubatiuk

@gaecoli @junnplus Would either of you have time and interest to review this one? :smile:

justinclift avatar Apr 12 '24 08:04 justinclift

@gaecoli Thanks heaps. :smile:

justinclift avatar Apr 12 '24 10:04 justinclift

@justinclift had to rebase it due to concurrent PR that was merged faster

AndrewChubatiuk avatar Apr 12 '24 10:04 AndrewChubatiuk

Hopefully the CI on master doesn't try running the Percy check, now that I've removed the PERCY_TOKEN secret.

justinclift avatar Apr 12 '24 11:04 justinclift

Yep, looks like that worked. CI on master is now reporting pass/fail correctly. :smile:

justinclift avatar Apr 12 '24 11:04 justinclift

@AndrewChubatiuk Thinking over this PR, it looks like it'll be useful for people. Well done. :smile:

justinclift avatar Apr 12 '24 11:04 justinclift

@justinclift, @gaecoli: features and improvements should not be merged until we have a working build and tests (See https://github.com/getredash/redash/pull/6876)

eradman avatar Apr 12 '24 15:04 eradman

The build and tests appear to be working now. :smile:

justinclift avatar Apr 12 '24 16:04 justinclift