instante-social/spec/models
Eugen Rochko 740f8a95a9
Add consumable invites (#5814)
* Add consumable invites

* Add UI for generating invite codes

* Add tests

* Display max uses and expiration in invites table, delete invite

* Remove unused column and redundant validator

- Default follows not used, probably bad idea
- InviteCodeValidator is redundant because RegistrationsController
  checks invite code validity

* Add admin setting to disable invites

* Add admin UI for invites, configurable role for invite creation

- Admin UI that lists everyone's invites, always available
- Admin setting min_invite_role to control who can invite people
- Non-admin invite UI only visible if users are allowed to

* Do not remove invites from database, expire them instantly
2017-11-27 16:07:59 +01:00
..
admin Add logging of admin actions (#5757) 2017-11-24 02:05:53 +01:00
concerns Add tests for Streamable (#5771) 2017-11-24 14:42:57 +01:00
form Improve admin page (#4121) 2017-07-18 16:38:22 +02:00
web Web Push Notifications (#3243) 2017-07-13 22:15:32 +02:00
account_domain_block_spec.rb
account_filter_spec.rb
account_moderation_note_spec.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
account_spec.rb Implement tests for Account#refresh! (#5601) 2017-11-06 13:54:41 +09:00
block_spec.rb Cover Block more (#3837) 2017-06-19 11:31:37 +02:00
conversation_mute_spec.rb
conversation_spec.rb
custom_emoji_spec.rb Add tests for CustomEmoji#local? and #object_type (#5621) 2017-11-08 15:28:17 +09:00
domain_block_spec.rb Cover DomainBlock more (#3838) 2017-06-19 11:31:27 +02:00
email_domain_block_spec.rb Add uniqueness to block email domains (#5692) 2017-11-14 20:37:17 +01:00
export_spec.rb
favourite_spec.rb
follow_request_spec.rb Add and Remove tests for FollowRequest (#5622) 2017-11-09 14:36:52 +01:00
follow_spec.rb
home_feed_spec.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
import_spec.rb Validate data of Imports (#4782) 2017-09-02 20:45:42 +02:00
invite_spec.rb Add consumable invites (#5814) 2017-11-27 16:07:59 +01:00
list_account_spec.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
list_spec.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
media_attachment_spec.rb Add tests for MediaAttachment (#5620) 2017-11-08 15:29:07 +09:00
mention_spec.rb
mute_spec.rb
notification_spec.rb Fix N+1 at notification (#5752) 2017-11-19 15:32:48 +01:00
preview_card_spec.rb
remote_follow_spec.rb Remove empty strings (#5732) 2017-11-17 10:52:30 +09:00
remote_profile_spec.rb Add tests for RemoteProfile (#5665) 2017-11-12 16:23:31 +09:00
report_filter_spec.rb
report_spec.rb Feat add validation for report comment: characters under 1000 valid (#4833) 2017-09-07 09:55:42 +02:00
session_activation_spec.rb Add tests for SessionActivation (#5668) 2017-11-13 09:54:48 +09:00
setting_spec.rb Add tests for Setting (#5683) 2017-11-14 11:08:04 +09:00
site_upload_spec.rb Add a test for SiteUpload#cache_key (#5685) 2017-11-14 20:44:11 +01:00
status_pin_spec.rb Pinned statuses (#4675) 2017-08-25 01:41:18 +02:00
status_spec.rb Add tests for Status#title (#5718) 2017-11-19 04:15:17 +01:00
stream_entry_spec.rb Add tests for StreamEntry (#5687) 2017-11-15 02:00:58 +01:00
subscription_spec.rb
tag_spec.rb Add a test for Tag#to_param (#5705) 2017-11-15 16:04:41 +01:00
user_spec.rb Add consumable invites (#5814) 2017-11-27 16:07:59 +01:00