This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/unit
Krzysztof Kotlarek ad3ec5809f
FIX: Dismiss new with better migration (#12062)
Original PR was reverted because of broken migration https://github.com/discourse/discourse/pull/12058

I fixed it by adding this line
```
          AND topics.id IN(SELECT id FROM topics ORDER BY created_at DESC LIMIT :max_new_topics)
```

This time it is left joining a limited amount of topics. I tested it on few databases and it worked quite smooth
2021-02-15 08:50:33 +11:00
..
components DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
controllers DEV: Migrate to Ember CLI (#11932) 2021-02-03 14:22:20 -05:00
ember DEV: prettier 2.2.1 (#11862) 2021-01-27 12:39:20 +01:00
lib DEV: Migrate to Ember CLI (#11932) 2021-02-03 14:22:20 -05:00
mixins DEV: prettier 2.2.1 (#11862) 2021-01-27 12:39:20 +01:00
models FIX: Dismiss new with better migration (#12062) 2021-02-15 08:50:33 +11:00
services DEV: Migrate to Ember CLI (#11932) 2021-02-03 14:22:20 -05:00
utils DEV: Migrate to Ember CLI (#11932) 2021-02-03 14:22:20 -05:00
localization-test.js DEV: Sync up more Ember CLI features (#11790) 2021-01-21 15:55:39 -05:00