From 2859e663d0654ff2f86f9489d7f3bb976c28ae06 Mon Sep 17 00:00:00 2001 From: Stefan Renczes Date: Mon, 7 Mar 2022 08:10:29 +0100 Subject: [PATCH 1/4] [NAE-1571] Change the Version.NEWEST from "^" to "latest" - refactored newest version string --- .../netgrif-components-core/src/lib/process/process.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/netgrif-components-core/src/lib/process/process.service.ts b/projects/netgrif-components-core/src/lib/process/process.service.ts index 3d24bebdc..d4b85c7a1 100644 --- a/projects/netgrif-components-core/src/lib/process/process.service.ts +++ b/projects/netgrif-components-core/src/lib/process/process.service.ts @@ -267,7 +267,7 @@ export class ProcessService implements OnDestroy { protected loadNetReference(id: string): Observable { const returnReference = new ReplaySubject(1); - this._petriNetResource.getOne(id, '^').subscribe(reference => { + this._petriNetResource.getOne(id, 'latest').subscribe(reference => { returnReference.next(!reference.stringId ? null : reference); returnReference.complete(); return; From b60938ed4b5d3e6977917c64b9aa827a086b5669 Mon Sep 17 00:00:00 2001 From: Stefan Renczes Date: Fri, 25 Mar 2022 11:18:23 +0100 Subject: [PATCH 2/4] [NAE-1571] Change the Version.NEWEST from "^" to "latest" - correcting according to PR --- .../netgrif-components-core/src/lib/process/process.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/netgrif-components-core/src/lib/process/process.service.ts b/projects/netgrif-components-core/src/lib/process/process.service.ts index d4b85c7a1..723889b74 100644 --- a/projects/netgrif-components-core/src/lib/process/process.service.ts +++ b/projects/netgrif-components-core/src/lib/process/process.service.ts @@ -27,6 +27,7 @@ export class ProcessService implements OnDestroy { protected _netUpdate: Subject; protected _requestCache: Map>; protected _referenceRequestCache: Map>; + protected readonly LATEST = 'latest'; constructor(private _petriNetResource: PetriNetResourceService, private _log: LoggerService) { this._nets = {}; @@ -267,7 +268,7 @@ export class ProcessService implements OnDestroy { protected loadNetReference(id: string): Observable { const returnReference = new ReplaySubject(1); - this._petriNetResource.getOne(id, 'latest').subscribe(reference => { + this._petriNetResource.getOne(id, this.LATEST).subscribe(reference => { returnReference.next(!reference.stringId ? null : reference); returnReference.complete(); return; From 0627e61c1b3d855143c57f6980ceaa1940a6cdc3 Mon Sep 17 00:00:00 2001 From: Stefan Renczes Date: Fri, 25 Mar 2022 11:27:59 +0100 Subject: [PATCH 3/4] [NAE-1571] Change the Version.NEWEST from "^" to "latest" - correcting according to PR --- .../netgrif-components-core/src/lib/process/process.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/netgrif-components-core/src/lib/process/process.service.ts b/projects/netgrif-components-core/src/lib/process/process.service.ts index 723889b74..b51b6cd0d 100644 --- a/projects/netgrif-components-core/src/lib/process/process.service.ts +++ b/projects/netgrif-components-core/src/lib/process/process.service.ts @@ -27,7 +27,7 @@ export class ProcessService implements OnDestroy { protected _netUpdate: Subject; protected _requestCache: Map>; protected _referenceRequestCache: Map>; - protected readonly LATEST = 'latest'; + public readonly LATEST = 'latest'; constructor(private _petriNetResource: PetriNetResourceService, private _log: LoggerService) { this._nets = {}; From 700a8b1003f544099e9ad313b8e5254a15dcc976 Mon Sep 17 00:00:00 2001 From: Machac Date: Mon, 28 Mar 2022 17:31:10 +0200 Subject: [PATCH 4/4] [NAE-1571] Change the Version.NEWEST from "^" to "latest" - update gitignore --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 423624255..2b5c8b55c 100644 --- a/.gitignore +++ b/.gitignore @@ -47,5 +47,4 @@ testem.log # System Files .DS_Store Thumbs.db - package-lock.json