Skip to content

Commit 0b7aa67

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent d7fc9ac commit 0b7aa67

File tree

6 files changed

+197
-4
lines changed

6 files changed

+197
-4
lines changed

gen/proto/go/parca/query/v1alpha1/query.pb.go

Lines changed: 41 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/proto/go/parca/query/v1alpha1/query_vtproto.pb.go

Lines changed: 112 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/proto/swagger/parca/query/v1alpha1/query.swagger.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,6 +1763,14 @@
17631763
"notContains": {
17641764
"type": "string",
17651765
"title": "not_contains matches strings that do not contain the specified substring"
1766+
},
1767+
"startsWith": {
1768+
"type": "string",
1769+
"title": "starts_with matches strings that start with the specified prefix"
1770+
},
1771+
"notStartsWith": {
1772+
"type": "string",
1773+
"title": "not_starts_with matches strings that do not start with the specified prefix"
17661774
}
17671775
},
17681776
"title": "StringCondition defines string-based filtering conditions"

gen/proto/swagger/parca/share/v1alpha1/share.swagger.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,14 @@
808808
"notContains": {
809809
"type": "string",
810810
"title": "not_contains matches strings that do not contain the specified substring"
811+
},
812+
"startsWith": {
813+
"type": "string",
814+
"title": "starts_with matches strings that start with the specified prefix"
815+
},
816+
"notStartsWith": {
817+
"type": "string",
818+
"title": "not_starts_with matches strings that do not start with the specified prefix"
811819
}
812820
},
813821
"title": "StringCondition defines string-based filtering conditions"

ui/packages/shared/client/src/parca/query/v1alpha1/query.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2573,7 +2573,9 @@ class StringCondition$Type extends MessageType<StringCondition> {
25732573
{ no: 1, name: "equal", kind: "scalar", oneof: "condition", T: 9 /*ScalarType.STRING*/ },
25742574
{ no: 2, name: "not_equal", kind: "scalar", oneof: "condition", T: 9 /*ScalarType.STRING*/ },
25752575
{ no: 3, name: "contains", kind: "scalar", oneof: "condition", T: 9 /*ScalarType.STRING*/ },
2576-
{ no: 4, name: "not_contains", kind: "scalar", oneof: "condition", T: 9 /*ScalarType.STRING*/ }
2576+
{ no: 4, name: "not_contains", kind: "scalar", oneof: "condition", T: 9 /*ScalarType.STRING*/ },
2577+
{ no: 5, name: "starts_with", kind: "scalar", oneof: "condition", T: 9 /*ScalarType.STRING*/ },
2578+
{ no: 6, name: "not_starts_with", kind: "scalar", oneof: "condition", T: 9 /*ScalarType.STRING*/ }
25772579
]);
25782580
}
25792581
create(value?: PartialMessage<StringCondition>): StringCondition {
@@ -2612,6 +2614,18 @@ class StringCondition$Type extends MessageType<StringCondition> {
26122614
notContains: reader.string()
26132615
};
26142616
break;
2617+
case /* string starts_with */ 5:
2618+
message.condition = {
2619+
oneofKind: "startsWith",
2620+
startsWith: reader.string()
2621+
};
2622+
break;
2623+
case /* string not_starts_with */ 6:
2624+
message.condition = {
2625+
oneofKind: "notStartsWith",
2626+
notStartsWith: reader.string()
2627+
};
2628+
break;
26152629
default:
26162630
let u = options.readUnknownField;
26172631
if (u === "throw")
@@ -2636,6 +2650,12 @@ class StringCondition$Type extends MessageType<StringCondition> {
26362650
/* string not_contains = 4; */
26372651
if (message.condition.oneofKind === "notContains")
26382652
writer.tag(4, WireType.LengthDelimited).string(message.condition.notContains);
2653+
/* string starts_with = 5; */
2654+
if (message.condition.oneofKind === "startsWith")
2655+
writer.tag(5, WireType.LengthDelimited).string(message.condition.startsWith);
2656+
/* string not_starts_with = 6; */
2657+
if (message.condition.oneofKind === "notStartsWith")
2658+
writer.tag(6, WireType.LengthDelimited).string(message.condition.notStartsWith);
26392659
let u = options.writeUnknownFields;
26402660
if (u !== false)
26412661
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

ui/packages/shared/profile/src/ProfileView/components/ProfileFilters/useProfileFilters.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ export interface ProfileFilter {
2323
id: string;
2424
type?: 'stack' | 'frame' | string; // string allows preset keys
2525
field?: 'function_name' | 'binary' | 'system_name' | 'filename' | 'address' | 'line_number';
26-
matchType?: 'equal' | 'not_equal' | 'contains' | 'not_contains' | 'starts_with' | 'not_starts_with';
26+
matchType?:
27+
| 'equal'
28+
| 'not_equal'
29+
| 'contains'
30+
| 'not_contains'
31+
| 'starts_with'
32+
| 'not_starts_with';
2733
value: string;
2834
}
2935

0 commit comments

Comments
 (0)