Commit Graph

1113 Commits

Author SHA1 Message Date
Luna b67de9a62d Return None if region isn't set 2020-04-01 20:28:58 -03:00
Luna 6a74a7f990 Fix mypy not catching non-nullability of conn 2020-04-01 20:01:44 -03:00
Luna 133154ad1b .gitlab-ci.yml: run black fmt check 2020-03-31 16:38:59 -03:00
Luna 29091293f5 black fmt pass 2020-03-31 16:34:41 -03:00
Luna d0f1729fd6 Merge branch 'bugfix/server-edit-broken' into 'master'
Fix lazy channel loading, emote uploading/saving, implement missing server fields

See merge request litecord/litecord!61
2020-03-31 19:27:48 +00:00
George Tsatsis 82eb6345d1
Coerce snowflakes into int 2020-03-31 22:17:51 +03:00
George Tsatsis 46468f512b
As per !61#note_314891420 2020-03-31 22:14:13 +03:00
George Tsatsis 49ff11da48
Looking back, it wasn't a dash, but rather, an underscore. 2020-03-31 04:18:28 +03:00
George Tsatsis 6b3d3c881a
Copy-paste fail (Change func name) 2020-03-31 04:10:05 +03:00
George Tsatsis 6b14d41c93
Possibly fix discovery-splashes icon get 2020-03-31 04:08:56 +03:00
George Tsatsis bdc576b777
Remove splash as a field 2020-03-31 03:50:34 +03:00
George Tsatsis 45b4431c4c
Add discovery_splash to sql definitions for image uploading 2020-03-31 03:35:00 +03:00
George Tsatsis d786edffec
Add discovery_splash 2020-03-31 01:11:57 +03:00
George Tsatsis 4ff1916ebe
Add preferred_locale field 2020-03-31 01:04:58 +03:00
George Tsatsis be089fe4dc
Add PUBLIC to guild enums 2020-03-31 00:31:50 +03:00
George Tsatsis 2aadcc2360
When server has no features, it would not submit changes. 2020-03-30 22:49:58 +03:00
George Tsatsis 3c9801e99a
Merge branch 'bugfix/server-edit-broken' of https://bitbucket.gsn.ratelimited.me/scm/lit/litecord into bugfix/server-edit-broken 2020-03-30 22:19:44 +03:00
George Tsatsis 92489d0f43
Add public updates channel (to server, not channel type) 2020-03-30 22:19:12 +03:00
George Tsatsis e8c3aa02b4 Pull request #5: Bugfix/server edit broken
Merge in LIT/litecord from bugfix/server-edit-broken to master

* commit 'd9940b9d3f2c305fc2737643a1f153515e64d48c':
  Make rules_channel_id a bigint
  add rules_channel_id to schemas
  Create rules channel
  Fix server update problems (string where supposed to be int)
2020-03-30 18:17:22 +00:00
George Tsatsis d9940b9d3f
Make rules_channel_id a bigint 2020-03-30 21:07:17 +03:00
George Tsatsis 93958a0943
add rules_channel_id to schemas 2020-03-30 21:02:20 +03:00
George Tsatsis 324cf6d4fa
Create rules channel 2020-03-30 20:57:29 +03:00
George Tsatsis 83721d4525
Fix server update problems (string where supposed to be int) 2020-03-30 20:33:08 +03:00
George Tsatsis a4148bd616 Pull request #4: Bugfix/emoji creation deletion
Merge in LIT/litecord from bugfix/emoji-creation-deletion to master

* commit 'fdb2afcd3666428664612f1711d18ab1a35bd10d':
  Fixed broken check & query
  Fixed broken check
  Removed and fixed broken checks
2020-03-30 17:19:33 +00:00
Visual fdb2afcd36 Fixed broken check & query 2020-03-30 17:16:43 +00:00
Visual 0eccf15750 Fixed broken check 2020-03-30 17:14:43 +00:00
Visual 261753e399 Removed and fixed broken checks 2020-03-30 17:13:39 +00:00
George Tsatsis 8ccf6304a3 Pull request #3: Fixed lazy role position updating due to not making sure that blacklisted id exists in state
Merge in LIT/litecord from bugfix/lazy-role-update to master

* commit '2629e2a725deb71764504d48760c51cb6f743a45':
  Fixed lazy role position updating due to not making sure that blacklisted id exists in state
2020-03-30 15:31:43 +00:00
George Tsatsis 2629e2a725 Pull request #2: Fixed lazy role position updating due to not making sure that blacklisted id exists in state
Merge in LIT/litecord from visual/rolespy-1585581892324 to bugfix/lazy-role-update

* commit 'b098044a4b03463a6162efb4073a7ed42a3f3762':
  Fixed lazy role position updating due to not making sure that blacklisted id exists in state
2020-03-30 15:26:55 +00:00
Visual b098044a4b Fixed lazy role position updating due to not making sure that blacklisted id exists in state 2020-03-30 15:26:04 +00:00
George Tsatsis 3023404d42 Pull request #1: Fixed lazy channel reloading due to missing .bits. attribute
Merge in LIT/litecord from bugfix/channel-creation-reload to master

* commit '8b1e3fb06e181281dfe7997ec7d1ed4f6e0764e1':
  Fixed lazy channel reloading due to missing .bits. attribute
2020-03-30 15:10:10 +00:00
Visual 8b1e3fb06e Fixed lazy channel reloading due to missing .bits. attribute 2020-03-30 15:07:48 +00:00
Luna 794fc37033 Merge branch 'master' into feature/validate-error 2020-03-14 17:06:04 -03:00
Luna b3fe518d10 Merge branch 'impl/custom-status' into 'master'
Implementation: Custom Status

See merge request litecord/litecord!48
2020-03-14 20:05:14 +00:00
Luna b1d1f4f228 add better docstring to update_status
- simplify logic to fetch game
 - safer getting when making final status
2020-03-14 20:05:14 +00:00
Luna 2fd86ec1d1 schemas: remove raise_err kwarg 2020-03-14 17:00:39 -03:00
Luna 8dc27ae9de replace more typos for dispatch calls 2020-02-26 14:05:59 -03:00
Luna f69d0aa724 ignore KeyErrors when removing flags 2020-02-26 14:01:22 -03:00
Luna b015cce7a9 fix typo 2020-02-26 13:58:58 -03:00
Luna 6653dbf4d5 ci: add POSTGRES_HOST_AUTH_METHOD=trust 2020-02-17 22:46:32 -03:00
Luna b1aef75bb2 presence: remove TODO
that function is already shard-aware since we started subscribing at the
websocket start instead of fetching session ids for every single
dispatch.
2020-02-17 22:36:56 -03:00
Luna f0f5570dfa Merge branch 'feature/rewrite-dispatcher' into 'master'
dispatcher refactor

Closes #84

See merge request litecord/litecord!60
2020-02-09 21:20:08 +00:00
Luna b0eb3247fd remove code from dispatcher
leftovers are TBD.

 - constrict Dispatcher.dispatch() to arity 3
 - add helper methods to Dispatcher
 - add EventType to Dispatcher

While fixing things, it was discovered that many of the things inside
LazyGuildDispatcher were just interfaces to GuildMemberList, in a very
weird way, just so it could be fitted inside the main Dispatcher. it was
decided to remove those unecessary interfaces, clients shall use the
manager directly.
2020-02-09 21:20:08 +00:00
Luna 39e8a1ad7e images: force-cast to bool inside Icon
reported in #86
2020-02-08 13:28:29 -03:00
Luna c3b281c940 Merge branch 'feature/improve-typing' into 'master'
improve typing (episode 1)

Closes #85

See merge request litecord/litecord!59
2020-02-06 21:10:52 +00:00
Luna e0e59f8b63 fix types (big)
varied fixes across many, many files.
2020-02-06 21:10:51 +00:00
Luna 020e03bf6d Merge branch 'fix/db-constraints' into 'master'
fix/add database constraints

Closes #70

See merge request litecord/litecord!58
2020-02-04 20:50:40 +00:00
Luna e42aadb6d0 migration.command: dont split on migration 0
(it's a hack)
2020-02-04 20:50:40 +00:00
Luna 7db5ce62c1 presence: fix removed shard field
closes #80
2020-02-03 18:29:11 -03:00
Luna 67a8ae4ce2 Merge branch 'impl/deprecated-regions' into 'master'
impl: deprecated regions

Closes #79

See merge request litecord/litecord!57
2020-02-03 20:01:22 +00:00