T-4: M0.4b — Close sb-research.* holdout leak: 403 on dataset /export and ungranted project GETs
This commit is contained in:
parent
5bbad5cced
commit
a8c5fe2d4b
3 changed files with 121 additions and 17 deletions
|
|
@ -138,7 +138,11 @@ export class ResearchEvidenceResolver {
|
|||
database: BacktestResultQuery
|
||||
): Promise<ResearchEvidence[]> {
|
||||
if (!source) {
|
||||
return Promise.all(references.map(reference => this.resolve(reference, database)));
|
||||
const resolved: ResearchEvidence[] = [];
|
||||
for (const reference of references) {
|
||||
resolved.push(await this.resolve(reference, database));
|
||||
}
|
||||
return resolved;
|
||||
}
|
||||
const results = await verifyResearchSource(source, references, database, (id, query) =>
|
||||
this.results.getRunResults(id, query)
|
||||
|
|
|
|||
|
|
@ -419,7 +419,11 @@ export class ResearchService {
|
|||
[projectId, includeArchived]
|
||||
)
|
||||
).rows;
|
||||
return Promise.all(rows.map(row => this.artifact(client, row, undefined, agentId)));
|
||||
const artifacts: ResearchArtifact[] = [];
|
||||
for (const row of rows) {
|
||||
artifacts.push(await this.artifact(client, row, undefined, agentId));
|
||||
}
|
||||
return artifacts;
|
||||
});
|
||||
}
|
||||
async createArtifact(
|
||||
|
|
@ -484,7 +488,11 @@ export class ResearchService {
|
|||
[id]
|
||||
)
|
||||
).rows;
|
||||
return Promise.all(rows.map(row => this.artifactRevision(client, row, agentId)));
|
||||
const revisions: ResearchArtifactRevision[] = [];
|
||||
for (const row of rows) {
|
||||
revisions.push(await this.artifactRevision(client, row, agentId));
|
||||
}
|
||||
return revisions;
|
||||
});
|
||||
}
|
||||
async reviseArtifact(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue