discourse/spec
Penar Musaraj 1f45215537 FEATURE: Drafts view in user profile
* add drafts.json endpoint, user profile tab with drafts stream

* improve drafts stream display in user profile

* truncate excerpts in drafts list, better handling for resume draft action

* improve draft stream SQL query, add rspec tests

* if composer is open, quietly close it when user opens another draft from drafts stream; load PM draft only when user is in /u/username/messages (instead of /u/username)

* cleanup

* linting fixes

* apply prettier styling to modified files

* add client tests for drafts, includes a fixture for drafts.json

* improvements to code following review

* refresh drafts route when user deletes a draft open in the composer while being in the drafts route; minor prettier scss fix

* added more spec tests, deleted an acceptance test for removing drafts that was too finicky, formatting and code style fixes, added appEvent for draft:destroyed

* prettier, eslint fixes

* use "username_lower" from users table, added error handling for rejected promises

* adds guardian spec for can_see_drafts, adds improvements following code review

* move DraftsController spec to its own file

* fix failing drafts qunit test, use getOwner instead of deprecated this.container

* limit test fixture for draft.json testing to new_topic request only
2018-08-01 16:34:54 +10:00
..
components FEATURE: Drafts view in user profile 2018-08-01 16:34:54 +10:00
fabricators Rename approval web hook event type to queued post 2018-07-26 10:29:38 +05:30
fixtures Add spec for 4bf3bf6786. 2018-07-26 09:16:14 +08:00
helpers Move into MiniSQLMultisiteConnection, and add test for rollback 2018-07-24 09:41:55 +01:00
import_export FIX: topic and category exporters were only exporting users who created the first post 2018-01-16 12:51:53 -05:00
integration DEV: Take 2 Queue jobs in tests by default. 2018-05-31 16:23:23 +08:00
integrity correct regression and add integrity spec for onceoffs 2018-06-20 09:09:31 +10:00
jobs Drop reply_key, skipped and skipped_reason from email_logs. 2018-07-30 11:39:28 +08:00
lib Rubocop fix 2018-07-24 10:49:20 +01:00
mailers Drop reply_key, skipped and skipped_reason from email_logs. 2018-07-30 11:39:28 +08:00
models FEATURE: Drafts view in user profile 2018-08-01 16:34:54 +10:00
multisite DEV: improve design of site setting default provider 2018-06-07 14:33:41 +10:00
requests FEATURE: Drafts view in user profile 2018-08-01 16:34:54 +10:00
serializers FIX: Should not include regular categories in top_category_ids array 2018-07-30 16:06:36 +05:30
services FIX: Check for group name availability should skip reserved usernames. 2018-08-01 11:09:33 +08:00
support DEV: Assert for 200 response code to avoid changing magic helper in the future. 2018-06-07 16:11:09 +08:00
tasks suppress print output when running specs 2017-10-31 16:06:11 +05:30
views/omniauth_callbacks Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
rails_helper.rb DEV: Raise an error if any test finishes with more than 1 busy AR connection. 2018-07-11 09:54:01 +08:00