Commit graph

192 commits

Author SHA1 Message Date
Alexandr Garbuzov
1c07f4142c
feature: fetch only requested data from GitHub GraphQL API to reduce load (#3208)
* feature: fetch only requested data from GitHub GraphQL API to reduce load

* dev

* dev
2023-10-13 22:14:06 +03:00
Alexandr Garbuzov
428e97bfcc
Add performance tests base (#3141)
* Add basic bench tests

* dev
2023-10-13 11:27:04 +02:00
Alexandr Garbuzov
0fd1ea3ce9
feature: do not aks user's to open issues on upstream API errors (#3273)
Co-authored-by: rickstaa <rick.staa@outlook.com>
2023-10-13 11:16:14 +02:00
Alexandr Garbuzov
65c3300189
refactor(stats card fetcher): improve could not fetch total commits error message (#3255) 2023-09-21 20:30:24 +02:00
Alexandr Garbuzov
12f84f89c8
tests: add top langs endpoint proper cache header test (#3269) 2023-09-21 20:24:28 +02:00
Alexandr Garbuzov
41a2ba8cbe
tests: add pin endpoint proper cache header test (#3260) 2023-09-20 15:29:45 +02:00
Alexandr Garbuzov
2ee803fc16
feature: extend default card cache time to 6 hours (#3242)
* feature: extend default card cache time to 8 hours

* reduce to six hours
2023-09-19 11:54:27 +02:00
Rick Staa
bc8eaecaf4
feat: rate limit error chaching (#2448)
* feat: rate limit error chaching

Rate limit error caching to alleviate PATs.

* refactor: improve code comments
2023-09-17 15:45:17 +02:00
Alexandr Garbuzov
64f56e88b4
refactor: change confusing behavior of showing 0 commints when upstream API fails (#3238) 2023-09-17 11:14:40 +02:00
Alexandr Garbuzov
ef0ec6e26b
refactor: use more clear retryer error message (2) (#3227) 2023-09-14 10:47:00 +02:00
Alexandr Garbuzov
81f030fd1c
tests(stats card fetcher): add upstream API error test when include_all_commits true (#3186) 2023-09-12 11:54:57 +03:00
Alexandr Garbuzov
c42798b39e
refactor: enable curly eslint rule (#3137) 2023-09-12 10:06:01 +02:00
Alexandr Garbuzov
7a6ed4d8a8
tests: add missing card set title test (#3190) 2023-09-04 10:11:28 +02:00
Alexandr Garbuzov
438ffb5ee8
tests: add I18n class tests (#3188) 2023-09-01 08:36:23 +02:00
Alexandr Garbuzov
cb037aefd8
Tests: Stats card: Add hide all stats and rank icon test (#3149) 2023-08-28 09:12:18 +02:00
Alexandr Garbuzov
b6156a8688
Tests: Add pin endpoint missing params test (#3151) 2023-08-27 09:55:31 +02:00
Alexandr Garbuzov
1c91d1ac43
tests: add gist endpoint proper cache header test (#3152) 2023-08-27 09:55:02 +02:00
Alexandr Garbuzov
eab5fc0274
Tests: Stats card: Add invalid username fetcher test (#3148) 2023-08-26 09:53:21 +02:00
Alexandr Garbuzov
e8b9ccf203
tests: add pin endpoint wrong locale test (#3143) 2023-08-25 09:21:12 +02:00
Alexandr Garbuzov
2cf933c81a
Tests: Add top langs endpoint wrong locale test (#3142) 2023-08-25 09:20:31 +02:00
Alexandr Garbuzov
5c688f9e7c
Tests: Add pin endpoint blacklist test (#3136) 2023-08-24 08:08:22 +02:00
Alexandr Garbuzov
4ccad77d44
Tests: Add top langs endpoint blacklist test (#3135) 2023-08-24 07:39:38 +02:00
Alexandr Garbuzov
a5ddf2632b
Tests: Add index endpoint wrong locale test (#3131) 2023-08-23 14:26:04 +02:00
Alexandr Garbuzov
988044a199
Tests: Add index endpoint blacklist test (#3130) 2023-08-23 09:58:21 +02:00
Alexandr Garbuzov
4cf33ad1bf
Tests: Add gist endpoint wrong locale test (#3127) 2023-08-22 09:03:59 +02:00
Alexandr Garbuzov
fb45135b4f
tests: reduce size of wakatime fetcher test (#3111) 2023-08-22 09:03:34 +02:00
Alexandr Garbuzov
0ac5280ba6
Top langs card: Remove unreachable code from fetcher and increase tests coverage (#3126) 2023-08-22 09:00:56 +02:00
Alexandr Garbuzov
272c712a36
tests: Add Wakatime fetcher error response test to increase coverage (#3112) 2023-08-21 09:09:18 +02:00
Alexandr Garbuzov
4e69e3a358
Tests: Add gist endpoint not found test (#3110) 2023-08-21 09:07:47 +02:00
Alexandr Garbuzov
03b0adc8b7
Tests: Add gist endpoint missing id param test (#3106) 2023-08-20 09:58:48 +02:00
Alexandr Garbuzov
93733caaa6
Gist card: handle not found error (#3100) 2023-08-20 09:58:16 +02:00
Alexandr Garbuzov
9cb275f4ca
Tests: Improve fetch gist test to increase coverage (#3107)
* Tests: Improve fetch gist test to increase coverage

* dev
2023-08-20 09:57:16 +02:00
Alexandr Garbuzov
2e619cc8a8
feat(gist): handle missing param error (#3101) 2023-08-19 08:35:52 +02:00
Alexandr Garbuzov
ea79314a85
Tests: Cover gist endpoint (#3097) 2023-08-18 09:45:01 +02:00
Alexandr Garbuzov
5afd97a94b
Tests: Gist card: Add more render tests (#3087) 2023-08-17 09:42:44 +02:00
Alexandr Garbuzov
101f56c4bd
Refactor: Tests: Rename renderTopLanguages.test.js file for consistency (#3088) 2023-08-17 09:42:16 +02:00
Alexandr Garbuzov
9174e79fc2
Tests: Gist card: Add more tests to check if emojis, themes and colors works properly (#3085) 2023-08-16 09:45:20 +02:00
Alexandr Garbuzov
fe901dd337
Feature: Add gist card (#3064)
* Feature: Add gist card

* dev

* dev

* dev

* dev

* dev

* dev

* e2e

* e2e test timeout
2023-08-14 11:28:01 +02:00
Alexandr Garbuzov
a258b29db5
Feature: Stats card: Show merged PRs count and percentage (#3003)
* Feature: Stats card: Show merged PRs count and percentage

* dev

* dev

* renames
2023-08-14 02:18:57 +03:00
Alexandr Garbuzov
b56689b4bd
Ranks: Take into account user reviewed PRs count (#2857)
* Rank: Take into account user reviewed PRs count

* e2e

* fix tests

* dev

* docs

* dev

* dev
2023-07-21 13:59:53 +02:00
Alexandr Garbuzov
6c92fe9d2a
Eslint integration (#2885)
* eslint integration

* ci & pre commit

* dev

* dev

* dev
2023-07-03 08:54:19 +02:00
Alexandr Garbuzov
9f7184cc9e
Top langs card tests: Fixed helper functions docstrings (#2893) 2023-06-28 20:25:26 +02:00
Alexandr Garbuzov
5486e2ca06
Increase e2e tests timeout secs (#2878) 2023-06-23 09:24:17 +02:00
Rick Staa
2642fc546c
add percentile rank icon (#2859)
* feat: add 'percentile' rank icon

This commit adds the `percentile` option for the `rank_icon` query
variable. This option displays the rank percentile the user belongs to.

* style: improve percentile rank icon styling

* dev

* dev

* dev

---------

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
2023-06-20 08:47:02 +02:00
Rick Staa
a362af0ebc
feat: add 'progress' rank icon (#2858)
This pull request allows users to replace the rank level with the rank progress
by setting the `rank_icon` query to `progress`.
2023-06-19 12:58:02 +02:00
Alexandr Garbuzov
92518e375f
Stats card: show started and answered discussions stats (#2849)
* Stats card: show started and answered discussions stats

* trans

* dev
2023-06-19 05:51:58 +02:00
Alexandr Garbuzov
b70b089b8e
Stats card: migrate from show_total_reviews to show option (resolves #2836) (#2844)
* Stats card: migrate from show_total_reviews to show option (resolves #2836)

* dev

* docs: improve documentation

---------

Co-authored-by: rickstaa <rick.staa@outlook.com>
2023-06-17 23:10:13 +03:00
Alexandr Garbuzov
99aca1b6d5
Fixed docstring for trimTopLanguages function (#2833)
* Fixed docstring for trimTopLanguages function

* dev
2023-06-16 09:25:46 +02:00
Markus Tyrkkö
1bb65ddc29
Added pr reviews to stats (#1404)
* Added pr reviews to stats

* Add 'show' query parameter

* Fix show test

* refactoring

* cleanup

* refactor: restructure stats-card code

---------

Co-authored-by: Markus <markus.tyrkko@gmail.com>
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: rickstaa <rick.staa@outlook.com>
2023-06-15 09:35:09 +02:00
Rick Staa
9831d254d7
test: update 2e2 rank values (#2816)
This commit ensures the new rank values introduced by #2762 are added
to the 2e2 test.
2023-06-13 16:58:30 +03:00