Commit Graph

48 Commits

Author SHA1 Message Date
bitfl0wer cbb24549d2 Add code coverage using coveralls and tarpaulin 2023-08-25 20:58:46 +02:00
Flori 3e9ca3f9ba Update README.md 2023-08-20 17:28:11 +02:00
Flori 1fdbe6cc00 Join/Leave Guilds, (Group) DMs and minor improvements (#157)
## Summary:

**Added:**
- Schemas `PrivateChannelCreateSchema` `ChannelInviteCreateSchema`, `AddChannelRecipientSchema` recursively (including schemas which were needed to create these schemas)
- Methods `create_private_channel`, `leave_guild`, `accept_invite`, `create_user_invite`, `create_guild_invite`, `add_channel_recipient`, `remove_channel_recipient`
- Integration tests for the functionality covered by implementing #45
- Documentation in some places where I noticed it would be useful to have some
- `create_user` method in `/src/tests`: Cuts down on test boilerplate needed to create an addition test user

**Changed:**
- `.gitignore`
  - Added `.DS_store` files to gitignore (some weird macos files), removed Cargo.lock, as Cargo.lock should be included for libraries
- Added a lot of default trait derives like Clone, Copy, PartialEq, Eq, Ord, PartialOrd to structs and enums where I saw them missing
- Added missing `teardown()` calls to the integration tests
- Renamed integration test files in `/src/tests` dir to all be plural: `channel.rs` -> `channels.rs`
- Made more fields on `User` type `Option<>`
- All instances in `/src/tests` where a second test user was created using a RegistrationSchema and the register_user method were replaced with the new `create_user` method
- README.md: Marked roadmap fields covered by #45 as implemented
- Changed visibility of `/src/tests/common/mod.rs` methods from `pub` to `pub(crate)`. In hindsight, this was probably not required, haha

**Removed:**
- Unneeded import in`src/types/config/types/guild_configuration.rs`


## Commit log:

* Add .DS_store, remove Cargo.lock

* Create PrivateChannelCreateSchema

* pub use users

* add channels.rs

* create channels.rs

* Add Deserialize/Serialize derives

* Implement create_private_channel

* Add create_dm() test

* Make optional fields on `User` `Option<>`

* Check boxes for implemented features

* Create users/guilds.rs

* Remove unneeded import

* Add UserMeta::leave_guild()

* Create api/invites/mod.rs

* Add debug print to send_request

* Rename tests files

* Create invites.rs

* create invite.rs

* Add documentation

* Implement accept_invite

* Sort fields on Channel alphabetically

* Add invite mod

* Add forgotten teardown() at test end

* change visiblities, add create_user()

* Implement `create_user_invite()`

* start working on invite tests

* Add allow flags

* Fix bad url

* Create CreateChannelInviteSchema and friends

* remove non-implemented test code

* add body to requests

* Add Clone to UserMeta

* More comprehensive error message when running into a deserialization error

* Add arguments documentation to accept_invite

* Add Eq derive to GuildFeaturesList

* Add Eq derive to Emoji

* Add Eq derive to GuildBan

* Add create_accept_invite() test

* Add Default derive to ChannelCreateSchema

* Change create_guild_invite to return GuildInvite

* Dates as chrono::Date(Utc); sort alphabetically

* Add default derives wherever possible

* Implement add_- and remove_channel_recipient

* Create AddChannelRecipientSchema

* replace otheruser regs with bundle.creeate_user()

* Add (disabled) test remove_add_person_from_to_dm()
2023-07-17 19:36:28 +02:00
Flori Weber aae478543d Simplify README 2023-06-20 00:17:52 +02:00
Flori 97cffd8d17 Update README.md 2023-06-19 23:42:56 +02:00
Flori Weber e814d617d4 Merge branch 'main' into feature/relationships 2023-06-19 16:36:52 +02:00
Flori 42f669dde9 Update badges 2023-06-19 16:28:43 +02:00
Flori Weber d9edf49081 Mark Friend Requests and Blocking as completed 2023-06-18 23:24:10 +02:00
Flori f14a38a85e Update README.md 2023-06-17 23:26:57 +02:00
Flori 4e5165d9ff Update README.md 2023-06-11 13:05:45 +02:00
Flori Weber d6ffe62b51 Mark Permission management as finished 2023-06-11 12:31:46 +02:00
bitfl0wer aff744d960 Mark 2 objects as complete 2023-06-10 22:27:46 +02:00
Flori Weber 65a73ec85b Mark role management as completed 2023-06-10 19:17:35 +02:00
bitfl0wer 495ea30a65 Re-order README, link issues 2023-06-04 19:49:04 +02:00
Flori 9282c89096 Update README.md 2023-06-04 19:33:46 +02:00
Flori dcc83d7622 Update README.md 2023-06-04 19:31:39 +02:00
Flori e6ed4257da Update README.md 2023-06-04 14:48:39 +02:00
Flori 7f6762a825 Update README.md 2023-06-01 19:16:25 +02:00
Flori 3a6d1c5620 Update README.md 2023-05-29 19:20:41 +02:00
Flori 2a61a4db7e Update README.md 2023-05-29 19:05:26 +02:00
Flori 2e81f5c4e1 Update README.md 2023-05-28 22:29:24 +02:00
bitfl0wer 74b5f988c9 Flesh out the Roadmap 2023-05-27 15:25:41 +02:00
Flori 77b624e894 Update README.md 2023-05-25 18:33:17 +02:00
Flori 3d37373f98 Update README.md 2023-05-13 19:20:49 +02:00
Flori 45c2fc601d Merge pull request #38 from polyphony-chat/feature/sending-messages
Feature/sending messages
2023-05-12 19:21:09 +02:00
bitfl0wer b2e7c52eb8 Mark Sending messages as done 2023-05-12 19:20:03 +02:00
Flori 3c7b057315 Update README.md 2023-05-12 15:53:16 +02:00
Flori 08b4cc0abd Update README.md 2023-04-30 20:07:24 +02:00
Flori ae97a52631 Update README.md 2023-04-29 10:51:39 +02:00
Flori f736922805 Update README.md 2023-04-26 11:19:04 +02:00
Flori b269574670 Update README.md 2023-04-23 20:34:40 +02:00
Flori 54e5087b56 Update README.md 2023-04-23 20:16:39 +02:00
Flori a5d1fe6db4 Update README.md 2023-04-23 14:05:44 +02:00
bitfl0wer 5991bf66e5 Update readme 2023-04-23 11:06:43 +02:00
Flori 3ac27929e0 Update README.md 2023-04-22 22:56:51 +02:00
bitfl0wer 1f40417ee4 update readme, add images 2023-04-15 18:33:17 +02:00
bitfl0wer 4b754f3131 🎉 mark rate limiter as complete (with hint) 2023-04-15 14:58:19 +02:00
bitfl0wer b5b81aba26 Fix spelling 2023-04-12 21:31:09 +02:00
bitfl0wer d9b6d77c69 update readme 2023-04-11 18:18:24 +02:00
Flori a6d8bcb39b Update README.md 2023-04-10 21:38:23 +02:00
Flori edecf333e6 Update README.md 2023-04-10 21:37:27 +02:00
Flori 274ead0799 Update README.md 2023-04-10 21:37:05 +02:00
Flori 7b8c154692 Update README.md 2023-04-10 21:31:40 +02:00
Flori 6272c0a24b Update README.md 2023-04-10 21:31:33 +02:00
Flori aafda45b5a Update README.md 2023-04-10 21:30:39 +02:00
Flori 95cdf4c01f Update README.md 2023-04-10 21:30:31 +02:00
Flori 4856d4d2c8 Update README.md 2023-04-10 21:28:22 +02:00
Flori 47604711d0 Initial commit 2023-04-03 22:19:25 +02:00