Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0048133 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS Hardware Manager | major | have not tried | 2021-11-23 10:42 | 2021-11-24 09:04 | |||
Reporter | adrianromero | View Status | public | |||||
Assigned To | adrianromero | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR22Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | alostale | |||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0048133: Fix ESLINT and PRETTIER warnings | |||||||
Description | There are two javascript files in the Hardware Manager that have js warnings: Checking formatting... modules/org.openbravo.retail.poshwmanager.sources/project/src/com/openbravo/poshw/www/handlebars.min.js modules/org.openbravo.retail.poshwmanager.sources/project/src/com/openbravo/poshw/www/processtemplate.js Code style issues found in the above file(s). Forgot to run Prettier? Lint check for Core files /srv/ci/workspace/mod-simple-ci34.52016/modules/org.openbravo.retail.poshwmanager.sources/project/src/com/openbravo/poshw/www/handlebars.min.js 27:2 error Replace `function(a,b){"object"==typeof·exports&&"object"==typeof·module?module.exports=b():"function"==typeof·define&&define.amd?define([],b):"object"==typeof·exports?exports.Handlebars=b():a.Handlebars=b()} ... /srv/ci/workspace/mod-simple-ci34.52016/modules/org.openbravo.retail.poshwmanager.sources/project/src/com/openbravo/poshw/www/processtemplate.js 11:10 warning 'processTemplate' is defined but never used no-unused-vars 12:1 error Replace `âŽÂ·Â·fetch(url,·'GET')âŽÂ·Â·.then(function·` with `··fetch(url,·'GET').then(function` prettier/prettier 16:39 error Replace `document.getElementById('data-template').innerHTML` with `âŽÂ·Â·Â·Â·Â·Â·document.getElementById('data-template').innerHTMLâŽÂ·Â·Â·Â·` prettier/prettier 17:73 error Replace `context` with `âŽÂ·Â·Â·Â·Â·Â·contextâŽÂ·Â·Â·Â·` prettier/prettier 21:10 error 'fetch' is already defined as a built-in global variable no-redeclare 22:30 error Delete `·` prettier/prettier 24:46 error Delete `·` prettier/prettier 36:2 error Insert `âŽ` prettier/prettier | |||||||
Steps To Reproduce | Run ESLINT and PRETTIER using these two js files as parameters | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0133315) hgbot (developer) 2021-11-24 07:01 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources [^] Changeset: 966d628ecd567bb2c3933684d039341aee0cfc7e Author: Adrián Romero <adrian.romero@openbravo.com> Date: 2021-11-24T06:01:52+00:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/commit/966d628ecd567bb2c3933684d039341aee0cfc7e [^] Fixes ISSUE-0048133: Fix ESLINT and PRETTIER warnings --- A .eslintignore A .prettierignore M project/src/com/openbravo/poshw/www/processtemplate.js --- |
(0133325) hgbot (developer) 2021-11-24 09:04 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager [^] Changeset: dbbb84acce7671a2868447dfc5d8b8b0c95d37d5 Author: Adrián Romero <adrian.romero@openbravo.com> Date: 2021-11-24T09:04:14+01:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager/-/commit/dbbb84acce7671a2868447dfc5d8b8b0c95d37d5 [^] Related ISSUE-0048133: Fix ESLINT and PRETTIER warnings --- M bin/poshw.jar M bin/rev.id --- |
![]() |
|||
Date Modified | Username | Field | Change |
2021-11-23 10:42 | adrianromero | New Issue | |
2021-11-23 10:42 | adrianromero | Assigned To | => Retail |
2021-11-23 10:42 | adrianromero | OBNetwork customer | => No |
2021-11-23 10:42 | adrianromero | Triggers an Emergency Pack | => No |
2021-11-24 07:01 | hgbot | Resolution | open => fixed |
2021-11-24 07:01 | hgbot | Status | new => resolved |
2021-11-24 07:01 | hgbot | Fixed in Version | => RR22Q1 |
2021-11-24 07:01 | hgbot | Note Added: 0133315 | |
2021-11-24 07:07 | alostale | Assigned To | Retail => adrianromero |
2021-11-24 07:07 | alostale | Review Assigned To | => alostale |
2021-11-24 07:07 | alostale | Status | resolved => closed |
2021-11-24 09:04 | hgbot | Note Added: 0133325 |
Copyright © 2000 - 2009 MantisBT Group |