public QueryEntityTypeProvider(IDocumentIdFactory documentIdFactory) { _entityTypeIds = new List<int>(); _generalTypeIds = new Dictionary<string, int>(); _assignableTypeIds = new Dictionary<string, int>(); _documentIdFactory = documentIdFactory; _impedimentType = documentIdFactory.CreateEntityTypeId(IMPEDIMENT_TYPE_ID); _entityTypeIds.Add(RELEASE_TYPE_ID); _entityTypeIds.Add(ITERATION_TYPE_ID); _entityTypeIds.Add(TESTPLAN_TYPE_ID); _entityTypeIds.Add(USERSTORY_TYPE_ID); _entityTypeIds.Add(TASK_TYPE_ID); _entityTypeIds.Add(BUG_TYPE_ID); _entityTypeIds.Add(FEATURE_TYPE_ID); _entityTypeIds.Add(EPIC_TYPE_ID); _entityTypeIds.Add(TESTCASE_TYPE_ID); _entityTypeIds.Add(TESTPLANRUN_TYPE_ID); _entityTypeIds.Add(REQUEST_TYPE_ID); _entityTypeIds.Add(IMPEDIMENT_TYPE_ID); _entityTypeIds.Add(COMMENT_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(USERSTORY_TYPE_ID), USERSTORY_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(TASK_TYPE_ID), TASK_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(BUG_TYPE_ID), BUG_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(FEATURE_TYPE_ID), FEATURE_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(EPIC_TYPE_ID), EPIC_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(TESTPLAN_TYPE_ID), TESTPLAN_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(TESTPLANRUN_TYPE_ID), TESTPLANRUN_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(REQUEST_TYPE_ID), REQUEST_TYPE_ID); _generalTypeIds.Add(documentIdFactory.CreateEntityTypeId(TESTCASE_TYPE_ID), TESTCASE_TYPE_ID); _generalTypeIds.Add(documentIdFactory.CreateEntityTypeId(RELEASE_TYPE_ID), RELEASE_TYPE_ID); _generalTypeIds.Add(documentIdFactory.CreateEntityTypeId(ITERATION_TYPE_ID), ITERATION_TYPE_ID); _generalTypeIds.Add(documentIdFactory.CreateEntityTypeId(IMPEDIMENT_TYPE_ID), IMPEDIMENT_TYPE_ID); _entityTypeNames = new Dictionary<int?, string> { {8, "Bug".ToLower()}, {19, "Comment".ToLower()}, {9, "Feature".ToLower()}, {3, "Iteration".ToLower()}, {2, "Release".ToLower()}, {17, "Request".ToLower()}, {5, "Task".ToLower()}, {12, "TestCase".ToLower()}, {13, "TestPlan".ToLower()}, {14, "TestPlanRun".ToLower()}, {4, "UserStory".ToLower()}, {16, "Impediment".ToLower()}, {27, "Epic".ToLower()} }; _noSquadEntityTypeNames = new List<string> { "TestCase".ToLower(), "Release".ToLower(), "Iteration".ToLower(), "Impediment".ToLower(), }; }
public QueryEntityTypeProvider(IDocumentIdFactory documentIdFactory) { _entityTypeIds = new List <int>(); _generalTypeIds = new Dictionary <string, int>(); _assignableTypeIds = new Dictionary <string, int>(); _documentIdFactory = documentIdFactory; _impedimentType = documentIdFactory.CreateEntityTypeId(IMPEDIMENT_TYPE_ID); _entityTypeIds.Add(RELEASE_TYPE_ID); _entityTypeIds.Add(ITERATION_TYPE_ID); _entityTypeIds.Add(TESTPLAN_TYPE_ID); _entityTypeIds.Add(USERSTORY_TYPE_ID); _entityTypeIds.Add(TASK_TYPE_ID); _entityTypeIds.Add(BUG_TYPE_ID); _entityTypeIds.Add(FEATURE_TYPE_ID); _entityTypeIds.Add(EPIC_TYPE_ID); _entityTypeIds.Add(TESTCASE_TYPE_ID); _entityTypeIds.Add(TESTPLANRUN_TYPE_ID); _entityTypeIds.Add(REQUEST_TYPE_ID); _entityTypeIds.Add(IMPEDIMENT_TYPE_ID); _entityTypeIds.Add(COMMENT_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(USERSTORY_TYPE_ID), USERSTORY_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(TASK_TYPE_ID), TASK_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(BUG_TYPE_ID), BUG_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(FEATURE_TYPE_ID), FEATURE_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(EPIC_TYPE_ID), EPIC_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(TESTPLAN_TYPE_ID), TESTPLAN_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(TESTPLANRUN_TYPE_ID), TESTPLANRUN_TYPE_ID); _assignableTypeIds.Add(documentIdFactory.CreateEntityTypeId(REQUEST_TYPE_ID), REQUEST_TYPE_ID); _generalTypeIds.Add(documentIdFactory.CreateEntityTypeId(TESTCASE_TYPE_ID), TESTCASE_TYPE_ID); _generalTypeIds.Add(documentIdFactory.CreateEntityTypeId(RELEASE_TYPE_ID), RELEASE_TYPE_ID); _generalTypeIds.Add(documentIdFactory.CreateEntityTypeId(ITERATION_TYPE_ID), ITERATION_TYPE_ID); _generalTypeIds.Add(documentIdFactory.CreateEntityTypeId(IMPEDIMENT_TYPE_ID), IMPEDIMENT_TYPE_ID); _entityTypeNames = new Dictionary <int?, string> { { 8, "Bug".ToLower() }, { 19, "Comment".ToLower() }, { 9, "Feature".ToLower() }, { 3, "Iteration".ToLower() }, { 2, "Release".ToLower() }, { 17, "Request".ToLower() }, { 5, "Task".ToLower() }, { 12, "TestCase".ToLower() }, { 13, "TestPlan".ToLower() }, { 14, "TestPlanRun".ToLower() }, { 4, "UserStory".ToLower() }, { 16, "Impediment".ToLower() }, { 27, "Epic".ToLower() } }; _noSquadEntityTypeNames = new List <string> { "TestCase".ToLower(), "Release".ToLower(), "Iteration".ToLower(), "Impediment".ToLower(), }; }
public ContextQueryPlanBuilder(IDocumentIndexProvider documentIndexProvider, IDocumentIdFactory documentIdFactory, AccountName accountName, IProfileReadonly profile, IEntityTypeProvider entityTypeProvider) { _documentIndexProvider = documentIndexProvider; _documentIdFactory = documentIdFactory; _accountName = accountName; _profile = profile; _entityTypeProvider = entityTypeProvider; }
public QueryPlanBuilder(IPluginContext pluginContext, IProfileReadonly profile, IDocumentIndexProvider documentIndexProvider, IEntityTypeProvider entityTypeProvider, IDocumentIdFactory documentIdFactory) { _accountName = pluginContext.AccountName; _profile = profile; _documentIndexProvider = documentIndexProvider; _entityTypeProvider = entityTypeProvider; _documentIdFactory = documentIdFactory; _contextQueryPlanBuilder = new ContextQueryPlanBuilder(_documentIndexProvider, _documentIdFactory, pluginContext.AccountName, _profile, _entityTypeProvider); }
public EntityIndexer(DocumentFactory documentFactory, ILocalBus localBus, IProfileReadonly profile, IPluginContext pluginContext, IDocumentIdFactory documentIdFactory, IDocumentIndexProvider documentIndexProvider, IEntityTypeProvider entityTypeProvider, IActivityLogger log) { _documentFactory = documentFactory; _localBus = localBus; _profile = profile; _pluginContext = pluginContext; _documentIdFactory = documentIdFactory; _documentIndexProvider = documentIndexProvider; _entityTypeProvider = entityTypeProvider; _log = log; _textOperations = new TextOperations(); }
public DocumentFactory(IDocumentIdFactory documentIdFactory, TextOperations textOperations) { _documentIdFactory = documentIdFactory; _textOperations = textOperations; }