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

[Feature request] Add repository size to index #27

Closed
smacker opened this issue Feb 28, 2018 · 5 comments
Closed

[Feature request] Add repository size to index #27

smacker opened this issue Feb 28, 2018 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@smacker
Copy link

smacker commented Feb 28, 2018

It would be very useful (at least for me) to have size of repository in bytes in csv file.

@bzz bzz changed the title [Feature request] Add repository size in index [Feature request] Add repository size to index Mar 18, 2018
@bzz
Copy link
Contributor

bzz commented Mar 27, 2018

As a user, I would really like to to have this information.

It would also simplify preparation for demos of source{d}.

\cc @vmarkovtsev @ajnavarro @campoy to triage.

@vmarkovtsev
Copy link
Collaborator

I am +1

@campoy
Copy link
Contributor

campoy commented Apr 4, 2018

That's a good idea, indeed. From the pga tool point of view there's no problem adding this extra piece of information.

I think the hard part is going to be adding this data into the index.

@smola smola added the enhancement New feature or request label Jul 25, 2018
@mcarmonaa mcarmonaa self-assigned this Feb 27, 2019
@mcarmonaa
Copy link
Contributor

I've been having a look at this and I ran into a couple of question/problems:

  • the required size, is it the original repository's size?
    If so, it's not easy to include that info in the index. The repositories are downloaded by borges, aggregated in rooted repos and archived in siva files. Therefore that information isn't collected in any form. To get the original size, would we have to clone each repo again without making use of borges?

  • the required size, is the size of the siva file?
    if so, since repositories can be split into different rooted repositories (then into different siva files too) we can either add the size of each of the siva files needed to retrieve the complete repository or the sum of all of them so you'd know that as the most you have to download X bytes for a certain repository.

cc @src-d/data-retrieval

@smacker
Copy link
Author

smacker commented Feb 28, 2019

jfyi: You call GitHub api to get stars. In the response you also have "original size".

When I was creating the issue I most probably meant the size of sivas.

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

6 participants