Commit Graph

169 Commits

Author SHA1 Message Date
a291c01a8c move getComplexityRoot from the httpdelivery package to a new package querycomplexity 2021-03-22 16:38:00 +01:00
813a109df0 update algorithm that computes query complexity 2021-03-21 14:25:38 +01:00
2ab58084b3 increase complexity limity 2021-03-21 13:59:42 +01:00
1ad19d63b0 increase limit 2021-03-21 13:46:05 +01:00
9659e2c01c
Merge pull request #11 from tribalwarshelp/repositories-select-option
Repositories - add 'select' option to FetchConfigs
2021-03-21 13:27:28 +01:00
7c1d5aeb59 fix server map generation 2021-03-21 13:21:24 +01:00
a19aaea6e7 update README.md 2021-03-21 13:11:28 +01:00
1a63e5fa91 add the 'Select' option to the FetchConfigs 2021-03-21 13:03:39 +01:00
b4ca01785f
Merge pull request #10 from tribalwarshelp/schema-cleanup
schema cleanup
2021-03-21 11:55:27 +01:00
3770640339 bump github.com/tribalwarshelp/shared 2021-03-21 11:54:50 +01:00
8cd2a928a1 remove query ('LiveEnnoblement') 2021-03-21 11:51:47 +01:00
fdff99b818
Merge pull request #9 from tribalwarshelp/query-complexity
query complexity
2021-03-21 09:19:21 +01:00
d85e11ca9a decrease version.FetchLimit from 100 to 30, update a formula that calculate query complexity 2021-03-21 08:05:02 +01:00
8d4ce284f5 move safeStrPointer and safeIntPointer from the resolvers package to the utils package 2021-03-21 07:50:19 +01:00
1f3450cfca rename PaginationLimit -> FetchLimit 2021-03-21 07:42:12 +01:00
95dbbc4d8a rename utils.SanitizeSortExpressions -> utils.SanitizeSorts, add query complexity limit 2021-03-20 18:13:45 +01:00
6074df3a06
Merge pull request #8 from tribalwarshelp/update-go-version-and-sh-scripts
Update go version in the go.mod file, move shell scripts to the new directory
2021-02-23 18:02:31 +01:00
44372ecc81 update go version in go.mod file, move shell scripts to the separated directory, add Makefile 2021-02-23 18:01:11 +01:00
4521570034
Merge pull request #7 from tribalwarshelp/circleci-project-setup
add .circleci/config.yml
2021-02-06 12:40:59 +01:00
34b4a98916 Add .circleci/config.yml 2021-02-06 12:39:55 +01:00
ec024059ad
Merge pull request #6 from tribalwarshelp/limit-whitelist-cidr
middleware.LimitWhitelist parses normal ip addresses as well as CIDR notation
2021-02-06 12:36:50 +01:00
3da7346f2a middleware.LimitWhitelist parses normal ip addresses as well as CIDR notation 2021-02-06 12:34:08 +01:00
f7f71e5b6c - bump github.com/tribalwarshelp/shared
- delete liveennoblement usecase/repository
- query `liveEnnoblements` is deprecated
2021-01-15 18:59:24 +01:00
2e92d09a2e update api error messages 2021-01-13 20:46:24 +01:00
309fe80868 update two error messages in server/version pg repositories 2021-01-13 20:28:24 +01:00
3c7531a5ac bump github.com/tribalwarshelp/shared, add a new field to the Player GraphQL model (LastActivityAt) 2021-01-09 15:05:16 +01:00
95768c7dc2 update cache-control header 2021-01-08 23:14:13 +01:00
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
c9c02ec4ac bump github.com/tribalwarshelp/shared 2021-01-06 17:49:56 +01:00
3a7f608e14 bump github.com/tribalwarshelp/shared, github.com/tribalwarshelp/map-generator and go-pg 2021-01-06 17:43:02 +01:00
2448eebdf0 GraphQL Schema - VersionCode is case-insensitive 2021-01-02 13:06:57 +01:00
47aca26fd1 add support for the Slovak version 2021-01-01 16:13:49 +01:00
2aa25126ee bump github.com/tribalwarshelp/map-generator 2020-12-30 18:34:39 +01:00
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
def2bc1356 change map quality 2020-12-27 14:20:59 +01:00
6d5e47c74a add one more column (tribe.tag) to the query that tribePGRepository.SearchTribe generates 2020-12-26 16:36:38 +01:00
f6009dacb2 remove deprecated LangVersion 2020-12-25 12:42:46 +01:00
4a58bff0f6 resolvers refactor (add 3 new helpers - safeStrPointer, safeIntPointer and shouldCount) 2020-12-25 12:13:12 +01:00
4bccaab85d add 2 new queries - SearchTribe and SearchPlayer + bump github.com/tribalwarshelp/shared 2020-12-25 12:07:54 +01:00
5aae1ca92f add import to main.go (strconv) 2020-12-22 18:23:46 +01:00
1b8fce636d make db pool size configurable 2020-12-22 18:20:03 +01:00
49b6c8a82e map_usecase - tribe markers should omit player markers 2020-12-20 19:22:00 +01:00
46f3240398 sort player name changes by changeDate 2020-12-04 19:55:28 +01:00
fb84bdbc55 [WIP] - refactor limit, sort, offset
- update the Version/Village repository and usecase
2020-11-21 12:34:25 +01:00
c18807c2f5 [WIP] - refactor limit, sort, offset
- update the ServerStats/Tribe/TribeChange/TribeHistory repository and usecase
2020-11-21 12:01:16 +01:00
05efc69b31 [WIP] - refactor limit, sort, offset
- update the Server/PlayerHistory repository and usecase
2020-11-21 10:50:52 +01:00
a854a4b80a [WIP] - refactor limit, sort, offset
- update the Player/Ennoblement repository and usecase
2020-11-21 10:08:22 +01:00
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
c32e988e71 bump github.com/tribalwarshelp/shared 2020-11-07 08:40:53 +01:00
518d365191 langVersion is deprecated 2020-11-07 08:13:19 +01:00