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

All the Organization are not displayed where I contributed in Open Source section #159

Open
NirmalSilwal opened this issue Oct 8, 2021 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@NirmalSilwal
Copy link

Hello @dhruvkrishnavaid @ashutosh1919

In my masterportfolio, in Open Source section, all the organization are not displayed where I contributed but I can see the activity (PR or issue) in the list.

Why might have that happened? It is only displaying few org but I have contributed to other org also. So I was wondering if that org list is filtered by particular time frame of contribution or anything else?

Attaching screenshot for reference - [Image 1st]

capture1

for more reference, in my GitHub profile it listed other org also like below screenshot [Image 2nd]

capture2

I was wondering why they're not displayed in the masterportfolio as shown in above first image in contributed organizations list?

attaching screenshot of my open source tab where you can see that I contributed in other org also but they are not displayed in the org list as in 1st image

cap3

cap34

@NirmalSilwal
Copy link
Author

is there any update on this issue?

Tagging @dhruvkrishnavaid @ashutosh1919

@dhruvkrishnavaid
Copy link
Contributor

Not yet

@dhruvkrishnavaid
Copy link
Contributor

@NirmalSilwal After some digging through the Github's GraphQL docs, I've found that Github allows fetching of only last 100 records on the repositoriesContributedTo. So, sadly, there's nothing we can do about it. You'd need to manually write them to shared/opensource/organizations.json.

I suggest you to create a separate file, and write the json there, so every time you run node git_data_fetcher.mjs, you can copy and paste it to shared/opensource/organizations.json. This will save you some time.

@NirmalSilwal
Copy link
Author

okay, will do so :)
Thanks for the update.

@ashutosh1919
Copy link
Owner

@NirmalSilwal , @dhruvkrishnavaid I digged into this issue when the same problem occurred to me but unfortunately I did not get enough time to implement it. The way we can solve this problem is to fetch the latest entries only and then append over existing entries which are not currently present in our local json file. The primary key will be the id returned by the api. If anybody creates such script, I would appreciate if you can raise PR here as well.

@saiteja13427
Copy link
Collaborator

Would like to take this up @ashutosh1919, please do assign this to me!

@saiteja13427
Copy link
Collaborator

@ashutosh1919 I am almost done writing this script.

What should we do when someone runs it for the first time? Because for the first time, the files will have your data and we shouldn't append to it right. So, shall we have a hardcoded check for the first id and if it matches your datas' first id, then we delete everything otherwise append.

Does that sound good?

@ashutosh1919
Copy link
Owner

@saiteja13427 yes please go ahead.

@saiteja13427
Copy link
Collaborator

Raised a PR #199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants