Commit Graph

1017 Commits

Author SHA1 Message Date
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
Luna 6ba9b07381 0_base.sql: fix ordering of table creations
fixes attachments table being created BEFORE its foreign keys
2019-04-04 00:30:59 -03:00
Luna bb542550b8 migration.command: only call init_app_managers when it isnt migrate cmd 2019-04-04 00:29:50 -03:00
Luna 6ba5c6e25f 0_base.sql: formatting 2019-04-03 23:54:04 -03:00
Luna e03dada1a7 migration: some fixes here and there
- 0_base.sql: make it rerunnable by dropping hardcoded constraints
2019-04-03 23:53:06 -03:00
Luna 1617c87f03 migration: revamp everything to handle new 0_base.sql
- gitlab-ci.yml: remove schema.sql loading
2019-04-03 23:34:44 -03:00
Luna 02978542e7 remove all migrations, rename schema.sql to a 0_base.sql 2019-04-03 22:04:59 -03:00
Luna 1679f63217 Merge branch 'unified-discrim-gen' into 'master'
Unified discrim gen

See merge request litecord/litecord!30
2019-04-04 00:14:25 +00:00
Luna 2fd3b81a78 users: remove unused import 2019-03-31 19:02:11 -03:00
Luna ff1469f05f litecord.auth: add roll_discrim()
this should fix any issues arising when genning discriminators at
register-time.

 - litecord.blueprints.users: use roll_discrim in favour of _try_reroll
2019-03-31 18:59:38 -03:00
Luna d458f22967 add test_create_user to tests/test_user.py
- tests.conftest: hardcode REGISTRATIONS to true
 - tests/test_user: better assertions for test_get_me
2019-03-31 18:17:39 -03:00
Luna 4509ede535 Merge branch 'improve-tests' into 'master'
Improve tests

See merge request litecord/litecord!29
2019-03-29 04:39:31 +00:00
Luna 86c9c02e46 schema.sql: sync guild.description, guild.banner 2019-03-27 00:08:29 -03:00
Luna 39a35b6af9 schema.sql: sync guild.region column, remove not null 2019-03-26 23:56:35 -03:00
Luna 0e57ad9633 test_websocket: use _close on test_ready 2019-03-26 23:50:10 -03:00
Luna 07c66d121a test_websocket: add a _close helper 2019-03-26 23:47:52 -03:00
Luna 8d9ac79dbc add guild create testing
related to #15.
2019-03-26 23:43:19 -03:00
Luna 136f7a7348 Update Pipfile
many package updates
2019-03-26 17:42:28 -03:00
Luna 9e1db1f9b4 test_gateway: add test_heartbeat
- tests.conftest: hardcode IS_SSL to False
2019-03-26 01:02:06 -03:00
Luna 4c4efb61da Update README.md
- add docs/clients.md
2019-03-26 00:44:05 -03:00
Luna 15fa2f3231 channel.messages: add foreign key deletions before message delete
- images: export try_unlink, and allow it to handle pathlib.Path
2019-03-23 21:19:30 -03:00
Luna 306444061d litecord.storage: add hardcodes for guild.max_{presences, members} 2019-03-23 01:23:48 -03:00
Luna 40571fe1d1 features: use Storage.vanity_invite 2019-03-23 01:22:20 -03:00
Luna a3e58abc2c storage: fix app ref 2019-03-23 01:21:45 -03:00
Luna 973df47503 storage: move guilds.vanity_invite to Storage.vanity_invite
- storage: add guild.vanity_url_code in get_guild
2019-03-23 01:20:12 -03:00
Luna 7901a18332 storage: add author.discriminator when wb_info is found 2019-03-22 22:23:51 -03:00
Luna 8463f34e0e docs/structure.md: add storage and error sections
- docs: add docs/extra_fields.md
2019-03-22 22:23:04 -03:00
Luna c27806bc1b Merge branch 'internal-docs' into 'master'
Documentation Improvements

Closes #42

See merge request litecord/litecord!28
2019-03-22 22:23:18 +00:00
Luna 5df68896d0 docs/operating.md: add 'Instance Invites' and 'Making someone Staff' 2019-03-22 19:13:40 -03:00
Luna dc5aeda06b README: add note on docs/operating.md 2019-03-22 19:04:36 -03:00
Luna 3b85556d89 gateway: docstrings!
also subjective readability improvements
2019-03-20 17:54:24 -03:00
Luna 58834f88af permissions: add docstrings 2019-03-20 17:34:58 -03:00
Luna b0f881f422 utils: docstring arrangements 2019-03-20 17:27:35 -03:00
Luna 56876c9dec guilds: use to_update for j.icon
j.icon can be just a hash... so...
2019-03-20 16:35:49 -03:00
Luna c07a1e28bd system_messages: add docstring for send_sys_message 2019-03-20 03:42:11 -03:00
Luna 30dae2bf0e snowflake: remove unused imports 2019-03-20 02:15:55 -03:00
Luna 55dbe4f5a2 snowflake: remove unused get_invite_code
blueprints.invites uses its own gen_inv_code() function, that
is reasonably faster than the original.
2019-03-20 02:05:35 -03:00
Luna d20626e716 litecord.presence: add docstrings / better function naming 2019-03-20 02:04:36 -03:00
Luna f1b8f7b0a0 litecord.jobs: add docstrings 2019-03-20 01:56:40 -03:00
Luna 69723437a6 litecord.auth: add docstrings and typings 2019-03-20 01:51:34 -03:00
Luna 970b4b8692 litecord.schemas: add better docstring for validate() 2019-03-20 01:40:23 -03:00
Luna d1c0a7aa3c add docs/structure.md 2019-03-20 01:27:52 -03:00
Luna 3239a8c18a docs/pubsub.md: add practical call 2019-03-20 00:37:30 -03:00
Luna a9be2a7cce docs: add docs/pubsub.md, revamp README 2019-03-20 00:35:30 -03:00
Luna 982ac6f05b Merge branch 'webhooks' into 'master'
Webhooks

Closes #41

See merge request litecord/litecord!27
2019-03-19 23:47:41 +00:00