masterPortfolio icon indicating copy to clipboard operation
masterPortfolio copied to clipboard

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

Open NirmalSilwal opened this issue 3 years ago • 9 comments

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 avatar Oct 08 '21 16:10 NirmalSilwal

is there any update on this issue?

Tagging @dhruvkrishnavaid @ashutosh1919

NirmalSilwal avatar Oct 26 '21 04:10 NirmalSilwal

Not yet

dhruvkrishnavaid avatar Oct 28 '21 12:10 dhruvkrishnavaid

@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.

dhruvkrishnavaid avatar Dec 17 '21 05:12 dhruvkrishnavaid

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

NirmalSilwal avatar Dec 17 '21 05:12 NirmalSilwal

@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.

ashutosh1919 avatar Dec 17 '21 14:12 ashutosh1919

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

saiteja13427 avatar May 21 '22 17:05 saiteja13427

@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?

saiteja13427 avatar May 24 '22 03:05 saiteja13427

@saiteja13427 yes please go ahead.

ashutosh1919 avatar May 26 '22 03:05 ashutosh1919

Raised a PR #199

saiteja13427 avatar May 27 '22 03:05 saiteja13427