discourse/test/javascripts/models
Jarek Radosz 1dcdcb5c31
FIX: Cast all numerical values in reports (#8087)
* FIX: Cast all numerical values in reports

The backend can return some numerical values in report as strings. That results in unexpected order of values when sorting report tables.

* Create `toNumber()` helper

The `typeof` and `parseFloat` seem to be the fastest path: https://jsperf.com/number-vs-typeof-vs-parsefloat#results
2019-09-12 15:17:34 +02:00
..
badge-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
category-test.js.es6 Revert "DEV: Use equal method instead of deepEqual" 2018-11-23 04:08:51 +05:30
composer-test.js.es6 DEV: Fix tests. 2018-11-27 13:05:27 +11:00
email-log-test.js.es6 FIX: ensure URLs include subfolder in admin emails UI 2018-08-08 16:48:03 -04:00
group-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
invite-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
model-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
nav-item-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
post-stream-test.js.es6 FIX: Hide live-loaded posts from ignored users 2019-07-25 12:01:29 +01:00
post-test.js.es6 DEV: prevents staff computed property to be overridden (#7931) 2019-07-24 22:01:08 +02:00
report-test.js.es6 FIX: Cast all numerical values in reports (#8087) 2019-09-12 15:17:34 +02:00
rest-model-test.js.es6 Set result.target for update (matching _saveNew) (#6094) 2018-07-17 11:56:32 -04:00
result-set-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
session-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
site-test.js.es6 FIX: on initial load category subcategories were not mapped correctly 2018-07-12 17:59:56 +10:00
staff-action-log-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
store-test.js.es6 FEATURE: Claim Reviewables by Topic 2019-05-09 13:40:36 -04:00
topic-details-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
topic-test.js.es6 FIX: Outsourced erb part from emoji.js.es6 (#7168) 2019-03-15 15:44:49 +11:00
topic-tracking-state-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
user-action-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
user-badge-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
user-drafts-test.js.es6 FEATURE: Drafts view in user profile 2018-08-01 16:34:54 +10:00
user-stream-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
user-test.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00