8000 Change language statistics to save size instead of percentage by lafriks · Pull Request #11681 · go-gitea/gitea · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Change language statistics to save size instead of percentage #11681

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

Merged
merged 4 commits into from
May 30, 2020

Conversation

lafriks
Copy link
Member
@lafriks lafriks commented May 29, 2020

Closes #11672

Fixes #10567

Co-Authored-By: Cirno the Strongest 1447794+CirnoT@users.noreply.github.com

@lafriks lafriks added type/enhancement An improvement of existing functionality backport/v1.12 labels May 29, 2020
@lafriks lafriks added this to the 1.13.0 milestone May 29, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 29, 2020
@lafriks lafriks force-pushed the fix/langstats_storage branch from c9baf71 to c5007df Compare May 29, 2020 18:27
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 29, 2020
@silverwind
Copy link
Member

How does this fix the case of yarn.lock exactly?

@lafriks
Copy link
Member Author
lafriks commented May 29, 2020

@silverwind what do you mean

@silverwind
Copy link
Member

You linked #11672 but I fail to see how it's related.

@CirnoT
Copy link
Contributor
CirnoT commented May 29, 2020

@silverwind It includes fix from #11672 along with necessary changes, so that there is no need to resolve merge conflicts for either of PRs.

@silverwind
Copy link
Member

Ah, missed that. Carry on.

@zeripath
Copy link
Contributor

@lafriks needs an update

< 8000 /div>
@lafriks lafriks force-pushed the fix/langstats_storage branch from c5007df to 995d265 Compare May 29, 2020 23:01
@lafriks
Copy link
Member Author
lafriks commented May 29, 2020

@zeripath fixed some edge cases with special languages, should pass tests now

@lafriks
Copy link
Member Author
8000 lafriks commented May 30, 2020

make lg-tm work

@lafriks lafriks merged commit ea4c139 into go-gitea:master May 30, 2020
@lafriks lafriks deleted the fix/langstats_storage branch May 30, 2020 07:46
@lafriks lafriks added the backport/done All backports for this PR have been created label May 30, 2020
lafriks added a commit to lafriks-fork/gitea that referenced this pull request Jun 1, 2020
…ea#11681)

* Change language statistics to save size instead of percentage in database

Co-Authored-By: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>

* Do not exclude if only language

* Fix edge cases with special langauges

Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>
lafriks added a commit that referenced this pull request Jun 2, 2020
#11690)

* Change language statistics to save size instead of percentage (#11681)

* Change language statistics to save size instead of percentage in database

Co-Authored-By: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>

* Do not exclude if only language

* Fix edge cases with special langauges

Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>

* Fix language stat calculation (#11692)

* Fix language stat calculation

* Group languages and ignore 0 size files

* remove unneeded code

Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>
ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
…ea#11681)

* Change language statistics to save size instead of percentage in database

Co-Authored-By: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>

* Do not exclude if only language

* Fix edge cases with special langauges

Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hide SVG (or more) from language stats panel.
5 participants
0