Commit Graph

254 Commits

Author SHA1 Message Date
a1d2b22ddf
chore: update deps
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-06 08:20:31 +01:00
9096a1a6e3 feat: new rest endpoint - /versions/{code}/servers/{key}/tribes/{id}/members (#179)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: twhelp/core#179
2023-02-06 07:18:32 +00:00
5379e75d79 chore(deps): update module github.com/golangci/golangci-lint to v1.51.1 (#178)
Some checks failed
continuous-integration/drone/push Build is failing
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) | require | patch | `v1.51.0` -> `v1.51.1` |

---

### Release Notes

<details>
<summary>golangci/golangci-lint</summary>

### [`v1.51.1`](https://github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v1511)

[Compare Source](https://github.com/golangci/golangci-lint/compare/v1.51.0...v1.51.1)

1.  updated linters
    -   `ginkgolinter`: from 0.7.1 to 0.8.1
    -   `ineffassign`: bump to HEAD
    -   `musttag`: from 0.4.3 to 0.4.4
    -   `sqlclosecheck`: from 0.3.0 to 0.4.0
    -   `staticcheck`: bump to v0.4.0
    -   `wastedassign`: from 2.0.6 to 2.0.7
    -   `wrapcheck`: from 2.7.0 to 2.8.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTQuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExNC4xIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: twhelp/core#178
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-02-06 06:16:23 +00:00
6a44087d0f chore(deps): update module github.com/maxbrunsfeld/counterfeiter/v6 to v6.6.1 (#177)
All checks were successful
continuous-integration/drone/push Build is passing
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/maxbrunsfeld/counterfeiter/v6](https://github.com/maxbrunsfeld/counterfeiter) | require | minor | `v6.5.0` -> `v6.6.1` |

---

### Release Notes

<details>
<summary>maxbrunsfeld/counterfeiter</summary>

### [`v6.6.1`](https://github.com/maxbrunsfeld/counterfeiter/releases/tag/v6.6.1)

[Compare Source](https://github.com/maxbrunsfeld/counterfeiter/compare/v6.6.0...v6.6.1)

-    fix GitHub Actions workflow: `setup-go` directive for `go 1.20` requires quotes for version `'1.20'`

Detailed changes: https://github.com/maxbrunsfeld/counterfeiter/compare/v6.6.0...v6.6.1

### [`v6.6.0`](https://github.com/maxbrunsfeld/counterfeiter/releases/tag/v6.6.0)

[Compare Source](https://github.com/maxbrunsfeld/counterfeiter/compare/v6.5.0...v6.6.0)

-   ⬆️  update dependencies

Detailed changes: https://github.com/maxbrunsfeld/counterfeiter/compare/v6.5.0...v6.6.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTQuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExNC4xIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: twhelp/core#177
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-02-05 07:31:38 +00:00
3546426a6a
refactor(rest): simplify list functions
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-02-03 08:31:32 +01:00
7ae52c408e
feat: new API endpoint GET /api/v1/versions/:code/servers/:key/tribes/:id/ennoblements
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-03 08:17:19 +01:00
26e97e2206
chore: update github.com/golangci/golangci-lint to v1.51.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-03 07:33:57 +01:00
a8da8b1d3f feat: new API endpoint GET /api/v1/versions/:code/servers/:key/villages/:id/ennoblements (#173)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: twhelp/core#173
2023-02-02 06:40:01 +00:00
0dbcd3340d
chore: update deps + Go 1.20
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-02 06:52:00 +01:00
bef22cdfd4
refactor: meta.New - variadic function
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-01-31 06:20:02 +01:00
1514199de8 feat: add a new API endpoint - GET /versions/{code}/servers/{key}/players/{id}/other-servers (#168)
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: twhelp/core#168
2023-01-31 05:17:07 +00:00
512abfe9e0
chore(deps): update module github.com/threedotslabs/watermill-amqp/v2 to v2.0.7
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-01-28 08:08:02 +01:00
15dc32d1fe
chore(deps): update alpine/k8s docker tag to v1.25.6
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-28 07:25:16 +01:00
df9410ee45
refactor: remove other servers - player
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-28 07:19:33 +01:00
4d176b2f10
refactor: rest.New - introduce required/optional args
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-27 07:03:20 +01:00
6b3fa06e09
refactor: newServer - accept logger and db as arguments
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-26 06:02:08 +01:00
7f2659cb7f
chore: update alpine docker tag to v3.17
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-01-22 11:01:56 +01:00
c02b77fe6f
refactor: defers
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-22 09:58:43 +01:00
428333572d refactor(rest): ennoblement - update model (#162)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: twhelp/core#162
2023-01-21 14:20:48 +00:00
d77c6150ad feat: server - add new endpoints (#161)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: twhelp/core#161
2023-01-21 08:05:51 +00:00
7e7187ca10 chore(deps): update module github.com/uptrace/bun to v1.1.10 (#160)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: twhelp/core#160
2023-01-17 15:53:11 +00:00
4d6ba4eb60 feat: tribe change - add indexes (#155)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: twhelp/core#155
2023-01-15 09:17:40 +00:00
d3a6964eb7 feat: add a new REST endpoint - GET /api/v1/versions/{code}/servers/{key}/players/{id}/tribe-changes (#154)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: twhelp/core#154
2023-01-15 08:11:02 +00:00
08140aac38
refactor: use serverFromContext/versionFromContext instead of chi.URLParamFromCtx
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-14 08:23:52 +01:00
0bc9fd0c88
refactor: rename one variable
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-13 06:57:57 +01:00
35719e5787
refactor: rest - middlewares
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-13 06:56:47 +01:00
4e44a25acb
refactor: sorts - new constructors
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-13 06:28:44 +01:00
34266979b7 chore(deps): update golang docker tag to v1.19.5 (#153)
All checks were successful
continuous-integration/drone/push Build is passing
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang | stage | patch | `1.19.4-alpine3.16` -> `1.19.5-alpine3.16` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC43NC4yIiwidXBkYXRlZEluVmVyIjoiMzQuNzQuMiJ9-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: twhelp/core#153
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-01-11 08:57:08 +00:00
d5db61cbc2
refactor: make query params parser more generic
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-01-10 07:42:51 +01:00
c2a35d4c98 feat: add a new endpoint - GET /api/v1/versions/:code/servers/:key/players/:id/history (#152)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: twhelp/core#152
2023-01-10 06:16:28 +00:00
298f3fed02
chore: update alpine/k8s docker tag to v1.25.5
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-06 09:00:22 +01:00
1d9b1c32f3
refactor: cors - add tests
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-04 06:55:52 +01:00
04e3f1d6bd feat: new API endpoint - GET /api/v1/versions/{code}/servers/{key}/players/{id}/ennoblements (#151)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: twhelp/core#151
2023-01-04 05:21:02 +00:00
db6f5a70f4
refactor: rename one variable (ennoblementWithoutRelations -> ennoblement)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-01-02 06:56:01 +01:00
9b89c51706 feat: player - other servers (#150)
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: twhelp/core#150
2023-01-02 05:48:27 +00:00
c1d987394c
feat: tribe - add more fields to api
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-01 09:56:38 +01:00
8739572c9b
feat: player - add more fields to api
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-01 09:35:17 +01:00
c545ebd7d7
refactor: rename domain.UserError -> domain.Error
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-31 11:00:30 +01:00
e9c0cb716e
refactor: ennoblements - sort only by createdAt
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-12-30 09:53:28 +01:00
b669bbc2ff
feat: auto cleanup - ennoblements
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-30 09:00:25 +01:00
1c0d7034b2
feat: server - add new fields to API
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-12-29 11:24:03 +01:00
75aba22cf8 feat: server - add new fields (#149)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: twhelp/core#149
2022-12-29 10:02:21 +00:00
1caad44e51
fix: player/tribe snapshot - clean up data only when Special = false
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-12-28 11:25:23 +01:00
75d909ac6e
refactor: ennoblement/village - improve query performance - ListCountWithRelations
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-28 11:11:58 +01:00
932793a4bc
fix: ennoblement - server key shouldn't be included in pkey
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-28 09:26:35 +01:00
6296382130 feat: auto cleanup - tribe snapshots (#148)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: twhelp/core#148
2022-12-27 10:55:08 +00:00
c86eb756d3
fix: add one missing condition - PlayerSnapshot.CleanUp
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-27 10:27:41 +01:00
2e27c63324 feat: new job - clean up (#147)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: twhelp/core#147
2022-12-27 08:57:44 +00:00
b50c3845a3
refactor: replace NullVillageMeta with VillageMeta - EnnoblementWithRelations
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-26 09:20:42 +01:00
b7d0d9746f
feat: village meta - add 3 new fields to rest api: x, y, continent
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-26 09:07:17 +01:00