#2051 - DMS unify methods #1888

Merged
jsegarra merged 17 commits from 2051_dms_methods_refactor into dev 2023-12-18 07:14:37 +00:00
Member
No description provided.
jsegarra added 4 commits 2023-12-12 14:03:12 +00:00
jgallego requested changes 2023-12-13 08:29:14 +00:00
@ -35,3 +35,3 @@
try {
const dms = await models.Dms.findById(id, null, myOptions);
let modelDms = null;
Owner

dejar el codigo como estaba, y que el que llama pase el dmsFk

dejar el codigo como estaba, y que el que llama pase el dmsFk
jsegarra marked this conversation as resolved
@ -40,3 +42,1 @@
await targetClaimDms.destroy(myOptions);
await targetDms.updateAttribute('dmsTypeFk', trashDmsType.id, myOptions);
// await targetDms.updateAttribute('dmsTypeFk', trashDmsType.id, myOptions);
Owner

dejar aquí lo que aplica al modelo claim-dms y lo otro moverlo a dms

dejar aquí lo que aplica al modelo claim-dms y lo otro moverlo a dms
jsegarra marked this conversation as resolved
jgallego requested changes 2023-12-13 08:39:19 +00:00
@ -0,0 +2,4 @@
import Component from 'core/lib/component';
import './style.scss';
export default class SectionDms extends Component {
Owner

extends section

extends section
jsegarra marked this conversation as resolved
jsegarra added 5 commits 2023-12-13 14:39:04 +00:00
jsegarra changed title from WIP: #2051 - DMS unify methods to #2051 - DMS unify methods 2023-12-13 14:39:43 +00:00
jsegarra requested review from jgallego 2023-12-14 06:13:19 +00:00
jsegarra added 1 commit 2023-12-14 06:22:25 +00:00
gitea/salix/pipeline/head There was a failure building this commit Details
397eb4d32b
Merge branch 'dev' into 2051_dms_methods_refactor
jgallego requested changes 2023-12-14 07:13:55 +00:00
@ -2,2 +2,3 @@
describe('TicketDms removeFile()', () => {
// f
fdescribe('TicketDms removeFile()', () => {
Owner

esto sin f

esto sin f
jsegarra marked this conversation as resolved
@ -40,0 +38,4 @@
if (!targetDms || !clientDms)
throw new UserError('Try again');
const clientDestroyed = await clientDms.destroy(myOptions);
Owner

ya que cambiamos el nombre de la variable, para mi queda mas claro,
clientDmsDestroyed porque en realidad no se elimina un cliente sino la relacion entre cliente y dms

ya que cambiamos el nombre de la variable, para mi queda mas claro, clientDmsDestroyed porque en realidad no se elimina un cliente sino la relacion entre cliente y dms
jsegarra marked this conversation as resolved
@ -2,2 +2,3 @@
describe('ClientDms removeFile()', () => {
// f
fdescribe('ClientDms removeFile()', () => {
Owner

sin f

sin f
jsegarra marked this conversation as resolved
@ -43,0 +38,4 @@
if (!targetDms || !ticketDms)
throw new UserError('Try again');
const ticketDestroyed = await ticketDms.destroy(myOptions);
Owner

ticketDmsDestroyed o si lo quieres generico selfDestroyed...

ticketDmsDestroyed o si lo quieres generico selfDestroyed...
Author
Member

He usado la misma sintaxis para todo %modelo%DmsDestroyed

He usado la misma sintaxis para todo %modelo%DmsDestroyed
jsegarra marked this conversation as resolved
@ -24,2 +24,4 @@
expect(error.message).toEqual(`You don't have enough privileges`);
});
// fit(`should uploadFile`, async() => {
Owner

elimina el codigo comentado

elimina el codigo comentado
jsegarra marked this conversation as resolved
jsegarra changed title from #2051 - DMS unify methods to WIP: #2051 - DMS unify methods 2023-12-14 11:27:38 +00:00
jsegarra added 1 commit 2023-12-14 11:28:57 +00:00
gitea/salix/pipeline/head This commit looks good Details
d0af29c0c5
refs #6264 test: remove force describe for dms test
jsegarra added 2 commits 2023-12-14 11:36:57 +00:00
jsegarra changed title from WIP: #2051 - DMS unify methods to #2051 - DMS unify methods 2023-12-14 11:41:07 +00:00
jsegarra added 1 commit 2023-12-14 11:41:14 +00:00
gitea/salix/pipeline/head This commit looks good Details
043c411f68
Merge branch 'dev' into 2051_dms_methods_refactor
jsegarra requested review from jgallego 2023-12-14 11:41:44 +00:00
jgallego approved these changes 2023-12-14 12:16:22 +00:00
Dismissed
jsegarra added 2 commits 2023-12-15 12:02:08 +00:00
jsegarra dismissed jgallego’s review 2023-12-15 12:02:09 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

jsegarra added 1 commit 2023-12-15 12:06:15 +00:00
gitea/salix/pipeline/head This commit looks good Details
1515b55f7d
Merge branch 'dev' into 2051_dms_methods_refactor
jgallego approved these changes 2023-12-16 11:01:54 +00:00
@ -21,3 +21,1 @@
Self.removeFile = async(ctx, id) => {
const models = Self.app.models;
const workerDms = await Self.findById(id);
Self.removeFile = async(ctx, id, options) => {
Owner

renombrar id por dmsFk

renombrar id por dmsFk
jsegarra merged commit 1810377738 into dev 2023-12-18 07:14:37 +00:00
jsegarra deleted branch 2051_dms_methods_refactor 2023-12-18 07:14:38 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/salix#1888
No description provided.