Skip to content

Commit fa69771

Browse files
authored
[DATA-719] Allow filtering based on tags in api (viamrobotics#118)
1 parent d06de64 commit fa69771

13 files changed

Lines changed: 1066 additions & 587 deletions

File tree

‎app/data/v1/data.pb.go‎

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

‎app/data/v1/data_grpc.pb.go‎

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

‎app/datasync/v1/data_sync.pb.go‎

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

‎app/model/v1/model.pb.go‎

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

‎app/v1/app_grpc.pb.go‎

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

‎app/v1/robot.pb.go‎

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

‎common/v1/common.pb.go‎

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

‎component/arm/v1/arm.pb.go‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎component/audioinput/v1/audioinput.pb.go‎

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

‎gen/js/app/data/v1/data_pb.d.ts‎

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ export class Filter extends jspb.Message {
7777
getMethod(): string;
7878
setMethod(value: string): void;
7979

80-
clearTagsList(): void;
81-
getTagsList(): Array<string>;
82-
setTagsList(value: Array<string>): void;
83-
addTags(value: string, index?: number): string;
84-
8580
getRobotName(): string;
8681
setRobotName(value: string): void;
8782

@@ -114,6 +109,16 @@ export class Filter extends jspb.Message {
114109
getInterval(): CaptureInterval | undefined;
115110
setInterval(value?: CaptureInterval): void;
116111

112+
hasTagsFilter(): boolean;
113+
clearTagsFilter(): void;
114+
getTagsFilter(): TagsFilter | undefined;
115+
setTagsFilter(value?: TagsFilter): void;
116+
117+
clearTagsList(): void;
118+
getTagsList(): Array<string>;
119+
setTagsList(value: Array<string>): void;
120+
addTags(value: string, index?: number): string;
121+
117122
serializeBinary(): Uint8Array;
118123
toObject(includeInstance?: boolean): Filter.AsObject;
119124
static toObject(includeInstance: boolean, msg: Filter): Filter.AsObject;
@@ -130,7 +135,6 @@ export namespace Filter {
130135
componentType: string,
131136
componentModel: string,
132137
method: string,
133-
tagsList: Array<string>,
134138
robotName: string,
135139
robotId: string,
136140
partName: string,
@@ -139,6 +143,34 @@ export namespace Filter {
139143
orgIdsList: Array<string>,
140144
mimeTypeList: Array<string>,
141145
interval?: CaptureInterval.AsObject,
146+
tagsFilter?: TagsFilter.AsObject,
147+
tagsList: Array<string>,
148+
}
149+
}
150+
151+
export class TagsFilter extends jspb.Message {
152+
getType(): TagsFilterTypeMap[keyof TagsFilterTypeMap];
153+
setType(value: TagsFilterTypeMap[keyof TagsFilterTypeMap]): void;
154+
155+
clearTagsList(): void;
156+
getTagsList(): Array<string>;
157+
setTagsList(value: Array<string>): void;
158+
addTags(value: string, index?: number): string;
159+
160+
serializeBinary(): Uint8Array;
161+
toObject(includeInstance?: boolean): TagsFilter.AsObject;
162+
static toObject(includeInstance: boolean, msg: TagsFilter): TagsFilter.AsObject;
163+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
164+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
165+
static serializeBinaryToWriter(message: TagsFilter, writer: jspb.BinaryWriter): void;
166+
static deserializeBinary(bytes: Uint8Array): TagsFilter;
167+
static deserializeBinaryFromReader(message: TagsFilter, reader: jspb.BinaryReader): TagsFilter;
168+
}
169+
170+
export namespace TagsFilter {
171+
export type AsObject = {
172+
type: TagsFilterTypeMap[keyof TagsFilterTypeMap],
173+
tagsList: Array<string>,
142174
}
143175
}
144176

@@ -877,3 +909,12 @@ export interface StatusMap {
877909

878910
export const Status: StatusMap;
879911

912+
export interface TagsFilterTypeMap {
913+
TAGS_FILTER_TYPE_UNSPECIFIED: 0;
914+
TAGS_FILTER_TYPE_MATCH_BY_OR: 1;
915+
TAGS_FILTER_TYPE_TAGGED: 2;
916+
TAGS_FILTER_TYPE_UNTAGGED: 3;
917+
}
918+
919+
export const TagsFilterType: TagsFilterTypeMap;
920+

0 commit comments

Comments
 (0)