MCPcopy Create free account
hub / github.com/apache/devlake / process

Method process

backend/python/pydevlake/pydevlake/subtasks.py:187–192  ·  view source on GitHub ↗
(self, raw: RawModel, session: Session, ctx: Context)

Source from the content-addressed store, hash-verified

185 yield raw, state
186
187 def process(self, raw: RawModel, session: Session, ctx: Context):
188 tool_model = self.stream.extract(json.loads(raw.data))
189 tool_model.set_raw_origin(raw)
190 tool_model.connection_id = ctx.connection.id
191 tool_model.set_updated_at()
192 session.merge(tool_model)
193
194 def delete(self, session, ctx):
195 model = self.stream.tool_model

Callers

nothing calls this directly

Calls 4

set_raw_originMethod · 0.80
mergeMethod · 0.80
extractMethod · 0.45
set_updated_atMethod · 0.45

Tested by

no test coverage detected