Dawid Wysokiński
0562b06758
bump github.com/tribalwarshelp/shared
2022-02-18 12:53:30 +01:00
Dawid Wysokiński
fd9c943df4
update go:generate in graphql.go
2021-11-12 17:56:57 +01:00
Dawid Wysokiński
ff73010c5c
fix: add missing id fields
2021-07-05 18:49:01 +02:00
Dawid Wysokiński
8e99a5511e
fix: invalid path to the models in the gqlgen.yml
2021-06-04 19:16:20 +02:00
Dawid Wysokiński
776965bf78
chore: add gqlgen to the go.mod and run go generate in the Dockerfile
2021-06-04 19:09:33 +02:00
Dawid Wysokiński
44c90d0efc
dataloader - set maxBatch to 200 and wait to 2 milliseconds
2021-05-10 23:15:55 +02:00
Dawid Wysokiński
6a44193f31
slices - use nil declaration
2021-05-05 19:58:45 +02:00
Dawid Wysokiński
49b407ed23
use errors.New where it is possible instead of fmt.Errorf
2021-05-05 19:49:00 +02:00
Dawid Wysokiński
0a271d1255
bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/map-generator
2021-05-05 19:32:45 +02:00
Dawid Wysokiński
81e033333e
increase query complexity
2021-04-22 19:49:50 +02:00
Dawid Wysokiński
c51abee565
decrease query complexity
2021-04-22 19:34:47 +02:00
Dawid Wysokiński
8a35defe97
decrease query cache size
2021-03-24 05:31:53 +01:00
Dawid Wysokiński
f3af613d2b
update ServerStatus enum
2021-03-24 05:15:47 +01:00
Dawid Wysokiński
b1a22709ee
move total field complexity for all queries to constants
2021-03-22 17:34:18 +01:00
Dawid Wysokiński
02543544df
[GetComplexityRoot] update totalFieldComplexity in queries, complexity for all total fields is calculated by getCountComplexity
2021-03-22 17:02:21 +01:00
Dawid Wysokiński
a291c01a8c
move getComplexityRoot from the httpdelivery package to a new package querycomplexity
2021-03-22 16:38:00 +01:00
Dawid Wysokiński
813a109df0
update algorithm that computes query complexity
2021-03-21 14:25:38 +01:00
Dawid Wysokiński
2ab58084b3
increase complexity limity
2021-03-21 13:59:42 +01:00
Dawid Wysokiński
1ad19d63b0
increase limit
2021-03-21 13:46:05 +01:00
Dawid Wysokiński
1a63e5fa91
add the 'Select' option to the FetchConfigs
2021-03-21 13:03:39 +01:00
Dawid Wysokiński
8cd2a928a1
remove query ('LiveEnnoblement')
2021-03-21 11:51:47 +01:00
Dawid Wysokiński
d85e11ca9a
decrease version.FetchLimit from 100 to 30, update a formula that calculate query complexity
2021-03-21 08:05:02 +01:00
Dawid Wysokiński
8d4ce284f5
move safeStrPointer and safeIntPointer from the resolvers package to the utils package
2021-03-21 07:50:19 +01:00
Dawid Wysokiński
1f3450cfca
rename PaginationLimit -> FetchLimit
2021-03-21 07:42:12 +01:00
Dawid Wysokiński
95dbbc4d8a
rename utils.SanitizeSortExpressions -> utils.SanitizeSorts, add query complexity limit
2021-03-20 18:13:45 +01:00
Dawid Wysokiński
f7f71e5b6c
- bump github.com/tribalwarshelp/shared
...
- delete liveennoblement usecase/repository
- query `liveEnnoblements` is deprecated
2021-01-15 18:59:24 +01:00
Dawid Wysokiński
3c7531a5ac
bump github.com/tribalwarshelp/shared, add a new field to the Player GraphQL model (LastActivityAt)
2021-01-09 15:05:16 +01:00
Dawid Wysokiński
95768c7dc2
update cache-control header
2021-01-08 23:14:13 +01:00
Dawid Wysokiński
f0a6374ddd
bump github.com/tribalwarshelp/shared | add two new fields to the TribeFilterOr input model (tag, name)
2021-01-08 18:23:18 +01:00
Dawid Wysokiński
3a7f608e14
bump github.com/tribalwarshelp/shared, github.com/tribalwarshelp/map-generator and go-pg
2021-01-06 17:43:02 +01:00
Dawid Wysokiński
2448eebdf0
GraphQL Schema - VersionCode is case-insensitive
2021-01-02 13:06:57 +01:00
Dawid Wysokiński
47aca26fd1
add support for the Slovak version
2021-01-01 16:13:49 +01:00
Dawid Wysokiński
6fc64fadbf
- bump github.com/tribalwarshelp/map-generator and github.com/tribalwarshelp/shared
...
- add one new field to the PlayerFilter and VillageFilter
server map generator:
- make player village color configurable
- make barbarian village color configurable
- fix issue with missing villages
- refactor map_usecase.GetMarkers
2020-12-30 17:04:40 +01:00
Dawid Wysokiński
f6009dacb2
remove deprecated LangVersion
2020-12-25 12:42:46 +01:00
Dawid Wysokiński
4a58bff0f6
resolvers refactor (add 3 new helpers - safeStrPointer, safeIntPointer and shouldCount)
2020-12-25 12:13:12 +01:00
Dawid Wysokiński
4bccaab85d
add 2 new queries - SearchTribe and SearchPlayer + bump github.com/tribalwarshelp/shared
2020-12-25 12:07:54 +01:00
Dawid Wysokiński
fb84bdbc55
[WIP] - refactor limit, sort, offset
...
- update the Version/Village repository and usecase
2020-11-21 12:34:25 +01:00
Dawid Wysokiński
c18807c2f5
[WIP] - refactor limit, sort, offset
...
- update the ServerStats/Tribe/TribeChange/TribeHistory repository and usecase
2020-11-21 12:01:16 +01:00
Dawid Wysokiński
05efc69b31
[WIP] - refactor limit, sort, offset
...
- update the Server/PlayerHistory repository and usecase
2020-11-21 10:50:52 +01:00
Dawid Wysokiński
a854a4b80a
[WIP] - refactor limit, sort, offset
...
- update the Player/Ennoblement repository and usecase
2020-11-21 10:08:22 +01:00
Dawid Wysokiński
01fdd80f7f
[WIP] - refactor limit, sort, offset
...
- rename middleware.MayExceedLimit to CanExceedLimit
- update the DailyTribeStats/DailyPlayerStats repository and usecase
- rename utils.SanitizeSort to utils.SanitizeSortExpression
- add two new utils - SanitizeSortExpressions and FindStringWithPrefix
2020-11-21 09:13:25 +01:00
Dawid Wysokiński
c32e988e71
bump github.com/tribalwarshelp/shared
2020-11-07 08:40:53 +01:00
Dawid Wysokiński
518d365191
langVersion is deprecated
2020-11-07 08:13:19 +01:00
Dawid Wysokiński
e0ab8a538a
delete depreacted directive
2020-11-06 21:19:54 +01:00
Dawid Wysokiński
00f824e706
bump github.com/tribalwarshelp/shared
2020-11-06 20:23:12 +01:00
Dawid Wysokiński
ad2f56ad73
bump github.com/tribalwarshelp/shared + refactor liveenoblement repository
2020-10-31 12:33:01 +01:00
Dawid Wysokiński
b08a067537
add opportunity to filter villages by XY
2020-08-09 15:10:44 +02:00
Dawid Wysokiński
1cb75d0c15
bump github.com/tribalwarshelp/shared, add new language tags
2020-07-21 11:49:38 +02:00
Dawid Wysokiński
cfd5cbfb69
add or filter to TribeChange | bump github.com/tribalwarshelp/shared
2020-07-18 11:16:37 +02:00
Dawid Wysokiński
b3529e4a54
extend DailyTribeStatsFilter and DailyPlayerStatsFilter | ennoblement pg_repository is now appending EnnoblementFilterOr | update schema | update github.com/tribalwarshelp/shared
2020-07-17 11:52:42 +02:00