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

Languages for each project #139

Open
aljesusg opened this issue Mar 27, 2018 · 6 comments
Open

Languages for each project #139

aljesusg opened this issue Mar 27, 2018 · 6 comments

Comments

@aljesusg
Copy link
Contributor

Like opensource contributor would be great see the programming languages ​​of each repo, future contributors can search by program language to see in which projects can collaborate.

It's only add to the projects hash an array of languages and we can shown them with some opensource icon library like Devicon or font-mfizz with a tooltip with the languages.

What do you think?

@aljesusg aljesusg changed the title Languages for each repo Languages for each project Mar 27, 2018
@Fryguy
Copy link
Member

Fryguy commented Apr 25, 2018

Might be able to pull this information from GitHub itself - see https://developer.github.com/v3/repos/#list-languages

@aljesusg
Copy link
Contributor Author

Hi @Fryguy ^^ nice to see you again, Yes we can pull the information my question is if I can do this improve.

@Fryguy
Copy link
Member

Fryguy commented Apr 25, 2018

@castastrophe Thoughts on this? I like the idea, but I'm not sure how to present it in a nice way.

@frcr
Copy link

frcr commented Dec 2, 2020

I have somewhat workable solution for this, although I came up with a few questions regarding best approach.

tl;dr: Should we pull languages dynamically at every launch user-side or store them in repo, updating from time to time through commits?

  1. The idea of this project seems for it to be self-contained, i.e. decoupled from external sources (apart from some external css's and fonts). Pulling individual language statistics per each repo from github API seems to break this restriction.

  2. Github imposes a limit of 60/hour on the number of anonymous calls to its API. The number of required calls to pull language statistics far exceeds this. For authorized requests the limit goes up to 5000/hour, which would cover our needs, but requires a token.

  3. My current solution, while solving the aforementioned problems, suffers from its own: I have a python script that pulls down all the needed info once and updates all the projects in the ./app/data/projects.json file with an additional field "languages" showing their names and usage percentages per project (for multirepo projects it's percentage across all repos). This allows for perfect decoupling and removes the whole token/authorization burden from the end user. But it will require periodic updates from maintainers and whoever adds a new project to the list will have to either provide their own data or launch the script once so that it updates the newly added project with language statistics.

I updated the dynamictable.html template to accommodate for this new field. I'm not a designer, so it ain't pretty, but not eye-bleedingly ugly either.

@bproffitt
Copy link
Member

Okay, so the point of this page is to highlight projects in which Red Hat participates. Adding language information is helpful, but if we go this direction, now the site becomes more utilitarian in its mission. To be clear, this is not a bad thing. In fact, there is an upcoming effort from my team that will be highlighting lots of projects for ease of onboarding, so this feature could be ported to or from that project's outlet.

@FirdausJawed
Copy link

Is this issue is for adding the highlights of the projects in which red hat is participating?

can i work upon it?

can you tell me where to get started?

really interested in this project

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

No branches or pull requests

5 participants