public IQueryable <ModelBuildAttempt> GetModelBuildAttemptQuery(BuildAttemptKey buildAttemptKey) { var buildId = GetModelBuildId(buildAttemptKey.BuildKey); return(Context .ModelBuildAttempts .Where(x => x.ModelBuildId == buildId && x.Attempt == buildAttemptKey.Attempt)); }
public async Task TriageAsync(BuildAttemptKey attemptKey, int modelTrackingIssueId) { var modelTrackingIssue = await Context .ModelTrackingIssues .Where(x => x.Id == modelTrackingIssueId) .SingleAsync().ConfigureAwait(false); var modelBuildAttempt = await GetModelBuildAttemptAsync(attemptKey).ConfigureAwait(false); await TriageAsync(modelBuildAttempt, modelTrackingIssue).ConfigureAwait(false); }
public Task <ModelBuildAttempt> GetModelBuildAttemptAsync(BuildAttemptKey buildAttemptKey) => GetModelBuildAttemptQuery(buildAttemptKey).SingleAsync();
public Task <ModelBuildAttempt?> FindModelBuildAttemptAsync(BuildAttemptKey buildAttemptKey) => GetModelBuildAttemptQuery(buildAttemptKey).FirstOrDefaultAsync() !;
public async Task TriageAsync(BuildAttemptKey attemptKey) { var modelBuildAttempt = await GetModelBuildAttemptAsync(attemptKey).ConfigureAwait(false); await TriageAsync(modelBuildAttempt).ConfigureAwait(false); }
private Task <ModelBuildAttempt> GetModelBuildAttemptAsync(BuildAttemptKey attemptKey) => TriageContextUtil .GetModelBuildAttemptQuery(attemptKey) .Include(x => x.ModelBuild) .SingleAsync();