MCPcopy
hub / github.com/apache/devlake / GetScope

Method GetScope

backend/test/helper/api.go:256–263  ·  view source on GitHub ↗
(pluginName string, connectionId uint64, scopeId string, listBlueprints bool)

Source from the content-addressed store, hash-verified

254}
255
256func (d *DevlakeClient) GetScope(pluginName string, connectionId uint64, scopeId string, listBlueprints bool) ScopeResponse {
257 scopeRaw := sendHttpRequest[map[string]any](d.testCtx, d.timeout, &testContext{
258 client: d,
259 printPayload: true,
260 inlineJson: false,
261 }, http.MethodGet, fmt.Sprintf("%s/plugins/%s/connections/%d/scopes/%s?blueprints=%v", d.Endpoint, pluginName, connectionId, scopeId, listBlueprints), nil, nil)
262 return getScopeResponse(scopeRaw)
263}
264
265func (d *DevlakeClient) DeleteScope(pluginName string, connectionId uint64, scopeId string, deleteDataOnly bool) services.BlueprintProjectPairs {
266 return sendHttpRequest[services.BlueprintProjectPairs](d.testCtx, d.timeout, &testContext{

Callers

nothing calls this directly

Calls 2

sendHttpRequestFunction · 0.85
getScopeResponseFunction · 0.85

Tested by

no test coverage detected