Luna
454f368f94
tests.test_embeds: add tests for path_exists
...
- embed.sanitizer: better error handling when fetching the key
2019-04-26 17:00:01 -03:00
Luna
1061eda096
embed.sanizier: quickfix for proxify()
2019-04-25 23:45:39 -03:00
Luna
0631f007c1
test_websocket: add test for etf
...
- embed.sanitizer: remove unused import
2019-04-25 22:44:34 -03:00
Luna
9f50721243
gateway.websocket: fix etf
2019-04-25 22:26:45 -03:00
Luna
b6da5ad9d3
embed.sanitizer: use try/except instead of key membership check
2019-04-25 22:17:15 -03:00
Luna
ff9d421a3c
embed.sanitizer: full refactor
...
- refactor the three main mediaproxy api client functions into a
template function
- simplify common code between everyone
- add typings to fill_embed()
- embed.schemas: add querystring to EmbedURL.to_md_path
2019-04-25 22:12:04 -03:00
Luna
c9a7b3dfb5
schemas: better email type
2019-04-25 21:29:52 -03:00
Luna
7c5ef967f6
schemas: remove unused import
2019-04-25 20:56:44 -03:00
Luna
5a15f3caf2
schemas: add proper validation of voice_region type
2019-04-25 20:55:06 -03:00
Luna
2076beb5fa
base package updates: itsdangerous, quart, pytest
2019-04-22 17:04:34 -03:00
Luna
1ef2d9a819
update some deps
2019-04-22 16:56:53 -03:00
Luna
195a219f75
add ability to purposefully disable voice initialization
...
there is an issue (not very urgent) where a traceback was shown at any
`manage.py` usage. this was not catched before because of recent
modifications that removed manager startup when calling `migrate`.
2019-04-22 16:27:50 -03:00
Luna
5dbf8ac8fd
Merge branch 'admin-api-more-endpoints' into 'master'
...
Admin API improvements
Closes #44
See merge request litecord/litecord!33
2019-04-22 07:24:02 +00:00
Luna
eeaec19b2f
test_admin_api.test_guilds: add another check for unavailable guild
2019-04-22 03:51:39 -03:00
Luna
1507d422eb
docs/admin_api.md: add missing guild delete endpoint
2019-04-22 03:46:52 -03:00
Luna
daee044a4f
admin_api.guilds: make get guild route raise GuildNotFound
...
before it was returning 200 but with a `null` inside, I don't think
that's reasonable API design.
- test_admin_api/test_guilds: add checks for GuildNotFound error code
2019-04-22 02:41:24 -03:00
Luna
4142baa84b
test_admin_api/test_guilds: add test_guild_delete
2019-04-22 02:37:29 -03:00
Luna
b0c65c88dd
admin_api.guilds: add DELETE /api/v6/admin/guilds/:id
2019-04-22 02:29:55 -03:00
Luna
a6ecc84b9f
test_admin_api/test_guilds: add test_guild_update
...
- docs/admin_api.md: add note on unavailable guild object being
returned
2019-04-22 02:17:51 -03:00
Luna
d8b889c1a9
add tests/test_admin_api/test_guilds.py
...
- guilds: decouple endpoint logic into a delete_guild() function
2019-04-22 02:13:53 -03:00
Luna
717c02bdd7
admin_schemas: fix USER_UPDATE's coerce
...
- admin_api.users: fix missing attrs / wrong calls
- enums: add Flags.value attr for an instantiated Flags
2019-04-22 01:45:26 -03:00
Luna
e65db52c62
test_admin_api/test_users: add impl for test_user_update
2019-04-22 01:27:43 -03:00
Luna
644d755332
test_admin_api/test_users: decouple user creation and deletion
...
- remove hardcoding of 'big_girl' username on test_list_users
2019-04-22 01:11:34 -03:00
Luna
aff4653454
docs/admin_api.md: add PATCH /users/:id to docs
2019-04-22 00:31:54 -03:00
Luna
f6bf8be94d
admin_api.guilds: use GUILD_DELETE instead of GUILD_UPDATE
2019-04-21 23:17:39 -03:00
Luna
a2e55d80e8
storage: do unavailable guild object rewrite earlier on
...
prevent unecessary db calls as soon as the guild is determined to be
unavailable
2019-04-21 23:08:45 -03:00
Luna
ea9b06182d
storage: rewrite the guild object as unavailable
...
more at https://discordapp.com/developers/docs/resources/guild#unavailable-guild-object
2019-04-21 23:07:05 -03:00
Luna
bb6055f009
admin_api.guilds: switch between GUILD_CREATE / UPDATE
2019-04-21 22:53:21 -03:00
Luna
e886a745b5
guild_memory_store: add gpl header
2019-04-21 22:39:34 -03:00
Luna
4a50ceeb67
Add basic guild available updates
...
- add litecord.guild_memory_store
- storage: add fetch of unavailable field
2019-04-21 22:38:41 -03:00
Luna
85749f2c8e
admin_api.users: add basic flag change support
2019-04-21 21:33:26 -03:00
Luna
d69e732b80
admin_api.guilds: remove unused import
2019-04-21 17:31:18 -03:00
Luna
9aaac5d994
admin_api.users: add PATCH /api/v6/admin/users/:id
...
- admin_schemas: add USER_UPDATE
- users: return a tuple with public and private user dicts on
mass_user_update()
2019-04-21 17:29:21 -03:00
Luna
3dc2e01c28
admin_api.guilds: add PATCH /api/v6/admin/guilds/:id
...
currently does not do anything else other than updating and returning
the guild, as we don't store the availability of it on the database as
of rn.
2019-04-21 17:21:31 -03:00
Luna
36ad9db0ef
schemas: decouple password checking into password type
...
- schemas: make REGISTER.consent optional
2019-04-19 06:44:56 -03:00
Luna
eef09ccf6d
keep links as underlines (pre-hover)
2019-04-15 16:28:59 -03:00
Luna
29444f3c83
fix index's b tag
2019-04-15 04:25:47 -03:00
Luna
ea9ebca26b
update static/css/index.css
...
recolor everything, add a --tos-color variable
2019-04-15 04:25:09 -03:00
Luna
8e880830e8
add nicer layout on the css
...
thanks @fursona for the headstart on css grid layout
2019-04-15 04:14:28 -03:00
Luna
a8b4493d0b
add static/css/index.css
2019-04-15 01:20:52 -03:00
Luna
0d1e4a1265
update docs/clients.md
...
- add koneko
- move crcophony as d.cr is indeed editable (even though not at
runtime)
2019-04-15 01:04:53 -03:00
Luna
f4a608885e
storage: fix wrong timestamp while fetching full member list
2019-04-11 00:38:54 -03:00
Luna
13a864da52
Merge branch 'db-streamlining' into 'master'
...
database streamlining
Closes #33
See merge request litecord/litecord!32
2019-04-09 00:38:44 +00:00
Luna
fce008bad1
README.md: remove schema.sql loading as it just becomes running migrate
2019-04-05 22:26:25 -03:00
Luna
b86040ae75
Merge branch 'master' into 'master'
...
Stop deleting permanent invites
See merge request litecord/litecord!31
2019-04-05 17:36:02 +00:00
TTtie
c1aaea846a
Don't delete permanent invites
2019-04-05 15:46:36 +00:00
Luna
81bf33c364
Merge branch 'master' into db-streamlining
2019-04-04 13:37:32 -03:00
Luna
9f9251ebce
Merge branch 'master' of gitlab.com:litecord/litecord
2019-04-04 13:02:36 -03:00
Luna
e68f212c9e
channel.messages: simplify data.get call
2019-04-04 12:53:40 -03:00
Luna
a93090ddbc
handle nullable embeds when creating messages
...
somehow discordcr does that..
2019-04-04 12:52:41 -03:00