summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/run-frontend-unittests.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cmake: s/--prod/--configuration=production/Kefu Chai2022-05-041-1/+1
| | | | | | | | to silence the warning from Angular 12.0 and up, which complains like: Option "--prod" is deprecated: Use "--configuration production" instead Signed-off-by: Kefu Chai <tchaikov@gmail.com>
* mgr/dashboard: Update Angular version to 12Nizamudeen A2022-01-051-1/+3
| | | | | | | | | | A full changelog can be seen here: https://blog.angular.io/angular-v12-is-now-available-32ed51fbfd49 For us, the most I had to do is to take care of the min-max validation and a small CSS change regarding the math() Fixes: https://tracker.ceph.com/issues/53049 Signed-off-by: Nizamudeen A <nia@redhat.com>
* mgr/dashboard: fix frontend deps' vulnerabilitiesAlfonso Martínez2021-12-021-8/+0
| | | | | | | | - Remove npm-force-resolutions: no resolution needed anymore and this is modifying package-lock.json every time it is run (striping last empty line). - Add .npmrc: save exact version by default; do not launch audit report when installing. Fixes: https://tracker.ceph.com/issues/48005 Signed-off-by: Alfonso Martínez <almartin@redhat.com>
* cmake: push frontend build logic downKefu Chai2021-07-221-1/+1
| | | | | | it's simpler to build frontend in frontend/CMakeLists.txt Signed-off-by: Kefu Chai <kchai@redhat.com>
* mgr/dashboard: fix HACKING.rst referenceTatjana Dehler2020-11-111-1/+1
| | | | | | | | Update the documentation reference as the content of the HACKING.rst file has been moved to the Ceph developer documentation. Signed-off-by: Tatjana Dehler <tdehler@suse.com>
* Merge pull request #34965 from Devp00l/wip-45433Laura Paduano2020-05-131-11/+0
|\ | | | | | | | | | | mgr/dashboard: Always use fast angular unit tests Reviewed-by: Alfonso Martínez <almartin@redhat.com> Reviewed-by: Tiago Melo <tmelo@suse.com>
| * mgr/dashboard: Always use fast angular unit testsStephan Müller2020-05-081-11/+0
| | | | | | | | | | | | | | | | | | | | This will replace the current approach having a fast testing workaround that didn't fully work on every test. Now using ng-bullet's optimization works with every test, therefore there is no need to keep the old configuration files and use the slow testing on Jenkins. Fixes: https://tracker.ceph.com/issues/45433 Signed-off-by: Stephan Müller <smueller@suse.com>
* | mgr/dashboard: Fix I18N errorsTiago Melo2020-05-071-5/+10
|/ | | | | | | | | We were just checking if the translation sources were correct and ignore if the extraction simply failed. Fixes: https://tracker.ceph.com/issues/45428 Signed-off-by: Tiago Melo <tmelo@suse.com>
* mgr/dashboard: Check for missing npm resolutionsTiago Melo2020-03-241-1/+9
| | | | | | | | | | Check if it's necessary to run "npm run fix:audit" before committing the changes. This is important to resolve some issues with building and to fix some npm vulnerabilities. Fixes: https://tracker.ceph.com/issues/44723 Signed-off-by: Tiago Melo <tmelo@suse.com>
* mgr/dashboard: enable run-frontend-unittest.sh to run from any directoryPatrick Seidensal2019-09-201-1/+3
| | | | Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
* allow for multiple "build" dirs to existYuval Lifshitz2019-09-061-1/+2
| | | | Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
* mgr/dashboard: Add transifex-i18ntoolSebastian Krah2019-08-091-1/+1
| | | | | | | Adds the npm package transifex-i18ntool which manages the translation files of the ceph dashboard Signed-off-by: Sebastian Krah <skrah@suse.com>
* mgr/dashboard: Improve hints shown when message.xlf is invalidPatrick Nawracay2019-06-041-1/+1
| | | | | | Fixes: http://tracker.ceph.com/issues/40064 Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
* mgr/dashboard: Remove messages.xlfSebastian Krah2019-05-091-6/+0
| | | | | | | | Removes the messages.xlf file from the git repository, due to a lot of merge conflicts. It won't cause any problems, because the file is not important for building or the translation during runtime. Fixes: https://tracker.ceph.com/issues/38003 Signed-off-by: Sebastian Krah <skrah@suse.com>
* mgr/dashboard: Add i18n validation scriptTiago Melo2018-11-261-0/+16
| | | | | | This will check if there are new strings, validate them and ask the developer to commit and fix those. Signed-off-by: Tiago Melo <tmelo@suse.com>
* mgr/dashboard: run-frontend-unittests: fix CEPH_ROOT initializationRicardo Dias2018-10-291-0/+1
| | | | Signed-off-by: Ricardo Dias <rdias@suse.com>
* mgr/dashboard: Update frontend linting scripts and documentationTiago Melo2018-09-261-8/+3
| | | | Signed-off-by: Tiago Melo <tmelo@suse.com>
* FreeBSD: update build script to current stateWillem Jan Withagen2018-08-061-2/+6
| | | | Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
* mgr/dashboard: Improve prettier scripts and documentationTiago Melo2018-07-261-7/+24
| | | | | | | | | | | | | | | | | | Added prettier validation to the run-frontend-unittests script. This will make sure we are always running prettier in our commits. Added 2 new npm scripts: - 'prettier', will run prettier formatter on all frontend files - 'prettier:lint', will check all frontend files against prettier linter Removed 'pretty-quick' and related scripts. Since we now have all files prettified we can simply run prettier on them. Remove 'tslint-eslint-rules' package and all related rules. Prettier can check all the removed rules. Updated HACKING.rst with some information about prettier. Signed-off-by: Tiago Melo <tmelo@suse.com>
* mgr/dashboard: fix lint error caused by codelyzer updateTiago Melo2018-06-251-1/+1
| | | Signed-off-by: Tiago Melo <tmelo@suse.com>
* mgr/dashboard: Resolve TestBed performance issueStephan Müller2018-06-081-0/+11
| | | | | | | | | | | | | | | | | With this helper function you can easily resolve the TestBed resetting performance issue. If more tests exists in a test suite, it makes sense to configure TestBed only once if you are not doing a lot of TestBed specific stuff (haven't hit the limitation). It will reduce the test run time by around $tests * 50 %. In my case it was a test suite with 47 tests with a run time of over 30s after using the static test bed method it ran in 1.2s. The run time was reduced to 0.04 %! This is equivalent to a speed increase of 2500% (100/0.04)! For our own security the normal way will be taken if you not set the _DEV_ configuration variable to true. It will be false when "run-frontend-unittests.sh" is run. Signed-off-by: Stephan Müller <smueller@suse.com>
* mgr/dashboard: Use Jest in package.json scriptsTiago Melo2018-05-171-1/+1
| | | Signed-off-by: Tiago Melo <tmelo@suse.com>
* mgr/dashboard: remove node/npm system installationTiago Melo2018-03-161-0/+4
| | | | | | | | | | Node and npm are now being installed in a virtualenv, removing the need of having it installed in the system or as a node dependency. Now, if you want to use npm, you just need to activate the virtualenv created on 'build/src/pybind/mgr/dashboard/node-env', and then you can execute the same commands as you did before. Signed-off-by: Tiago Melo <tmelo@suse.com>
* mgr/dashboard: renamed dashboard_v2 to dashboardRicardo Dias2018-03-161-0/+9
Signed-off-by: Ricardo Dias <rdias@suse.com>