This repository has been archived on 2023-03-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
osr-discourse-src/app/models
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
..
2017-07-28 10:20:09 +09:00
2018-02-20 14:28:58 +08:00
2018-02-20 14:28:58 +08:00
2018-06-07 13:28:18 +08:00
2018-07-16 14:19:07 +08:00
2018-02-20 14:28:58 +08:00
2018-07-16 14:19:07 +08:00
2018-02-20 14:28:58 +08:00
2018-02-20 14:28:58 +08:00
2018-02-20 14:28:58 +08:00
2018-07-25 15:12:01 -04:00
2017-03-22 14:26:53 +08:00
2018-08-01 16:34:54 +10:00
2018-06-07 13:28:18 +08:00
2017-07-28 10:20:09 +09:00
2018-05-01 15:43:49 +02:00
2018-07-16 14:19:07 +08:00
2018-02-20 14:28:58 +08:00
2018-07-06 17:16:40 -05:00
2018-02-20 14:28:58 +08:00
2018-02-20 14:28:58 +08:00
2018-02-20 14:28:58 +08:00
2018-07-16 14:19:07 +08:00
2018-02-20 14:28:58 +08:00
2018-07-26 10:17:51 +08:00
2018-04-02 13:52:51 +08:00
2018-02-20 14:28:58 +08:00
2018-07-16 14:19:07 +08:00
2018-02-20 14:28:58 +08:00
2018-07-24 15:49:55 +08:00
2018-07-16 14:19:07 +08:00
2018-02-20 14:28:58 +08:00
2018-07-16 14:19:07 +08:00
2018-03-16 11:19:06 +11:00
2018-02-20 14:28:58 +08:00
2018-02-20 14:28:58 +08:00
2018-06-20 10:44:11 +10:00
2018-07-16 14:19:07 +08:00
2018-05-09 07:52:45 +08:00
2018-02-20 14:28:58 +08:00
2018-07-16 14:19:07 +08:00
2018-07-16 14:19:07 +08:00
2018-07-16 14:19:07 +08:00
2018-07-16 14:19:07 +08:00
2018-07-16 14:19:07 +08:00
2018-07-16 14:19:07 +08:00
2018-03-16 22:55:42 +01:00
2018-07-16 14:19:07 +08:00
2018-06-07 13:28:18 +08:00
2018-06-20 18:03:27 +10:00
2018-02-20 14:28:58 +08:00
2017-03-22 14:26:53 +08:00
2018-07-16 14:19:07 +08:00
2018-07-16 14:19:07 +08:00
2018-02-20 14:28:58 +08:00
2018-02-20 14:28:58 +08:00
2018-02-20 14:28:58 +08:00
2018-07-16 14:19:07 +08:00
2018-02-20 14:28:58 +08:00
2018-02-20 14:28:58 +08:00
2018-07-16 14:19:07 +08:00
2018-02-20 14:28:58 +08:00
2018-06-07 13:28:18 +08:00