Skip to content

Commit

Permalink
Missing 'dbTransient' as option in a couple of classes added
Browse files Browse the repository at this point in the history
  • Loading branch information
ytsejam78 committed Apr 15, 2024
1 parent 078c6cf commit 75ed7c2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
9 changes: 6 additions & 3 deletions source/Stargate-JSON-RPC/JsonRPCRequestHandler.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ Class {
'resourceLocator'
],
#category : 'Stargate-JSON-RPC',
#package : 'Stargate-JSON-RPC'
#package : 'Stargate-JSON-RPC',
#'gs_options' : [
'dbTransient'
]
}

{ #category : 'instance creation' }
Expand Down Expand Up @@ -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' }
Expand Down
8 changes: 6 additions & 2 deletions source/Stargate-Model/HTTPBasedRESTfulAPI.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ Class {
],
#category : 'Stargate-Model-Controllers',
#package : 'Stargate-Model',
#tag : 'Controllers'
#tag : 'Controllers',
#'gs_options' : [
'dbTransient'
]
}

{ #category : 'instance creation' }
Expand Down Expand Up @@ -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
]

Expand Down
12 changes: 8 additions & 4 deletions source/Stargate-Model/HttpRequestContext.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ Class {
],
#category : 'Stargate-Model-Routing',
#package : 'Stargate-Model',
#tag : 'Routing'
#tag : 'Routing',
#'gs_options' : [
'dbTransient'
]
}

{ #category : 'pagination' }
Expand Down Expand Up @@ -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' }
Expand Down

0 comments on commit 75ed7c2

Please sign in to comment.