MCPcopy Create free account
hub / github.com/driangle/taskmd / effectiveDP

Function effectiveDP

apps/cli/internal/web/project_resolver.go:109–114  ·  view source on GitHub ↗

effectiveDP returns the project-scoped DataProvider from request context, falling back to the default.

(r *http.Request, defaultDP *DataProvider)

Source from the content-addressed store, hash-verified

107// effectiveDP returns the project-scoped DataProvider from request context,
108// falling back to the default.
109func effectiveDP(r *http.Request, defaultDP *DataProvider) *DataProvider {
110 if dp, ok := r.Context().Value(projectDPKey).(*DataProvider); ok {
111 return dp
112 }
113 return defaultDP
114}
115
116// effectivePhases returns the project-scoped phases from request context,
117// falling back to the default.

Callers 13

handleSearchFunction · 0.85
handleTasksFunction · 0.85
handleTaskByIDFunction · 0.85
handleBoardFunction · 0.85
handleGraphFunction · 0.85
handleGraphMermaidFunction · 0.85
handleStatsFunction · 0.85
handleNextFunction · 0.85
handleTracksFunction · 0.85
handleValidateFunction · 0.85
handleUpdateTaskFunction · 0.85
handleWorklogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected