Skip to content

Commit

Permalink
Fixing filter ordering (#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
aasimkhan30 authored Oct 10, 2024
1 parent 02b08d3 commit 74624aa
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 108 deletions.
196 changes: 98 additions & 98 deletions src/Microsoft.SqlTools.SqlCore/ObjectExplorer/SmoModel/SmoTreeNodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,13 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Expand Down Expand Up @@ -837,13 +844,6 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Type = NodeFilterPropertyDataType.Boolean,
Description = SR.FilterIsMemoryOptimizedDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
}
});
}
Expand Down Expand Up @@ -871,19 +871,19 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Type = NodeFilterPropertyDataType.String,
Description = SR.FilterOwnerDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Type = NodeFilterPropertyDataType.String,
Description = SR.FilterOwnerDescription,
},
}
});
}
Expand Down Expand Up @@ -1081,6 +1081,13 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Expand Down Expand Up @@ -1111,13 +1118,6 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Type = NodeFilterPropertyDataType.Boolean,
Description = SR.FilterIsMemoryOptimizedDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
}
});
currentChildren.Add(new FolderNode {
Expand All @@ -1142,19 +1142,19 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Type = NodeFilterPropertyDataType.String,
Description = SR.FilterOwnerDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Type = NodeFilterPropertyDataType.String,
Description = SR.FilterOwnerDescription,
},
}
});
currentChildren.Add(new FolderNode {
Expand Down Expand Up @@ -1310,6 +1310,13 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Expand Down Expand Up @@ -1340,13 +1347,6 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Type = NodeFilterPropertyDataType.Boolean,
Description = SR.FilterIsMemoryOptimizedDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
}
});
currentChildren.Add(new FolderNode {
Expand All @@ -1372,6 +1372,13 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Expand Down Expand Up @@ -1402,13 +1409,6 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Type = NodeFilterPropertyDataType.Boolean,
Description = SR.FilterIsMemoryOptimizedDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
}
});
}
Expand Down Expand Up @@ -1504,19 +1504,19 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Type = NodeFilterPropertyDataType.String,
Description = SR.FilterOwnerDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Type = NodeFilterPropertyDataType.String,
Description = SR.FilterOwnerDescription,
},
}
});
}
Expand Down Expand Up @@ -1593,6 +1593,13 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Expand All @@ -1606,13 +1613,6 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Type = NodeFilterPropertyDataType.Boolean,
Description = SR.FilterIsNativelyCompiledDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
}
});
}
Expand Down Expand Up @@ -1675,19 +1675,19 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Type = NodeFilterPropertyDataType.String,
Description = SR.FilterOwnerDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Type = NodeFilterPropertyDataType.String,
Description = SR.FilterOwnerDescription,
},
}
});
}
Expand Down Expand Up @@ -1732,6 +1732,13 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Expand All @@ -1745,13 +1752,6 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Type = NodeFilterPropertyDataType.Boolean,
Description = SR.FilterIsNativelyCompiledDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
}
});
currentChildren.Add(new FolderNode {
Expand Down Expand Up @@ -1791,19 +1791,19 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Type = NodeFilterPropertyDataType.String,
Description = SR.FilterOwnerDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Type = NodeFilterPropertyDataType.String,
Description = SR.FilterOwnerDescription,
},
}
});
}
Expand Down Expand Up @@ -2915,6 +2915,13 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Expand All @@ -2928,13 +2935,6 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Type = NodeFilterPropertyDataType.Boolean,
Description = SR.FilterIsNativelyCompiledDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
}
});
currentChildren.Add(new FolderNode {
Expand All @@ -2959,6 +2959,13 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Expand All @@ -2972,13 +2979,6 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Type = NodeFilterPropertyDataType.Boolean,
Description = SR.FilterIsNativelyCompiledDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
}
});
currentChildren.Add(new FolderNode {
Expand All @@ -3004,19 +3004,19 @@ protected override void OnExpandPopulateFolders(IList<TreeNode> currentChildren,
Description = SR.FilterSchemaDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Type = NodeFilterPropertyDataType.String,
Description = SR.FilterOwnerDescription,
},
new NodeFilterProperty
{
Name = "CreateDate",
DisplayName = SR.FilterCreateDate,
Type = NodeFilterPropertyDataType.Date,
Description = SR.FilterCreateDateDescription,
},
new NodeFilterProperty
{
Name = "Owner",
DisplayName = SR.FilterOwner,
Type = NodeFilterPropertyDataType.String,
Description = SR.FilterOwnerDescription,
},
}
});
}
Expand Down
Loading

0 comments on commit 74624aa

Please sign in to comment.