tap-mongodb icon indicating copy to clipboard operation
tap-mongodb copied to clipboard

If a user has multiple roles that are able to find databases then the…

Open nathan5280 opened this issue 4 years ago • 2 comments

… database was returned in the list multiple times.

This patch removes duplicates instances of the data base from the list of discovered databases.

Description of change

remove duplicates from list of db names.

db_names = list(set(db_names))

# QA steps
 - [ ] automated tests passing
 - [ X] manual qa steps passing (list below)
       Ran locally to verify that the catalog only contained a single entry for the stream.
 
# Risks

# Rollback steps
 - revert this branch

nathan5280 avatar Jan 11 '21 20:01 nathan5280

Hi @nathan5280, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

cmerrick avatar Jan 11 '21 20:01 cmerrick

You did it @nathan5280!

Thank you for signing the Singer Contribution License Agreement.

cmerrick avatar Jan 11 '21 20:01 cmerrick