Jarek Radosz
48ba65f406
DEV: Clean up Ember imports ( #8979 )
...
Includes:
* Import `computed` helpers
* Import `@ember/application`
* Import `isBlank` from `@ember/utils`
* Import `A` from `@ember/array`
* Import `EmberArray` from `@ember/array`
* Import `ArrayProxy` from `@ember/array/proxy`
* Import `warn` from `@ember/debug`
* Import `EmberObject` from `@ember/object`
* Import `Application` from `@ember/application`
* Import `EmberRouter` from `@ember/routing/router`
* Import `isPresent` from `@ember/utils`
* Import `computed` from `@ember/object`
* Import `guidFor` from `@ember/object`
* Import `isArray` from `@ember/array`
* Import `TextField` from `@ember/component`
* Import `TextArea` from `@ember/component`
* Import `Promise` from `rsvp`
* Import `Evented` from `@ember/object/evented`
* Replace deprecated `ember-addons/ember-computed-decorators` imports
2020-03-06 23:49:28 +01:00
Jarek Radosz
4da357e378
DEV: Use async functions in tests ( #9087 )
...
This change both improves readability and fixes potential race-condition issues where promises were nested instead of being chained.
Also includes:
* Use arrow functions and Promise shorthands
* Remove the obsolete `asyncTestDiscourse` helper
2020-03-02 21:20:19 +01:00
Mark VanLandingham
176aa0ac7d
DEV: Import pretender instead of global server var ( #8996 )
...
* DEV: Remove server global test variable
* Delete yarn-error.log
* prettier and some eslint fixes
* add global server variable back for plugins
* rename imported server to pretender
* prettier
* support plugin server. usage
* Export pretender as named
* Prettier
* change default pretender export
* fix bad import
* Use pretender() and original default export
* export new Pretender as default
* fix accidental change
* WIP testing
* add pretend handlers in correct location
* move more stuff into the correct pretender
* Consolidated more pretenders
* comment out another bad test
* fix user acceptance tests
* commented out bad test
* fixed another composer server stub
* fix more tests
* fixed tag test pretender
* Fix admin email test
* removed another draft handler
* add back test
* fix and uncomment another test
* remove test that is not useful
* remove commented out lines
* reapply handlers between every test
* no need to re-stub requests now :)
* cleanup from review
* more cleanup
2020-03-02 14:24:31 -05:00
Robin Ward
d7ae052efe
DEV: Don't allow Promise
unless imported from "rsvp"
...
We want to make sure we are using the correct promise implementation so
let's lint out the browser version.
2019-11-20 15:24:59 -05:00
Penar Musaraj
cc8baa1a7c
Fix Prettier using correct version (1.19.1)
2019-11-15 10:34:26 -05:00
Penar Musaraj
655e610357
Fix Prettier
2019-11-15 10:28:46 -05:00
Martin Brennan
abf215a0e4
Bump prettier to 1.19.1 and lock dependency ( #8350 )
2019-11-15 10:07:45 -05:00
Robin Ward
bc2067898e
FIX: Missing User objects in Utilities
2019-11-13 15:55:32 -05:00
Robin Ward
7e44065bcb
REFACTOR: Migrate Discourse.Post
to imports
2019-11-08 13:13:13 -05:00
David Taylor
4f1382a54a
FIX: Hide live-loaded posts from ignored users
2019-07-25 12:01:29 +01:00
David Taylor
000a35b219
FIX: Do not live-load posts from ignored users
2019-06-11 12:07:14 +01:00
Guo Xiang Tan
258e9e35ca
PERF: Make mega topics work without a stream.
...
There are tradeoffs that we took here. For the complete
story see
https://meta.discourse.org/t/performance-improvements-on-long-topics/30187/27?u=tgxworld .
2018-07-12 12:46:12 +08:00
Guo Xiang Tan
8f4cb1a742
UX: Timeline lookup on mega topics should use date of current post.
2018-07-10 16:43:20 +08:00
Guo Xiang Tan
d1c3eb6bfa
FIX: Recovering a post does not insert it back into the stream correctly.
2018-06-29 11:41:44 +08:00
Joffrey JAFFEUX
03a7d532cf
DEV: introduces prettier for es6 files
2018-06-15 17:03:24 +02:00
Robin Ward
cc525b1a8d
Upgrade QUnit to latest version
2017-06-15 10:12:07 -04:00
Robin Ward
e03d5e2140
Reapply Ember 2.10 for good this time!
...
This reverts commit ddd299f4aaf25353cc2f47829d213623a3cf7590.
2016-12-19 11:19:10 -05:00
Robin Ward
ddd299f4aa
Revert "Revert "Revert Ember 2.10+ for a short while""
...
This reverts commit 76bbc481cb5bb3e3b35ece5aa5e1275d3d34e4a0.
2016-12-16 10:29:30 -05:00
Robin Ward
76bbc481cb
Revert "Revert Ember 2.10+ for a short while"
...
This reverts commit 21682fd60b92414348a0e4aecdab1bc5278e14e6.
2016-12-16 09:52:29 -05:00
Robin Ward
21682fd60b
Revert Ember 2.10+ for a short while
2016-12-15 16:43:38 -05:00
Robin Ward
28699e66d8
Revert "REVERT: Ember 2.10 -- it's not building properly"
...
This reverts commit 600541c6238a5b371992ad363859d5d9c75ad004.
2016-12-15 10:28:15 -05:00
Robin Ward
600541c623
REVERT: Ember 2.10 -- it's not building properly
2016-12-12 16:19:05 -05:00
Robin Ward
765e5e9186
Upgrade to Ember 2.9
2016-12-12 14:44:29 -05:00
Robin Ward
a9d7569dda
Replace computed properties for topic query params
2016-11-03 13:09:43 -04:00
Robin Ward
559fa36c18
FEATURE: Topic timeline widget
2016-05-31 10:51:39 -04:00
Robin Ward
d1e85bdd8b
FEATURE: Use virtual dom framework for faster post rendering
2016-02-11 11:00:40 -05:00
Robin Ward
4e80323567
FIX: Remove useless stub tests
2015-12-07 14:27:43 -05:00
Robin Ward
255a5be015
Revert "Cleaner implementation of postsWithPlaceholders
and more tests."
...
This reverts commit 4c0670a10968b852fc905c561254831574204046.
2015-12-04 15:59:46 -05:00
Robin Ward
a51c91ac05
Revert "FIX: Errors with summary views and placeholders"
...
This reverts commit 5be3bf80eb6fa80740713430c2835a6090a3e2e5.
2015-12-04 15:59:39 -05:00
Robin Ward
5be3bf80eb
FIX: Errors with summary views and placeholders
2015-12-04 15:10:13 -05:00
Robin Ward
4c0670a109
Cleaner implementation of postsWithPlaceholders
and more tests.
2015-12-04 15:10:13 -05:00
Robin Ward
40c8d39137
FEATURE: Reply Placeholders in Stream
2015-12-04 10:02:58 -05:00
Robin Ward
949f51ffe0
Remove ajax stubbing from post-stream tests
2015-12-04 10:02:37 -05:00
Sam Saffron
85f1cf7d1b
correct test
2015-10-05 16:45:53 +11:00
Robin Ward
02a968bd27
Remove ObjectController, Discouse Controllers + Presence
2015-08-13 10:49:08 -04:00
Robin Ward
e026dc16d8
FIX: Broken tests :fired:
2015-06-29 15:38:28 -04:00
Robin Ward
00572c4f11
FIX: The time gap would disappear after a post was comitted
2015-06-19 10:32:58 -04:00
Robin Ward
42bd9b6199
FEATURE: Show time gap between posts if more than a few days
2015-06-18 17:06:25 -04:00
Robin Ward
d4a05825da
Convert Composer
to use Store
...
- Uses store for `PostStream`, `TopicList` too
2015-04-15 14:54:36 -04:00
Sam
8b4469a3f0
improve tests, ensure stream grows if all posts are loaded on commit
2015-03-16 17:40:49 +11:00
Sam
db7a225df7
correct specs
2015-03-06 14:36:00 +11:00
Robin Ward
a519fd5bcf
FIX: Highlighting was not being applied after some rendering.
...
Also includes a bunch of ES6 stuff.
2015-02-12 15:37:02 -05:00
Robin Ward
1e6dea46dd
FIX: Jump to post was not respecting gaps
2015-01-12 18:10:30 -05:00
Robin Ward
2d6b15a34d
Load fewer posts when the android platform is detected
2014-12-12 11:47:39 -05:00
Robin Ward
e035b07e92
Put Ember 1.8.1 + fixes back.
2014-12-04 08:51:35 -05:00
Sam
8977d5917b
revert
2014-12-04 09:35:11 +11:00
Robin Ward
39fde5b9fb
Upgrade to 1.8.1: So long, metamorphs!
2014-12-03 10:49:18 -05:00
Jeff Atwood
92b615b503
reorganize site settings a bit
2014-10-19 23:14:50 -07:00
Robin Ward
f977843391
ES6: Convert all test files over
2014-08-06 17:51:03 -04:00