Exemplo n.º 1
0
        public LaunchPadGeneratedObjectBlueprintDefinitionSettings(SourceControlRepository repo)
        {
            Repository = repo;
            RelativeStartingPathFromParent = string.Empty;
            SupportedCultures = string.Empty;
            Version           = string.Empty;
            Authentication    = Authentication.Tenant;
            var comparer = StringComparer.OrdinalIgnoreCase;

            AvailableTemplates = new Dictionary <string, TemplateBase>(comparer);
            AvailableTokens    = new Dictionary <string, LaunchPadToken>(comparer);
            ExclusionPaths     = new Dictionary <string, string>(comparer);
        }
        public ActionResult Index(ExceptionGroupIndexModel model)
        {
            if (model.StartCommitHash == null)
            {
                model.StartCommitHash = SourceControlRepository.GetLatestTagName(14);
            }
            if (model.EndCommitHash == null)
            {
                model.EndCommitHash = "";
            }
            ExceptionGroupRepository repo = new ExceptionGroupRepository();

            model.Entries  = repo.GetExceptionGroups(model.StartCommitHash, model.EndCommitHash);
            ViewData.Model = model;
            return(View());
        }
        //
        // GET: /Feature/

        public ActionResult Index(FeatureIndexModel model)
        {
            if (model.FeatureFilter != null && model.VersionFilter != null)
            {
                int?commitID = SourceControlRepository.FindCommitId(model.VersionFilter);
                if (commitID == null)
                {
                    model.ErrorMessage = "Unknown version: " + model.VersionFilter;
                }
                else
                {
                    model.Entries = new FeatureRepository().GetFeatures(model.FeatureFilter, commitID.Value);
                }
            }
            if (model.VersionFilter == null)
            {
                model.VersionFilter = SourceControlRepository.GetLatestTagName(14);
            }
            if (model.FeatureFilter == null)
            {
                model.FeatureFilter = "%";
            }
            return(View(model));
        }