redash icon indicating copy to clipboard operation
redash copied to clipboard

Fix columns duplication on MongoDB Query Runner #6640

Open masayuki038 opened this issue 2 years ago • 7 comments

What type of PR is this?

  • [x] Bug Fix

Description

Bug fix for https://github.com/getredash/redash/issues/6640. And added some tests for MongoDB Query Runner.

How is this tested?

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

Related Tickets & Documents

Closes #6640

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

without fields

image

with fields

image

masayuki038 avatar Dec 03 '23 06:12 masayuki038

Codecov Report

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

Comparison is base (939bec2) 63.42% compared to head (8ea665e) 63.72%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6641      +/-   ##
==========================================
+ Coverage   63.42%   63.72%   +0.29%     
==========================================
  Files         162      162              
  Lines       13173    13174       +1     
  Branches     1819     1820       +1     
==========================================
+ Hits         8355     8395      +40     
+ Misses       4522     4473      -49     
- Partials      296      306      +10     
Files Coverage Δ
redash/query_runner/mongodb.py 60.09% <100.00%> (+19.03%) :arrow_up:

codecov[bot] avatar Dec 03 '23 06:12 codecov[bot]

@guidopetri @konnectr Thanks for your review.

It looks like two of the tests aren't passing for it? Could you take a look and investigate why?

Sure. I missed something. I'll check it later. Please give me a little time.

masayuki038 avatar Jan 30 '24 10:01 masayuki038

e2e test still failed. I don't know main branch status... I will re-run it after https://github.com/getredash/redash/pull/6748 is fixed.

masayuki038 avatar Feb 08 '24 15:02 masayuki038

e2e test passed by merging main branch. @guidopetri Could you check this if you have some time? Thank you always.

masayuki038 avatar Feb 10 '24 09:02 masayuki038

We are having a similar issue right now. Can you guys let me know if I can help in anyways?

MrSpark2591 avatar Mar 18 '24 11:03 MrSpark2591

Hi, any news about this? I have also the same problem all the columns of my table are duplicated since I upgraded to the last preview version.

jagal17 avatar May 06 '24 19:05 jagal17

@clearnote01 @guidopetri any news about this merge? Please we need it!

jagal17 avatar Jun 21 '24 14:06 jagal17

@justinclift It looks like that @guidopetri is busy... I fixed some tests. Could you review this or assign a new reviewer? @jagal17 seems to need this update. Thanks always.

masayuki038 avatar Jul 29 '24 13:07 masayuki038

Sorry, something is wrong. I will check it. Please wait.

masayuki038 avatar Jul 29 '24 16:07 masayuki038

I fixed the merge issue. All checks have passed.

@justinclift It looks like that @guidopetri is busy... I fixed some tests. Could you review this or assign a new reviewer?

masayuki038 avatar Jul 30 '24 18:07 masayuki038

@wlach Do you have time/interest to look over this one? :smile:

justinclift avatar Aug 01 '24 06:08 justinclift

@eradman Do you have time to look over this one? It seems a bit more urgent than some of the other PRs around, as people are emailing me directly about this one to ask. :wink:

justinclift avatar Aug 01 '24 19:08 justinclift

@eradman Do you have time to look over this one? It seems a bit more urgent than some of the other PRs around, as people are emailing me directly about this one to ask. 😉

I don't have enough knowledge about MongoDB to provide useful input on this. Perhaps merge it and ask for feedback?

eradman avatar Aug 01 '24 19:08 eradman

Good idea, lets do that. :smile:

justinclift avatar Aug 01 '24 22:08 justinclift

@masayuki038 Thanks for taking the time to get this over the line. :smile:

justinclift avatar Aug 01 '24 22:08 justinclift

@justinclift @eradman Thanks for your reviews! I checked it on local, but let me know if someone reported some issues around this. I am checking github every day 😄 Thank you.

masayuki038 avatar Aug 02 '24 00:08 masayuki038

Will do @masayuki038. :smile:

justinclift avatar Aug 02 '24 01:08 justinclift

@justinclift @masayuki038 it is working very well now! thank you very much guys!

jagal17 avatar Aug 03 '24 07:08 jagal17