Skip to content

Commit 113d52a

Browse files
christian-schillingLMG
authored andcommitted
Remove "meta" from UI query
This is currently unused and very slow on large trees. Change-Id: no-meta
1 parent e948429 commit 113d52a

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

josh-ui/src/FileBrowser.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export class FileList extends React.Component<FileBrowserProps, State> {
3636
rev: this.props.rev,
3737
filter: this.props.filter,
3838
path: this.props.path,
39-
meta: '',
4039
}).catch((reason) => {
4140
const data = reason.response.data.rev
4241

josh-ui/src/FileViewer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export class FileViewer extends React.Component<FileViewerProps, State> {
4545
rev: this.props.rev,
4646
filter: this.props.filter,
4747
path: this.props.path,
48-
meta: '',
4948
}).catch((reason) => {
5049
const data = reason.response.data.rev
5150

josh-ui/src/Navigation.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,17 @@ export type NavigateTarget = {
1616
export type NavigateCallback = (targetType: NavigateTargetType, target: NavigateTarget) => void
1717

1818
export const QUERY_PATH = gql`
19-
query PathQuery($rev: String!, $filter: String!, $path: String!, $meta: String!) {
19+
query PathQuery($rev: String!, $filter: String!, $path: String!) {
2020
rev(at:$rev, filter:$filter) {
2121
warnings {
2222
message
2323
}
2424
file(path:$path) {
2525
text
26-
meta(topic: $meta) {
27-
data {
28-
position: int(at: "/L")
29-
text: string(at: "/text")
30-
}
31-
}
3226
}
33-
dirs(at:$path,depth: 1) { path, meta(topic:$meta) { count } }
27+
dirs(at:$path,depth: 1) { path }
3428
files(at:$path,depth: 1) {
35-
path,
36-
meta(topic:$meta) { count }
29+
path,
3730
}
3831
}
3932
}

0 commit comments

Comments
 (0)