From 75ed7c26e58775ae82e64d56e84126602aa85bae Mon Sep 17 00:00:00 2001 From: Mariano Saura Date: Mon, 15 Apr 2024 16:12:20 -0300 Subject: [PATCH] Missing 'dbTransient' as option in a couple of classes added --- .../Stargate-JSON-RPC/JsonRPCRequestHandler.class.st | 9 ++++++--- source/Stargate-Model/HTTPBasedRESTfulAPI.class.st | 8 ++++++-- source/Stargate-Model/HttpRequestContext.class.st | 12 ++++++++---- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/source/Stargate-JSON-RPC/JsonRPCRequestHandler.class.st b/source/Stargate-JSON-RPC/JsonRPCRequestHandler.class.st index f1271dd..91a435b 100644 --- a/source/Stargate-JSON-RPC/JsonRPCRequestHandler.class.st +++ b/source/Stargate-JSON-RPC/JsonRPCRequestHandler.class.st @@ -10,7 +10,10 @@ Class { 'resourceLocator' ], #category : 'Stargate-JSON-RPC', - #package : 'Stargate-JSON-RPC' + #package : 'Stargate-JSON-RPC', + #'gs_options' : [ + 'dbTransient' + ] } { #category : 'instance creation' } @@ -54,8 +57,8 @@ JsonRPCRequestHandler >> initialize [ super initialize. messageProcessor := JRPCMessageProcessor new. - acceptNegotiator := RESTfulControllerAcceptNegotiator - accepting: ( Array with: ZnMimeType applicationJson ) + acceptNegotiator := RESTfulControllerAcceptNegotiator accepting: + (Array with: ZnMimeType applicationJson) ] { #category : 'initialization' } diff --git a/source/Stargate-Model/HTTPBasedRESTfulAPI.class.st b/source/Stargate-Model/HTTPBasedRESTfulAPI.class.st index f7fcf25..9b5b689 100644 --- a/source/Stargate-Model/HTTPBasedRESTfulAPI.class.st +++ b/source/Stargate-Model/HTTPBasedRESTfulAPI.class.st @@ -15,7 +15,10 @@ Class { ], #category : 'Stargate-Model-Controllers', #package : 'Stargate-Model', - #tag : 'Controllers' + #tag : 'Controllers', + #'gs_options' : [ + 'dbTransient' + ] } { #category : 'instance creation' } @@ -152,7 +155,8 @@ HTTPBasedRESTfulAPI >> initializeConfiguredBy: configuration installing: aRESTfu { #category : 'initialization' } HTTPBasedRESTfulAPI >> initializeControllersWithAll: aRESTfulControllerCollection [ - controllers := OrderedCollection with: ( OperationalPluginsRESTfulController on: self ). + controllers := OrderedCollection with: + (OperationalPluginsRESTfulController on: self). controllers addAll: aRESTfulControllerCollection ] diff --git a/source/Stargate-Model/HttpRequestContext.class.st b/source/Stargate-Model/HttpRequestContext.class.st index aee979b..17a50c3 100644 --- a/source/Stargate-Model/HttpRequestContext.class.st +++ b/source/Stargate-Model/HttpRequestContext.class.st @@ -10,7 +10,10 @@ Class { ], #category : 'Stargate-Model-Routing', #package : 'Stargate-Model', - #tag : 'Routing' + #tag : 'Routing', + #'gs_options' : [ + 'dbTransient' + ] } { #category : 'pagination' } @@ -71,9 +74,10 @@ HttpRequestContext >> initialize [ { #category : 'accessing' } HttpRequestContext >> objectUnder: aConcept [ - ^ self - objectUnder: aConcept - ifNone: [ NotFound signal: ( 'Missing <1s> in the request context' expandMacrosWith: aConcept asString ) ] + ^ self objectUnder: aConcept ifNone: [ + NotFound signal: + ('Missing <1s> in the request context' expandMacrosWith: + aConcept asString) ] ] { #category : 'accessing' }