Skip to content

Commit d9df2a1

Browse files
nipunn1313Convex, Inc.
authored andcommitted
Remove in_progress state from frontend (#39964)
GitOrigin-RevId: 646d3e202c21db72d91a56cc8a539e39c1459830
1 parent 6dac46e commit d9df2a1

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

npm-packages/dashboard-common/src/features/data/components/IndexList.stories.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ export const WithUpdatingIndexes: Story = {
7272
table: "my-table",
7373
name: "new_index_no_stats",
7474
fields: ["author"],
75-
backfill: { state: "in_progress" },
75+
backfill: { state: "backfilling" },
7676
},
7777
{
7878
table: "my-table",
7979
name: "new_index_missing_total",
8080
fields: ["author"],
8181
backfill: {
82-
state: "in_progress",
82+
state: "backfilling",
8383
stats: { numDocsIndexed: 100, totalDocs: null },
8484
},
8585
},
@@ -88,7 +88,7 @@ export const WithUpdatingIndexes: Story = {
8888
name: "new_index_with_stats",
8989
fields: ["author"],
9090
backfill: {
91-
state: "in_progress",
91+
state: "backfilling",
9292
stats: { numDocsIndexed: 100, totalDocs: 1000 },
9393
},
9494
},
@@ -104,7 +104,7 @@ export const WithUpdatingIndexes: Story = {
104104
fields: ["name"],
105105
staged: true,
106106
backfill: {
107-
state: "in_progress",
107+
state: "backfilling",
108108
stats: { numDocsIndexed: 500, totalDocs: 1000 },
109109
},
110110
},
@@ -114,7 +114,7 @@ export const WithUpdatingIndexes: Story = {
114114
fields: ["name"],
115115
staged: true,
116116
backfill: {
117-
state: "in_progress",
117+
state: "backfilling",
118118
stats: { numDocsIndexed: 1000, totalDocs: 1000 },
119119
},
120120
},
@@ -133,7 +133,7 @@ export const WithUpdatingIndexes: Story = {
133133
name: "updated_index",
134134
fields: ["name", "subtitle"],
135135
backfill: {
136-
state: "in_progress",
136+
state: "backfilling",
137137
stats: { numDocsIndexed: 500, totalDocs: 1000 },
138138
},
139139
},
@@ -148,7 +148,7 @@ export const WithUpdatingIndexes: Story = {
148148
name: "updated_search_index",
149149
fields: { searchField: "title", filterFields: ["author"] },
150150
backfill: {
151-
state: "in_progress",
151+
state: "backfilling",
152152
stats: { numDocsIndexed: 500, totalDocs: 1000 },
153153
},
154154
},
@@ -164,7 +164,7 @@ export const WithLongIndex: Story = {
164164
name: "by_channel_and_message_and_author_and_modification_date",
165165
fields: ["channel", "message", "author", "modificationDate"],
166166
backfill: {
167-
state: "in_progress",
167+
state: "backfilling",
168168
stats: { numDocsIndexed: 0, totalDocs: 100 },
169169
},
170170
},

npm-packages/dashboard-common/src/features/data/components/IndexList.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ function IndexListRow({
231231
)}
232232
</div>
233233

234-
{(index.backfill.state === "in_progress" ||
235-
index.backfill.state === "backfilling") && (
234+
{index.backfill.state === "backfilling" && (
236235
<div className="flex flex-col gap-1 pl-2">
237236
<div className="flex items-center gap-2">
238237
{!(

npm-packages/dashboard-common/src/features/data/lib/api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ export type Index = {
6161
dimensions: number;
6262
};
6363
backfill: {
64-
// TODO(ENG-9643) Remove "in_progress" support
65-
state: "backfilling" | "backfilled" | "in_progress" | "done";
64+
state: "backfilling" | "backfilled" | "done";
6665
stats?: {
6766
numDocsIndexed: number;
6867
totalDocs: number | null;

0 commit comments

Comments
 (0)