masterPortfolio
masterPortfolio copied to clipboard
All the Organization are not displayed where I contributed in Open Source section
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]
for more reference, in my GitHub profile it listed other org also like below screenshot [Image 2nd]
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
is there any update on this issue?
Tagging @dhruvkrishnavaid @ashutosh1919
Not yet
@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.
okay, will do so :) Thanks for the update.
@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.
Would like to take this up @ashutosh1919, please do assign this to me!
@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 yes please go ahead.
Raised a PR #199