Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update worksheet API (#10717)

Danny Xue76482eb296a
diff --git a/backend/api/v1/worksheet_service.go b/backend/api/v1/worksheet_service.go
index eb8c20e747..e2bcba51d3 100644
--- a/backend/api/v1/worksheet_service.go
+++ b/backend/api/v1/worksheet_service.go
@@ -130,7 +130,7 @@ func (s *WorksheetService) GetWorksheet(ctx context.Context, request *v1pb.GetWo
ws := store.SheetFromBytebase
find := &store.FindSheetMessage{
UID: &worksheetUID,
- LoadFull: request.Raw,
+ LoadFull: true,
Source: &ws,
}
worksheet, err := s.findWorksheet(ctx, find)
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 903baa28c9..ef7cd7af9f 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -3,7 +3,6 @@ import { nextTick, ref } from "vue";
import { createRouter, createWebHistory } from "vue-router";
import {
hasFeature,
- useWorkSheetStore,
useAuthStore,
useActuatorV1Store,
useRouterStore,
@@ -15,7 +14,6 @@ import {
useDatabaseV1Store,
useInstanceV1Store,
} from "@/store";
-import { worksheetNameFromSlug } from "@/utils";
import authRoutes, {
AUTH_2FA_SETUP_MODULE,
AUTH_MFA_MODULE,
@@ -236,11 +234,9 @@ router.beforeEach((to, from, next) => {
}
if (sheetSlug) {
- const sheetName = worksheetNameFromSlug(sheetSlug);
- useWorkSheetStore()
- .fetchSheetByName(sheetName)
- .then(() => next())
- .catch(() => next());
+ // We've moved the preparation data fetch jobs into ProvideSQLEditorContext.
+ // so just next() here.
+ next();
return;
}
diff --git a/frontend/src/store/modules/v1/worksheet.ts b/frontend/src/store/modules/v1/worksheet.ts
index 9569827114..2ca96f85ac 100644
--- a/frontend/src/store/modules/v1/worksheet.ts
+++ b/frontend/src/store/modules/v1/worksheet.ts
@@ -1,7 +1,8 @@
-import { isEqual, isUndefined } from "lodash-es";
+import { uniqBy } from "lodash-es";
import { defineStore } from "pinia";
-import { computed, ref } from "vue";
+import { computed } from "vue";
import { worksheetServiceClient } from "@/grpcweb";
+import { useCache } from "@/store/cache";
import { UNKNOWN_ID } from "@/types";
import {
Worksheet,
@@ -17,18 +18,20 @@ import { useCurrentUserV1 } from "../auth";
import { useTabStore } from "../tab";
import { getUserEmailFromIdentifier } from "./common";
-const REQUEST_CACHE_BY_UID = new Map<
- string /* uid */,
- Promise<Worksheet | undefined>
->();
+type WorksheetView = "FULL" | "BASIC";
+type WorksheetCacheKey = [string /* uid */, WorksheetView];
export const useWorkSheetStore = defineStore("worksheet_v1", () => {
- const sheetsByName = ref(new Map<string, Worksheet>());
+ const cacheByUID = useCache<WorksheetCacheKey, Worksheet | undefined>(
+ "bb.worksheet.by-uid"
+ );
// Getters
const sheetList = computed(() => {
- // Hide those sheets from issue.
- return Array.from(sheetsByName.value.values());
+ const sheetList = Array.from(cacheByUID.entityCacheMap.values())
+ .map((entry) => entry.entity)
+ .filter((sheet): sheet is Worksheet => sheet !== undefined);
+ return uniqBy(sheetList, (sheet) => sheet.name);
});
const mySheetList = computed(() => {
const me = useCurrentUserV1();
@@ -49,16 +52,17 @@ export const useWorkSheetStore = defineStore("worksheet_v1", () => {
});
// Utilities
- const removeLocalSheet = (name: string) => {
- const uid = extractWorksheetUID(name);
- if (uid.startsWith("-")) {
- sheetsByName.value.delete(name);
+ const setCache = (worksheet: Worksheet, view: WorksheetView) => {
+ const uid = extractWorksheetUID(worksheet.name);
+ if (uid === String(UNKNOWN_ID)) return;
+ if (view === "FULL") {
+ // A FULL version should override BASIC version
+ cacheByUID.invalidateEntity([uid, "BASIC"]);
}
+ cacheByUID.setEntity([uid, view], worksheet);
};
- const setSheetList = (sheets: Worksheet[]) => {
- for (const sheet of sheets) {
- sheetsByName.value.set(sheet.name, sheet);
- }
+ const setListCache = (sheets: Worksheet[]) => {
+ sheets.forEach((sheet) => setCache(sheet, "BASIC"));
};
// CRUD
@@ -66,17 +70,33 @@ export const useWorkSheetStore = defineStore("worksheet_v1", () => {
const created = await worksheetServiceClient.createWorksheet({
worksheet,
});
- setSheetList([created]);
- if (worksheet.name) {
- removeLocalSheet(worksheet.name);
- }
+ setCache(created, "FULL");
return created;
};
- const getSheetByName = (name: string) => {
- return sheetsByName.value.get(name);
+ /**
+ *
+ * @param name
+ * @param view undefined to any (FULL -> BASIC)
+ * @returns
+ */
+ const getSheetByName = (
+ name: string,
+ view: WorksheetView | undefined = undefined
+ ) => {
+ const uid = extractWorksheetUID(name);
+ if (!uid || uid === String(UNKNOWN_ID)) {
+ return undefined;
+ }
+ if (view === undefined) {
+ return (
+ cacheByUID.getEntity([uid, "FULL"]) ??
+ cacheByUID.getEntity([uid, "BASIC"])
+ );
+ }
+ return cacheByUID.getEntity([uid, view]);
};
- const fetchSheetByName = async (name: string, raw = false) => {
+ const fetchSheetByName = async (name: string) => {
const uid = extractWorksheetUID(name);
if (uid.startsWith("-") || !uid) {
return undefined;
@@ -84,10 +104,7 @@ export const useWorkSheetStore = defineStore("worksheet_v1", () => {
try {
const sheet = await worksheetServiceClient.getWorksheet({
name,
- raw,
});
-
- setSheetList([sheet]);
return sheet;
} catch {
return undefined;
@@ -98,28 +115,25 @@ export const useWorkSheetStore = defineStore("worksheet_v1", () => {
if (uid.startsWith("-") || !uid) {
return undefined;
}
- if (uid === String(UNKNOWN_ID)) {
- return undefined;
- }
- const existed = getSheetByName(name);
- if (existed) {
- return existed;
+ const entity = cacheByUID.getEntity([uid, "FULL"]);
+ if (entity) {
+ return entity;
}
- const cached = REQUEST_CACHE_BY_UID.get(uid);
- if (cached) {
- return cached;
+ const request = cacheByUID.getRequest([uid, "FULL"]);
+ if (request) {
+ return request;
}
- const request = fetchSheetByName(name);
- REQUEST_CACHE_BY_UID.set(uid, request);
- request.then((sheet) => {
+ const promise = fetchSheetByName(name);
+ cacheByUID.setRequest([uid, "FULL"], promise);
+ promise.then((sheet) => {
if (!sheet) {
// If the request failed
// remove the request cache entry so we can retry when needed.
- REQUEST_CACHE_BY_UID.delete(uid);
+ cacheByUID.invalidateRequest([uid, "FULL"]);
}
});
- return request;
+ return promise;
};
const fetchMySheetList = async () => {
@@ -127,7 +141,7 @@ export const useWorkSheetStore = defineStore("worksheet_v1", () => {
const { worksheets } = await worksheetServiceClient.searchWorksheets({
filter: `creator = users/${me.value.email}`,
});
- setSheetList(worksheets);
+ setListCache(worksheets);
return worksheets;
};
const fetchSharedSheetList = async () => {
@@ -135,41 +149,35 @@ export const useWorkSheetStore = defineStore("worksheet_v1", () => {
const { worksheets } = await worksheetServiceClient.searchWorksheets({
filter: `creator != users/${me.value.email}`,
});
- setSheetList(worksheets);
+ setListCache(worksheets);
return worksheets;
};
const fetchStarredSheetList = async () => {
const { worksheets } = await worksheetServiceClient.searchWorksheets({
filter: `starred = true`,
});
- setSheetList(worksheets);
+ setListCache(worksheets);
return worksheets;
};
const patchSheet = async (
worksheet: Partial<Worksheet>,
- updateMask: string[] | undefined = undefined
+ updateMask: string[]
) => {
if (!worksheet.name) return;
- const existed = sheetsByName.value.get(worksheet.name);
- if (!existed) return;
- if (!updateMask) {
- updateMask = getUpdateMaskForSheet(existed, worksheet);
- }
- if (updateMask.length === 0) {
- return existed;
- }
const updated = await worksheetServiceClient.updateWorksheet({
worksheet,
updateMask,
});
- setSheetList([updated]);
+ setCache(updated, "FULL");
return updated;
};
const deleteSheetByName = async (name: string) => {
await worksheetServiceClient.deleteWorksheet({ name });
- sheetsByName.value.delete(name);
+ const uid = extractWorksheetUID(name);
+ cacheByUID.invalidateEntity([uid, "FULL"]);
+ cacheByUID.invalidateEntity([uid, "BASIC"]);
};
const upsertSheetOrganizer = async (
@@ -182,9 +190,13 @@ export const useWorkSheetStore = defineStore("worksheet_v1", () => {
});
// Update local sheet values
- const sheet = getSheetByName(organizer.worksheet);
- if (sheet) {
- sheet.starred = organizer.starred;
+ const fullViewWorksheet = getSheetByName(organizer.worksheet, "FULL");
+ if (fullViewWorksheet) {
+ fullViewWorksheet.starred = organizer.starred;
+ }
+ const basicViewWorksheet = getSheetByName(organizer.worksheet, "BASIC");
+ if (basicViewWorksheet) {
+ basicViewWorksheet.starred = organizer.starred;
}
};
@@ -244,26 +256,3 @@ export const useWorkSheetAndTabStore = defineStore("worksheet_and_tab", () => {
return { currentSheet, isCreator, isReadOnly };
});
-
-const getUpdateMaskForSheet = (
- origin: Worksheet,
- update: Partial<Worksheet>
-): string[] => {
- const updateMask: string[] = [];
- if (!isUndefined(update.title) && !isEqual(origin.title, update.title)) {
- updateMask.push("title");
- }
- if (
- !isUndefined(update.content) &&
- !isEqual(origin.content, update.content)
- ) {
- updateMask.push("content");
- }
- if (
- !isUndefined(update.visibility) &&
- !isEqual(origin.visibility, update.visibility)
- ) {
- updateMask.push("visibility");
- }
- return updateMask;
-};
diff --git a/frontend/src/types/proto/v1/worksheet_service.ts b/frontend/src/types/proto/v1/worksheet_service.ts
index ba5daf8531..df3f3947f4 100644
--- a/frontend/src/types/proto/v1/worksheet_service.ts
+++ b/frontend/src/types/proto/v1/worksheet_service.ts
@@ -18,8 +18,6 @@ export interface GetWorksheetRequest {
* Format: worksheets/{worksheet}
*/
name: string;
- /** By default, the content of the worksheet is cut off, set the `raw` to true to retrieve the full content. */
- raw: boolean;
}
export interface UpdateWorksheetRequest {
@@ -156,8 +154,8 @@ export interface Worksheet {
| undefined;
/**
* The content of the worksheet.
- * By default, it will be cut off, if it doesn't match the `content_size`, you can
- * set the `raw` to true in GetWorksheet request to retrieve the full content.
+ * By default, it will be cut off in SearchWorksheet() method. If it doesn't match the `content_size`, you can
+ * use GetWorksheet() request to retrieve the full content.
*/
content: Uint8Array;
/** content_size is the full size of the content, may not match the size of the `content` field. */
@@ -275,7 +273,7 @@ export const CreateWorksheetRequest = {
};
function createBaseGetWorksheetRequest(): GetWorksheetRequest {
- return { name: "", raw: false };
+ return { name: "" };
}
export const GetWorksheetRequest = {
@@ -283,9 +281,6 @@ export const GetWorksheetRequest = {
if (message.name !== "") {
writer.uint32(10).string(message.name);
}
- if (message.raw === true) {
- writer.uint32(16).bool(message.raw);
- }
return writer;
},
@@ -303,13 +298,6 @@ export const GetWorksheetRequest = {
message.name = reader.string();
continue;
- case 2:
- if (tag !== 16) {
- break;
- }
-
- message.raw = reader.bool();
- continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -320,10 +308,7 @@ export const GetWorksheetRequest = {
},
fromJSON(object: any): GetWorksheetRequest {
- return {
- name: isSet(object.name) ? globalThis.String(object.name) : "",
- raw: isSet(object.raw) ? globalThis.Boolean(object.raw) : false,
- };
+ return { name: isSet(object.name) ? globalThis.String(object.name) : "" };
},
toJSON(message: GetWorksheetRequest): unknown {
@@ -331,9 +316,6 @@ export const GetWorksheetRequest = {
if (message.name !== "") {
obj.name = message.name;
}
- if (message.raw === true) {
- obj.raw = message.raw;
- }
return obj;
},
@@ -343,7 +325,6 @@ export const GetWorksheetRequest = {
fromPartial(object: DeepPartial<GetWorksheetRequest>): GetWorksheetRequest {
const message = createBaseGetWorksheetRequest();
message.name = object.name ?? "";
- message.raw = object.raw ?? false;
return message;
},
};
diff --git a/frontend/src/views/sql-editor/EditorCommon/SaveSheetModal.vue b/frontend/src/views/sql-editor/EditorCommon/SaveSheetModal.vue
index f56db2fcb2..0035341ebd 100644
--- a/frontend/src/views/sql-editor/EditorCommon/SaveSheetModal.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/SaveSheetModal.vue
@@ -17,7 +17,7 @@ import {
Worksheet,
Worksheet_Visibility,
} from "@/types/proto/v1/worksheet_service";
-import { extractSheetUID } from "@/utils";
+import { extractWorksheetUID } from "@/utils";
import { useSheetContext } from "../Sheet";
import { useSQLEditorContext } from "../context";
import SaveSheetForm from "./SaveSheetForm.vue";
@@ -56,7 +56,7 @@ const doSaveSheet = async (title: string) => {
const { name, statement, sheetName } = tabStore.currentTab;
title = title || name;
- const sheetId = Number(extractSheetUID(sheetName ?? ""));
+ const sheetId = Number(extractWorksheetUID(sheetName ?? ""));
const conn = tabStore.currentTab.connection;
const database = await databaseStore.getOrFetchDatabaseByUID(
@@ -66,12 +66,14 @@ const doSaveSheet = async (title: string) => {
let sheet: Worksheet | undefined;
if (sheetId !== UNKNOWN_ID) {
- sheet = await worksheetV1Store.patchSheet({
- name: sheetName,
- database: database.name,
- title: title,
- content: new TextEncoder().encode(statement),
- });
+ sheet = await worksheetV1Store.patchSheet(
+ {
+ name: sheetName,
+ title,
+ content: new TextEncoder().encode(statement),
+ },
+ ["title", "content"]
+ );
} else {
sheet = await worksheetV1Store.createSheet(
Worksheet.fromPartial({
diff --git a/frontend/src/views/sql-editor/EditorCommon/SharePopover.vue b/frontend/src/views/sql-editor/EditorCommon/SharePopover.vue
index c9c0692b18..6cf7836437 100644
--- a/frontend/src/views/sql-editor/EditorCommon/SharePopover.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/SharePopover.vue
@@ -143,10 +143,13 @@ const isShowAccessPopover = ref(false);
const updateSheet = () => {
if (sheet.value) {
- worksheetV1Store.patchSheet({
- name: sheet.value.name,
- visibility: currentAccess.value.value,
- });
+ worksheetV1Store.patchSheet(
+ {
+ name: sheet.value.name,
+ visibility: currentAccess.value.value,
+ },
+ ["visibility"]
+ );
}
};
diff --git a/frontend/src/views/sql-editor/EditorPanel/EditorPanel.vue b/frontend/src/views/sql-editor/EditorPanel/EditorPanel.vue
index 7fe742f27c..e052cab212 100644
--- a/frontend/src/views/sql-editor/EditorPanel/EditorPanel.vue
+++ b/frontend/src/views/sql-editor/EditorPanel/EditorPanel.vue
@@ -5,8 +5,6 @@
<ConnectionPathBar />
- <SheetForIssueTipsBar />
-
<Suspense>
<SQLEditor @execute="handleExecute" />
<template #fallback>
@@ -52,7 +50,6 @@ import {
SaveSheetModal,
} from "../EditorCommon";
import { useSQLEditorContext } from "../context";
-import SheetForIssueTipsBar from "./SheetForIssueTipsBar.vue";
const SQLEditor = defineAsyncComponent(() => import("./SQLEditor.vue"));
diff --git a/frontend/src/views/sql-editor/EditorPanel/SheetForIssueTipsBar.vue b/frontend/src/views/sql-editor/EditorPanel/SheetForIssueTipsBar.vue
deleted file mode 100644
index dbbda77db8..0000000000
--- a/frontend/src/views/sql-editor/EditorPanel/SheetForIssueTipsBar.vue
+++ /dev/null
@@ -1,45 +0,0 @@
-<template>
- <div
- v-if="isSheetOversize"
- class="w-full p-4 flex items-center bg-yellow-50 gap-x-3"
- >
- <div class="flex-shrink-0">
- <heroicons-solid:information-circle class="h-5 w-5 text-yellow-400" />
- </div>
- <div class="flex-1 text-sm font-medium text-yellow-800">
- {{ $t("sheet.content-oversize-warning") }}
- </div>
- <DownloadSheetButton
- v-if="tab.sheetName"
- :sheet="tab.sheetName"
- size="small"
- />
- </div>
-</template>
-
-<script lang="ts" setup>
-import { computed } from "vue";
-import DownloadSheetButton from "@/components/Sheet/DownloadSheetButton.vue";
-import { useWorkSheetStore, useTabStore } from "@/store";
-import { getSheetStatement, getStatementSize } from "@/utils";
-
-const tabStore = useTabStore();
-const sheetV1Store = useWorkSheetStore();
-const tab = computed(() => tabStore.currentTab);
-
-const sheet = computed(() => {
- const { sheetName } = tab.value;
- if (!sheetName) return undefined;
- return sheetV1Store.getSheetByName(sheetName);
-});
-
-const isSheetOversize = computed(() => {
- if (!sheet.value) {
- return false;
- }
-
- return getStatementSize(getSheetStatement(sheet.value)).lt(
- sheet.value.contentSize
- );
-});
-</script>
diff --git a/frontend/src/views/sql-editor/SecondarySidebar/SheetTabPane/SheetList/SheetList.vue b/frontend/src/views/sql-editor/SecondarySidebar/SheetTabPane/SheetList/SheetList.vue
index 73180c15f1..fb9b3abf2f 100644
--- a/frontend/src/views/sql-editor/SecondarySidebar/SheetTabPane/SheetList/SheetList.vue
+++ b/frontend/src/views/sql-editor/SecondarySidebar/SheetTabPane/SheetList/SheetList.vue
@@ -354,7 +354,7 @@ const handleItemClick = (item: MergedItem, e: MouseEvent) => {
if (isTabItem(item)) {
tabStore.setCurrentTabId(item.target.id);
} else {
- openSheet(item.target, e.metaKey || e.ctrlKey);
+ openSheet(item.target.name, e.metaKey || e.ctrlKey);
}
};
diff --git a/frontend/src/views/sql-editor/SecondarySidebar/SheetTabPane/SheetList/common.ts b/frontend/src/views/sql-editor/SecondarySidebar/SheetTabPane/SheetList/common.ts
index ed8439624a..e49ccf24b7 100644
--- a/frontend/src/views/sql-editor/SecondarySidebar/SheetTabPane/SheetList/common.ts
+++ b/frontend/src/views/sql-editor/SecondarySidebar/SheetTabPane/SheetList/common.ts
@@ -1,7 +1,7 @@
import { escape } from "lodash-es";
import { TabInfo } from "@/types";
import { Worksheet } from "@/types/proto/v1/worksheet_service";
-import { extractSheetUID, getHighlightHTMLByRegExp } from "@/utils";
+import { extractWorksheetUID, getHighlightHTMLByRegExp } from "@/utils";
export type TabItem = {
type: "TAB";
@@ -25,7 +25,7 @@ export const domIDForItem = (item: MergedItem) => {
return `bb-sheet-list-tab-${item.target.id}`;
}
// sheet
- return `bb-sheet-list-sheet-${extractSheetUID(item.target.name)}`;
+ return `bb-sheet-list-sheet-${extractWorksheetUID(item.target.name)}`;
};
export const titleHTML = (item: MergedItem, keyword: string) => {
diff --git a/frontend/src/views/sql-editor/Sheet/context.ts b/frontend/src/views/sql-editor/Sheet/context.ts
index 86373b1101..c8128d33aa 100644
--- a/frontend/src/views/sql-editor/Sheet/context.ts
+++ b/frontend/src/views/sql-editor/Sheet/context.ts
@@ -1,4 +1,5 @@
import Emittery from "emittery";
+import { storeToRefs } from "pinia";
import { InjectionKey, Ref, inject, provide, ref, computed } from "vue";
import { t } from "@/plugins/i18n";
import {
@@ -6,9 +7,9 @@ import {
useDatabaseV1Store,
useWorkSheetStore,
useTabStore,
+ useSQLEditorStore,
} from "@/store";
import { AnyTabInfo, UNKNOWN_ID } from "@/types";
-import { Worksheet } from "@/types/proto/v1/worksheet_service";
import {
emptyConnection,
getSheetStatement,
@@ -108,10 +109,22 @@ export const provideSheetContext = () => {
return context;
};
-export const openSheet = async (sheet: Worksheet, forceNewTab = false) => {
+export const openSheet = async (name: string, forceNewTab = false) => {
+ const { isFetchingSheet } = storeToRefs(useSQLEditorStore());
+ const cleanup = () => {
+ isFetchingSheet.value = false;
+ };
+
+ isFetchingSheet.value = true;
+ const sheet = await useWorkSheetStore().getOrFetchSheetByName(name);
+ if (!sheet) {
+ cleanup();
+ return false;
+ }
+
const tabStore = useTabStore();
const openingSheetTab = tabStore.tabList.find(
- (tab) => tab.sheetName == sheet.name
+ (tab) => tab.sheetName === sheet.name
);
if (!isWorksheetReadableV1(sheet)) {
@@ -120,8 +133,12 @@ export const openSheet = async (sheet: Worksheet, forceNewTab = false) => {
style: "CRITICAL",
title: t("common.access-denied"),
});
+ cleanup();
return false;
}
+
+ cleanup();
+
const statement = getSheetStatement(sheet);
const newTab: AnyTabInfo = {
sheetName: sheet.name,
diff --git a/frontend/src/views/sql-editor/SheetPanel/SheetPanel.vue b/frontend/src/views/sql-editor/SheetPanel/SheetPanel.vue
index 66e989299e..15ae748ee2 100644
--- a/frontend/src/views/sql-editor/SheetPanel/SheetPanel.vue
+++ b/frontend/src/views/sql-editor/SheetPanel/SheetPanel.vue
@@ -1,5 +1,5 @@
<template>
- <div class="w-[75vw] max-w-[calc(100vw-2rem)]">
+ <div class="w-[75vw] max-w-[calc(100vw-2rem)] relative">
<NTabs v-model:value="view">
<NTabPane name="my" :tab="$t('sheet.mine')">
<SheetTable
@@ -39,14 +39,17 @@
</div>
</template>
</NTabs>
+ <MaskSpinner v-if="isFetchingSheet" />
</div>
</template>
<script setup lang="ts">
import { NButton, NTabs, NTabPane } from "naive-ui";
+import { storeToRefs } from "pinia";
import { computed, ref } from "vue";
+import MaskSpinner from "@/components/misc/MaskSpinner.vue";
import { SearchBox } from "@/components/v2";
-import { usePageMode } from "@/store";
+import { usePageMode, useSQLEditorStore } from "@/store";
import { Worksheet } from "@/types/proto/v1/worksheet_service";
import { useSheetContext, openSheet, addNewSheet } from "../Sheet";
import SheetTable from "./SheetTable";
@@ -56,13 +59,14 @@ const emit = defineEmits<{
}>();
const { view, events } = useSheetContext();
+const { isFetchingSheet } = storeToRefs(useSQLEditorStore());
const pageMode = usePageMode();
const keyword = ref("");
const isStandaloneMode = computed(() => pageMode.value === "STANDALONE");
const handleSelectSheet = async (sheet: Worksheet) => {
- if (await openSheet(sheet)) {
+ if (await openSheet(sheet.name)) {
emit("close");
}
};
diff --git a/frontend/src/views/sql-editor/TabList/TabItem/Label.vue b/frontend/src/views/sql-editor/TabList/TabItem/Label.vue
index a228056c2f..18247366af 100644
--- a/frontend/src/views/sql-editor/TabList/TabItem/Label.vue
+++ b/frontend/src/views/sql-editor/TabList/TabItem/Label.vue
@@ -19,7 +19,7 @@
type="text"
class="edit"
@blur="confirmEdit"
- @keyup.enter="confirmEdit"
+ @keyup.enter="e => (e.target as HTMLInputElement).blur()"
@keyup.esc="cancelEdit"
/>
</div>
@@ -85,10 +85,13 @@ const confirmEdit = () => {
tab.name = name;
if (tab.sheetName) {
- worksheetV1Store.patchSheet({
- name: tab.sheetName,
- title: name,
- });
+ worksheetV1Store.patchSheet(
+ {
+ name: tab.sheetName,
+ title: name,
+ },
+ ["title"]
+ );
}
state.editing = false;
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 4cd498cda9..dbeb9a42c9 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -9911,7 +9911,6 @@ Type of the SheetPayload.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | The name of the worksheet to retrieve. Format: worksheets/{worksheet} |
-| raw | [bool](#bool) | | By default, the content of the worksheet is cut off, set the `raw` to true to retrieve the full content. |
@@ -10004,7 +10003,7 @@ The worksheet&#39;s `name` field is used to identify the worksheet to update. Fo
| creator | [string](#string) | | The creator of the Worksheet. Format: users/{email} |
| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The create time of the worksheet. |
| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The last update time of the worksheet. |
-| content | [bytes](#bytes) | | The content of the worksheet. By default, it will be cut off, if it doesn&#39;t match the `content_size`, you can set the `raw` to true in GetWorksheet request to retrieve the full content. |
+| content | [bytes](#bytes) | | The content of the worksheet. By default, it will be cut off in SearchWorksheet() method. If it doesn&#39;t match the `content_size`, you can use GetWorksheet() request to retrieve the full content. |
| content_size | [int64](#int64) | | content_size is the full size of the content, may not match the size of the `content` field. |
| visibility | [Worksheet.Visibility](#bytebase-v1-Worksheet-Visibility) | | |
| starred | [bool](#bool) | | starred indicates whether the worksheet is starred by the current authenticated user. |
diff --git a/proto/generated-go/v1/worksheet_service.pb.go b/proto/generated-go/v1/worksheet_service.pb.go
index c30c02de19..94fa3c9389 100644
--- a/proto/generated-go/v1/worksheet_service.pb.go
+++ b/proto/generated-go/v1/worksheet_service.pb.go
@@ -135,8 +135,6 @@ type GetWorksheetRequest struct {
// The name of the worksheet to retrieve.
// Format: worksheets/{worksheet}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // By default, the content of the worksheet is cut off, set the `raw` to true to retrieve the full content.
- Raw bool `protobuf:"varint,2,opt,name=raw,proto3" json:"raw,omitempty"`
}
func (x *GetWorksheetRequest) Reset() {
@@ -178,13 +176,6 @@ func (x *GetWorksheetRequest) GetName() string {
return ""
}
-func (x *GetWorksheetRequest) GetRaw() bool {
- if x != nil {
- return x.Raw
- }
- return false
-}
-
type UpdateWorksheetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -593,8 +584,8 @@ type Worksheet struct {
// The last update time of the worksheet.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The content of the worksheet.
- // By default, it will be cut off, if it doesn't match the `content_size`, you can
- // set the `raw` to true in GetWorksheet request to retrieve the full content.
+ // By default, it will be cut off in SearchWorksheet() method. If it doesn't match the `content_size`, you can
+ // use GetWorksheet() request to retrieve the full content.
Content []byte `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"`
// content_size is the full size of the content, may not match the size of the `content` field.
ContentSize int64 `protobuf:"varint,9,opt,name=content_size,json=contentSize,proto3" json:"content_size,omitempty"`
@@ -734,148 +725,147 @@ var file_v1_worksheet_service_proto_rawDesc = []byte{
0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16,
0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72,
0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x77, 0x6f, 0x72,
- 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x22, 0x40, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72,
+ 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x22, 0x2e, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72,
0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
- 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x08, 0x52, 0x03, 0x72, 0x61, 0x77, 0x22, 0x90, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x42, 0x03,
- 0xe0, 0x41, 0x02, 0x52, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x3b,
- 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52,
- 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xa2, 0x01, 0x0a, 0x1f,
- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x4f,
- 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
- 0x42, 0x0a, 0x09, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69,
- 0x7a, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69,
- 0x7a, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,
- 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64,
- 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b,
- 0x22, 0x69, 0x0a, 0x12, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67,
- 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68,
- 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09,
- 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x61,
- 0x72, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72,
- 0x72, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x22, 0x31, 0x0a, 0x16, 0x44,
- 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6d,
- 0x0a, 0x17, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65,
- 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c,
- 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,
- 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d,
- 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x7a, 0x0a,
- 0x18, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74,
- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x77, 0x6f, 0x72,
- 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b,
- 0x73, 0x68, 0x65, 0x65, 0x74, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74,
- 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74,
- 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74,
- 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xbf, 0x04, 0x0a, 0x09, 0x57, 0x6f,
- 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xe0, 0x41, 0x05, 0x52, 0x04, 0x6e,
- 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65,
- 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x19,
- 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
- 0x41, 0x02, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x72, 0x65,
- 0x61, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
- 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61,
- 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x12, 0x39, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x42, 0x03, 0xe0, 0x41,
+ 0x02, 0x52, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x0b,
+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xa2, 0x01, 0x0a, 0x1f, 0x55, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67,
+ 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a,
+ 0x09, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57,
+ 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65,
+ 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65,
+ 0x72, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61,
+ 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x69,
+ 0x0a, 0x12, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e,
+ 0x69, 0x7a, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65,
+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x77, 0x6f,
+ 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x61, 0x72, 0x72,
+ 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x72, 0x65,
+ 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x08, 0x52, 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x22, 0x31, 0x0a, 0x16, 0x44, 0x65, 0x6c,
+ 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6d, 0x0a, 0x17,
+ 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,
+ 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,
+ 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
+ 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x7a, 0x0a, 0x18, 0x53,
+ 0x65, 0x61, 0x72, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x73,
+ 0x68, 0x65, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68,
+ 0x65, 0x65, 0x74, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x12,
+ 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
+ 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61,
+ 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xbf, 0x04, 0x0a, 0x09, 0x57, 0x6f, 0x72, 0x6b,
+ 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xe0, 0x41, 0x05, 0x52, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
+ 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x05,
+ 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
+ 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,
+ 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x63,
+ 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
+ 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
+ 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72,
+ 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a,
- 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
- 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03,
- 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x07,
- 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0,
- 0x41, 0x02, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x63,
- 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,
- 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x53,
- 0x69, 0x7a, 0x65, 0x12, 0x46, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74,
- 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x2e,
- 0x56, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
- 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x07, 0x73,
- 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41,
- 0x03, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x22, 0x6f, 0x0a, 0x0a, 0x56, 0x69,
- 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x49, 0x53, 0x49,
- 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
- 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49,
- 0x54, 0x59, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x56,
- 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43,
- 0x54, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54,
- 0x59, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x03, 0x32, 0xeb, 0x06, 0x0a, 0x10,
- 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
- 0x12, 0x84, 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73,
- 0x68, 0x65, 0x65, 0x74, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65,
- 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65,
- 0x74, 0x22, 0x34, 0xda, 0x41, 0x10, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x77, 0x6f, 0x72,
- 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x3a, 0x09, 0x77, 0x6f,
- 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72,
- 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x12, 0x70, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x57, 0x6f,
- 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65,
- 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65,
- 0x74, 0x22, 0x26, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19,
- 0x12, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x77, 0x6f, 0x72, 0x6b,
- 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7e, 0x0a, 0x10, 0x53, 0x65, 0x61,
- 0x72, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x12, 0x24, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72,
- 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65,
- 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93,
- 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65,
- 0x74, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x9c, 0x01, 0x0a, 0x0f, 0x55, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x23, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x22, 0x4c, 0xda, 0x41, 0x15, 0x77,
- 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
- 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x3a, 0x09, 0x77, 0x6f, 0x72, 0x6b,
- 0x73, 0x68, 0x65, 0x65, 0x74, 0x32, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b,
- 0x73, 0x68, 0x65, 0x65, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x77, 0x6f, 0x72, 0x6b, 0x73,
- 0x68, 0x65, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xc6, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61,
- 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68,
- 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e,
- 0x69, 0x7a, 0x65, 0x72, 0x22, 0x5b, 0xda, 0x41, 0x15, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a,
- 0x65, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x09, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x1a,
- 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x2e,
- 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x3d, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68,
- 0x65, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65,
- 0x72, 0x12, 0x76, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73,
- 0x68, 0x65, 0x65, 0x74, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65,
- 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
- 0x79, 0x22, 0x26, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19,
- 0x2a, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x77, 0x6f, 0x72, 0x6b,
- 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e,
- 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x33,
+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x6f,
+ 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x02,
+ 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x63, 0x6f, 0x6e,
+ 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x42,
+ 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x7a,
+ 0x65, 0x12, 0x46, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18,
+ 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x2e, 0x56, 0x69,
+ 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x76,
+ 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x0a, 0x07, 0x73, 0x74, 0x61,
+ 0x72, 0x72, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
+ 0x07, 0x73, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x22, 0x6f, 0x0a, 0x0a, 0x56, 0x69, 0x73, 0x69,
+ 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49,
+ 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
+ 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59,
+ 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x49, 0x53,
+ 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10,
+ 0x02, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x49, 0x53, 0x49, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f,
+ 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x03, 0x32, 0xeb, 0x06, 0x0a, 0x10, 0x57, 0x6f,
+ 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x84,
+ 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65,
+ 0x65, 0x74, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x22,
+ 0x34, 0xda, 0x41, 0x10, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x77, 0x6f, 0x72, 0x6b, 0x73,
+ 0x68, 0x65, 0x65, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x3a, 0x09, 0x77, 0x6f, 0x72, 0x6b,
+ 0x73, 0x68, 0x65, 0x65, 0x74, 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73,
+ 0x68, 0x65, 0x65, 0x74, 0x73, 0x12, 0x70, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b,
+ 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x22,
+ 0x26, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68,
+ 0x65, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7e, 0x0a, 0x10, 0x53, 0x65, 0x61, 0x72, 0x63,
+ 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
+ 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17,
+ 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73,
+ 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x9c, 0x01, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x23, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57,
+ 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x22, 0x4c, 0xda, 0x41, 0x15, 0x77, 0x6f, 0x72,
+ 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,
+ 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x3a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68,
+ 0x65, 0x65, 0x74, 0x32, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68,
+ 0x65, 0x65, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65,
+ 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xc6, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69,
+ 0x7a, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65,
+ 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a,
+ 0x65, 0x72, 0x22, 0x5b, 0xda, 0x41, 0x15, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72,
+ 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x3d, 0x3a, 0x09, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x1a, 0x30, 0x2f,
+ 0x76, 0x31, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x2e, 0x77, 0x6f,
+ 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x3d, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65,
+ 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x12,
+ 0x76, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65,
+ 0x65, 0x74, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,
+ 0x26, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x2a, 0x17,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68,
+ 0x65, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72,
+ 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x33,
}
var (
diff --git a/proto/generated-go/v1/worksheet_service.pb.gw.go b/proto/generated-go/v1/worksheet_service.pb.gw.go
index f25df99838..dda320be06 100644
--- a/proto/generated-go/v1/worksheet_service.pb.gw.go
+++ b/proto/generated-go/v1/worksheet_service.pb.gw.go
@@ -57,10 +57,6 @@ func local_request_WorksheetService_CreateWorksheet_0(ctx context.Context, marsh
}
-var (
- filter_WorksheetService_GetWorksheet_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
-)
-
func request_WorksheetService_GetWorksheet_0(ctx context.Context, marshaler runtime.Marshaler, client WorksheetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetWorksheetRequest
var metadata runtime.ServerMetadata
@@ -82,13 +78,6 @@ func request_WorksheetService_GetWorksheet_0(ctx context.Context, marshaler runt
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
}
- if err := req.ParseForm(); err != nil {
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
- }
- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorksheetService_GetWorksheet_0); err != nil {
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
- }
-
msg, err := client.GetWorksheet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
@@ -115,13 +104,6 @@ func local_request_WorksheetService_GetWorksheet_0(ctx context.Context, marshale
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
}
- if err := req.ParseForm(); err != nil {
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
- }
- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_WorksheetService_GetWorksheet_0); err != nil {
- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
- }
-
msg, err := server.GetWorksheet(ctx, &protoReq)
return msg, metadata, err
diff --git a/proto/v1/worksheet_service.proto b/proto/v1/worksheet_service.proto
index cb5a0469aa..16543bc9b3 100644
--- a/proto/v1/worksheet_service.proto
+++ b/proto/v1/worksheet_service.proto
@@ -60,9 +60,6 @@ message GetWorksheetRequest {
// The name of the worksheet to retrieve.
// Format: worksheets/{worksheet}
string name = 1 [(google.api.field_behavior) = REQUIRED];
-
- // By default, the content of the worksheet is cut off, set the `raw` to true to retrieve the full content.
- bool raw = 2;
}
message UpdateWorksheetRequest {
@@ -179,8 +176,8 @@ message Worksheet {
google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
// The content of the worksheet.
- // By default, it will be cut off, if it doesn't match the `content_size`, you can
- // set the `raw` to true in GetWorksheet request to retrieve the full content.
+ // By default, it will be cut off in SearchWorksheet() method. If it doesn't match the `content_size`, you can
+ // use GetWorksheet() request to retrieve the full content.
bytes content = 8 [(google.api.field_behavior) = REQUIRED];
// content_size is the full size of the content, may not match the size of the `content` field.