Exemple #1
0
        public IQueryable <ModelBuildAttempt> GetModelBuildAttemptQuery(BuildAttemptKey buildAttemptKey)
        {
            var buildId = GetModelBuildId(buildAttemptKey.BuildKey);

            return(Context
                   .ModelBuildAttempts
                   .Where(x => x.ModelBuildId == buildId && x.Attempt == buildAttemptKey.Attempt));
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public Task <ModelBuildAttempt> GetModelBuildAttemptAsync(BuildAttemptKey buildAttemptKey) =>
 GetModelBuildAttemptQuery(buildAttemptKey).SingleAsync();
Exemple #4
0
 public Task <ModelBuildAttempt?> FindModelBuildAttemptAsync(BuildAttemptKey buildAttemptKey) =>
 GetModelBuildAttemptQuery(buildAttemptKey).FirstOrDefaultAsync() !;
Exemple #5
0
        public async Task TriageAsync(BuildAttemptKey attemptKey)
        {
            var modelBuildAttempt = await GetModelBuildAttemptAsync(attemptKey).ConfigureAwait(false);

            await TriageAsync(modelBuildAttempt).ConfigureAwait(false);
        }
Exemple #6
0
 private Task <ModelBuildAttempt> GetModelBuildAttemptAsync(BuildAttemptKey attemptKey) => TriageContextUtil
 .GetModelBuildAttemptQuery(attemptKey)
 .Include(x => x.ModelBuild)
 .SingleAsync();