discourse/app
Joffrey JAFFEUX 0d0303e7ea
FIX: more resilient lookup in plugin-api (#6961)
Ember3 is more picky about having a container being destroyed and it's easier to cause exceptions, especially in tests.

This fix has been initially created for an exception occuring in tests when running discourse-code-review and discourse-polls tests at the same time. `getCurrentUser` method body was failing as the container was destroyed.

Original  stacktrace:

```
"Error: Assertion Failed: expected container not to be destroyed
    at new EmberError (ember:2929:31)
    at assert (ember:1793:23)
    at Container.lookup (ember:17736:64)
    at PluginApi.getCurrentUser (discourse/lib/plugin-api:56:31)
    at allowUser (javascripts/discourse/initializers/init-code-review:38:29)
    at eval (javascripts/discourse/initializers/init-code-review:78:11)
    at eval (select-kit/mixins/plugin-api:86:19)
    at Array.forEach (<anonymous>)
    at eval (select-kit/mixins/plugin-api:85:44)
    at Array.forEach (<anonymous>)"
```
2019-01-29 16:54:04 +01:00
..
assets FIX: more resilient lookup in plugin-api (#6961) 2019-01-29 16:54:04 +01:00
controllers FIX: Support application/gzip theme imports, and improve error message 2019-01-28 11:51:14 +00:00
helpers FEATURE: Allow overriding text size from a different device (#6955) 2019-01-28 11:19:50 +00:00
jobs FIX: Respect min_flags_staff_visibility for new flags too 2019-01-25 11:27:43 -05:00
mailers FIX: Keep original subject in emails to staged users 2019-01-18 11:07:54 +01:00
models DEV: Remove underscore from learn_more key in theme export 2019-01-28 16:00:33 +00:00
serializers FEATURE: Allow overriding text size from a different device (#6955) 2019-01-28 11:19:50 +00:00
services FEATURE: Allow overriding text size from a different device (#6955) 2019-01-28 11:19:50 +00:00
views UX: Add post action text in non-JS topic view 2019-01-28 22:51:06 +05:30