feat: persist feature research and versioned alpha assessments
This commit is contained in:
@@ -204,6 +204,11 @@ class Experiments:
|
||||
)
|
||||
self.db.add(row)
|
||||
await self.db.flush()
|
||||
from ..models import ResearchParent
|
||||
|
||||
for parent_kind, parent_id in {(p["kind"], p["id"]) for p in parents}:
|
||||
self.db.add(ResearchParent(child_id=row.id, parent_kind=parent_kind, parent_id=parent_id))
|
||||
await self.db.flush()
|
||||
return await self.get(row.id)
|
||||
|
||||
async def get(self, experiment_id):
|
||||
|
||||
Reference in New Issue
Block a user