Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can select members from github_organization but not member_logins closes #80 #81

Merged
merged 1 commit into from
Oct 26, 2021

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Oct 26, 2021

Integration test logs

Logs
N/A

Example query results

Results
select jsonb_array_elements(members) from github_organization where login = 'turbot';
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| jsonb_array_elements                                                                                                                                                                                    
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| {"avatar_url":"https://avatars.githubusercontent.com/u/32060149?v=4","events_url":"https://api.github.com/users/abhiturbot/events{/privacy}","followers_url":"https://api.github.com/users/abhiturbot/fo
| {"avatar_url":"https://avatars.githubusercontent.com/u/78197905?v=4","events_url":"https://api.github.com/users/bigdatasourav/events{/privacy}","followers_url":"https://api.github.com/users/bigdatasou
| {"avatar_url":"https://avatars.githubusercontent.com/u/1114038?v=4","events_url":"https://api.github.com/users/binaek/events{/privacy}","followers_url":"https://api.github.com/users/binaek/followers",
| {"avatar_url":"https://avatars.githubusercontent.com/u/17007758?v=4","events_url":"https://api.github.com/users/bob-bot/events{/privacy}","followers_url":"https://api.github.com/users/bob-bot/follower
| {"avatar_url":"https://avatars.githubusercontent.com/u/45350738?v=4","events_url":"https://api.github.com/users/c0d3r-arnab/events{/privacy}","followers_url":"https://api.github.com/users/c0d3r-arnab/
| {"avatar_url":"https://avatars.githubusercontent.com/u/12363488?v=4","events_url":"https://api.github.com/users/cbruno10/events{/privacy}","followers_url":"https://api.github.com/users/cbruno10/follow
| {"avatar_url":"https://avatars.githubusercontent.com/u/54130?v=4","events_url":"https://api.github.com/users/dboeke/events{/privacy}","followers_url":"https://api.github.com/users/dboeke/followers","f
| {"avatar_url":"https://avatars.githubusercontent.com/u/1328145?v=4","events_url":"https://api.github.com/users/e-gineer/events{/privacy}","followers_url":"https://api.github.com/users/e-gineer/followe
| {"avatar_url":"https://avatars.githubusercontent.com/u/6843140?v=4","events_url":"https://api.github.com/users/johnsmyth/events{/privacy}","followers_url":"https://api.github.com/users/johnsmyth/follo
| {"avatar_url":"https://avatars.githubusercontent.com/u/46509?v=4","events_url":"https://api.github.com/users/judell/events{/privacy}","followers_url":"https://api.github.com/users/judell/followers","f
| {"avatar_url":"https://avatars.githubusercontent.com/u/2838960?v=4","events_url":"https://api.github.com/users/kaidaguerre/events{/privacy}","followers_url":"https://api.github.com/users/kaidaguerre/f
| {"avatar_url":"https://avatars.githubusercontent.com/u/46913995?v=4","events_url":"https://api.github.com/users/khushboo9024/events{/privacy}","followers_url":"https://api.github.com/users/khushboo902
| {"avatar_url":"https://avatars.githubusercontent.com/u/37527306?v=4","events_url":"https://api.github.com/users/LalitTurbot/events{/privacy}","followers_url":"https://api.github.com/users/LalitTurbot/
| {"avatar_url":"https://avatars.githubusercontent.com/u/782162?v=4","events_url":"https://api.github.com/users/MichaelBurgess/events{/privacy}","followers_url":"https://api.github.com/users/MichaelBurg
| {"avatar_url":"https://avatars.githubusercontent.com/u/47312748?v=4","events_url":"https://api.github.com/users/misraved/events{/privacy}","followers_url":"https://api.github.com/users/misraved/follow
| {"avatar_url":"https://avatars.githubusercontent.com/u/47887552?v=4","events_url":"https://api.github.com/users/ParthaI/events{/privacy}","followers_url":"https://api.github.com/users/ParthaI/follower
| {"avatar_url":"https://avatars.githubusercontent.com/u/25396636?v=4","events_url":"https://api.github.com/users/priguha93/events{/privacy}","followers_url":"https://api.github.com/users/priguha93/foll
| {"avatar_url":"https://avatars.githubusercontent.com/u/45908484?v=4","events_url":"https://api.github.com/users/pskrbasu/events{/privacy}","followers_url":"https://api.github.com/users/pskrbasu/follow
| {"avatar_url":"https://avatars.githubusercontent.com/u/26873346?v=4","events_url":"https://api.github.com/users/rajlearner17/events{/privacy}","followers_url":"https://api.github.com/users/rajlearner1
| {"avatar_url":"https://avatars.githubusercontent.com/u/92660378?v=4","events_url":"https://api.github.com/users/shivani1982/events{/privacy}","followers_url":"https://api.github.com/users/shivani1982/
| {"avatar_url":"https://avatars.githubusercontent.com/u/57944416?v=4","events_url":"https://api.github.com/users/siddharthaturbot/events{/privacy}","followers_url":"https://api.github.com/users/siddhar
| {"avatar_url":"https://avatars.githubusercontent.com/u/38218418?v=4","events_url":"https://api.github.com/users/Subhajit97/events{/privacy}","followers_url":"https://api.github.com/users/Subhajit97/fo
| {"avatar_url":"https://avatars.githubusercontent.com/u/38211164?v=4","events_url":"https://api.github.com/users/subham9418/events{/privacy}","followers_url":"https://api.github.com/users/subham9418/fo
| {"avatar_url":"https://avatars.githubusercontent.com/u/3137485?v=4","events_url":"https://api.github.com/users/vhadianto/events{/privacy}","followers_url":"https://api.github.com/users/vhadianto/follo
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

select jsonb_array_elements_text(member_logins) from github_organization where login = 'turbot';
Time: 12.222978ms
+---------------------------+
| jsonb_array_elements_text |
+---------------------------+
| abhiturbot                |
| bigdatasourav             |
| binaek                    |
| bob-bot                   |
| c0d3r-arnab               |
| cbruno10                  |
| dboeke                    |
| e-gineer                  |
| johnsmyth                 |
| judell                    |
| kaidaguerre               |
| khushboo9024              |
| LalitTurbot               |
| MichaelBurgess            |
| misraved                  |
| ParthaI                   |
| priguha93                 |
| pskrbasu                  |
| rajlearner17              |
| shivani1982               |
| siddharthaturbot          |
| Subhajit97                |
| subham9418                |
| vhadianto                 |
+---------------------------+

Note: if organization does not exit

select jsonb_array_elements(member_logins) from github_organization where login = 'turbot1';
+----------------------+
| jsonb_array_elements |
+----------------------+
+----------------------+

@ParthaI ParthaI self-assigned this Oct 26, 2021
@ParthaI ParthaI linked an issue Oct 26, 2021 that may be closed by this pull request
Copy link

@rajlearner17 rajlearner17 left a comment

Choose a reason for hiding this comment

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

LGTM

@rajlearner17 rajlearner17 removed the request for review from khushboo9024 October 26, 2021 10:28
@rajlearner17 rajlearner17 merged commit 33280d7 into main Oct 26, 2021
@rajlearner17 rajlearner17 deleted the issue-80 branch October 26, 2021 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

can select members from github_organization but not member_logins
2 participants