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/app
Martin Brennan ac7bf98ad1
DEV: Load client site settings YML into JS tests (#18413)
Our method of loading a subset of client settings into tests via
tests/helpers/site-settings.js can be improved upon. Currently we have a
hardcoded subset of the client settings, which may get out of date and not have
the correct defaults. As well as this plugins do not get their settings into the
tests, so whenever you need a setting from a plugin, even if it has a default,
you have to do needs.setting({ ... }) which is inconvenient.

This commit introduces an ember CLI build step to take the site_settings.yml and
all the plugin settings.yml files, pull out the client settings, and dump them
into a variable in a single JS file we can load in our tests, so we have the
correct selection of settings and default values in our JS tests. It also fixes
many, many tests that were operating under incorrect assumptions or old
settings.

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2022-11-08 09:17:43 +10:00
..
adapters FIX: Avoid duplicate topic-list requests (#18073) 2022-08-24 11:54:01 +01:00
components FIX: restore mention tab for experimental user nav (#18882) 2022-11-04 14:07:41 -04:00
controllers FIX: Bug with permanent delete modal (#18825) 2022-11-04 14:49:19 -04:00
helpers FEATURE: site setting to disable usernames in share links. (#18315) 2022-09-22 23:12:39 +05:30
initializers DEV: Load client site settings YML into JS tests (#18413) 2022-11-08 09:17:43 +10:00
lib FIX: Correctly render link title in draft preview (#18906) 2022-11-07 16:22:35 +02:00
mixins FIX: Correctly debounce various functions (#18673) 2022-10-20 13:28:09 +02:00
models FIX: topic tracking stage error when no tags (#18901) 2022-11-08 10:16:05 +11:00
modifiers DEV: Install ember-modifier and @ember/render-modifiers (#17595) 2022-07-21 18:12:29 +01:00
pre-initializers DEV: Clean up pre-initializers (#18680) 2022-10-26 09:19:54 +08:00
raw-views DEV: Use method definition syntax consistently (#14915) 2021-11-13 14:01:55 +01:00
routes UX: Change ordering of categories shown in sidebar (#18803) 2022-11-04 05:21:49 +09:00
services FIX: 404 sending beacon "leave all" on subfolder install 2022-09-27 19:57:38 +01:00
styles DEV: Migrate to Ember CLI (#11932) 2021-02-03 14:22:20 -05:00
templates DEV: Use action helper in bulk-tag modal (#18885) 2022-11-04 17:26:31 +00:00
widgets DEV: Load client site settings YML into JS tests (#18413) 2022-11-08 09:17:43 +10:00
app.js DEV: Normalize event handling to improve Glimmer + Classic component compat (Take 2) (#18742) 2022-10-26 14:44:12 +01:00
index.html DEV: Preload CSS in the <head> (#17322) 2022-07-05 00:23:09 +08:00
mapping-router.js DEV: Clean up pre-initializers (#18680) 2022-10-26 09:19:54 +08:00