feat(salix): refs #5926 #5926 remove comments and fix sql script

This commit is contained in:
Javier Segarra 2024-07-08 12:00:36 +02:00
parent 91b4f912ee
commit 3f1c843332
4 changed files with 15 additions and 17 deletions

View File

@ -111,18 +111,6 @@ describe('Docuware core', () => {
describe('uploadOptions()', () => {
it('should return uploadOptions', async() => {
spyOn(Docuware, 'getDialog').and.returnValue((new Promise(resolve => resolve(Math.random()))));
// const dialogs = {
// data: {
// Dialog: [
// {
// DisplayName: 'find',
// Id: 'getDialogTest'
// }
// ]
// }
// };
// spyOn(axios, 'get').and.returnValue(new Promise(resolve => resolve(dialogs)));
const {uploadOptions: result} = await Docuware.uploadOptions(1, {
'N__DOCUMENTO': {
type: 'string',

View File

@ -315,6 +315,4 @@ INSERT INTO mysql.roles_mapping (`User`, `Host`, `Role`, `Admin_option`)
FROM mysql.roles_mapping
WHERE `User` LIKE @prefixedLike AND `Host` = @genRoleHost;
INSERT INTO vn.docuware (code,fileCabinetName,`action`,dialogName,findById,dmsTypeFk,modelFk)
VALUES ('hr','RRHH','store','Archivar','N__DOCUMENTO',3,'worker');
FLUSH PRIVILEGES;

View File

@ -1,14 +1,13 @@
-- Place your SQL code here
ALTER TABLE vn.docuware ADD modelFk VARCHAR(45) DEFAULT NULL NULL;
ALTER TABLE vn.docuware ADD CONSTRAINT docuware_module_FK FOREIGN KEY (modelFk) REFERENCES salix.module(code);
ALTER TABLE vn.docuwareTablet ADD fileCabinet varchar(100) NULL;
-- Auto-generated SQL script #202405221107
INSERT IGNORE INTO vn.docuware (code,fileCabinetName,`action`,dialogName,findById,dmsTypeFk,modelFk)
VALUES ('hr','RRHH','store','Archivar','N__DOCUMENTO',3,'worker');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Worker','signPdaPdf','READ','ALLOW','ROLE','hr');
-- Auto-generated SQL script #202406061008
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Docuware','upload','WRITE','ALLOW','ROLE','hr');

View File

@ -36,7 +36,20 @@ async function test() {
const jasmine = new Jasmine();
const specFiles = [
`./e2e/paths/01*/*[sS]pec.js`,
`./e2e/paths/02*/*[sS]pec.js`,
`./e2e/paths/03*/*[sS]pec.js`,
`./e2e/paths/04*/*[sS]pec.js`,
`./e2e/paths/05*/*[sS]pec.js`,
`./e2e/paths/06*/*[sS]pec.js`,
`./e2e/paths/07*/*[sS]pec.js`,
`./e2e/paths/08*/*[sS]pec.js`,
`./e2e/paths/09*/*[sS]pec.js`,
`./e2e/paths/10*/*[sS]pec.js`,
`./e2e/paths/11*/*[sS]pec.js`,
`./e2e/paths/12*/*[sS]pec.js`,
`./e2e/paths/13*/*[sS]pec.js`,
`./e2e/paths/**/*[sS]pec.js`
];
jasmine.loadConfig({