Class DuplicateCheckQueryDefinition
Specification for a saved query for duplicate checking in a template.
Implements
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure
Assembly: Aruba.Infrastructure.dll
Syntax
public class DuplicateCheckQueryDefinition : IEquatable<DuplicateCheckQueryDefinition>
Constructors
View SourceDuplicateCheckQueryDefinition()
Initializes a new instance of the DuplicateCheckQueryDefinition class.
Declaration
public DuplicateCheckQueryDefinition()
DuplicateCheckQueryDefinition(DuplicateCheckQueryDefinition)
Initializes a new instance of the DuplicateCheckQueryDefinition class.
Declaration
public DuplicateCheckQueryDefinition(DuplicateCheckQueryDefinition other)
Parameters
| Type | Name | Description |
|---|---|---|
| DuplicateCheckQueryDefinition | other | The duplicate check query definition to copy. |
DuplicateCheckQueryDefinition(List<string>, List<string>, List<string>, string, uint, uint)
Initializes a new instance of the DuplicateCheckQueryDefinition class.
Declaration
public DuplicateCheckQueryDefinition(List<string> workItemTypes, List<string> workItemStates, List<string> fieldsToMatch, string dateField, uint numberDaysAgo, uint confidenceMatchThreshold)
Parameters
| Type | Name | Description |
|---|---|---|
| List<string> | workItemTypes | The work item types. |
| List<string> | workItemStates | The work item states. |
| List<string> | fieldsToMatch | The fields to match for similiarity when performing a duplicate check. |
| string | dateField | The date field the query should search against. |
| uint | numberDaysAgo | How many days back the query should look for work items. |
| uint | confidenceMatchThreshold | The confidence threshold for a confidence match percent. |
Properties
View SourceConfidenceMatchThreshold
Gets or sets the confidence threshold for a confidence match percent. Work Items that have a matching lower than this shouldn't be shown in the duplicate checker view.
Declaration
public uint? ConfidenceMatchThreshold { get; set; }
Property Value
| Type | Description |
|---|---|
| uint? |
Remarks
The value should be between 0 and 100, inclusive..
DaysAgoFieldName
Gets or sets which date field the query should search against.
Declaration
public string DaysAgoFieldName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FieldsToMatch
Gets the list of fields that dupe checking should perform matching on.
Declaration
public List<string> FieldsToMatch { get; }
Property Value
| Type | Description |
|---|---|
| List<string> |
IsValidQuery
Gets a value indicating whether a query is valid or not.
Declaration
public bool IsValidQuery { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A query is valid if the NumberDaysAgo field is greater than 0, the DaysAgoFieldName is not empty, and any of the lists have at least one element to them.
NumberDaysAgo
Gets or sets how many days back the query should look for work items.
Declaration
public uint? NumberDaysAgo { get; set; }
Property Value
| Type | Description |
|---|---|
| uint? |
SavedWorkItemStates
Gets the work item states that should be searched for in the query.
Declaration
public List<string> SavedWorkItemStates { get; }
Property Value
| Type | Description |
|---|---|
| List<string> |
SavedWorkItemTypes
Gets the work item types that should be searched for in the query.
Declaration
public List<string> SavedWorkItemTypes { get; }
Property Value
| Type | Description |
|---|---|
| List<string> |
Methods
View SourceEquals(DuplicateCheckQueryDefinition)
Determines if another DuplicateCheckQueryDefinition object is equal to this object using a deep comparison.
Declaration
public bool Equals(DuplicateCheckQueryDefinition other)
Parameters
| Type | Name | Description |
|---|---|---|
| DuplicateCheckQueryDefinition | other | The other object to compare against. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if the objects are equal, and false if they are not. |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
Remarks
This function is not used, but is required to be implemented by IEquatable<T>.