Skip to content

Commit

Permalink
Update the reindex logic for Algolia to support partial reindex (#153)
Browse files Browse the repository at this point in the history
* Update the reindex logic for Algolia to support partial reindex

* Refactor code for readability

* Add database migration files for ent changes

---------

Co-authored-by: James Kwon <[email protected]>
  • Loading branch information
james03160927 and james03160927 authored Jan 23, 2025
1 parent 2a4b225 commit b295921
Show file tree
Hide file tree
Showing 18 changed files with 672 additions and 226 deletions.
194 changes: 111 additions & 83 deletions drip/api.gen.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions ent/migrate/migrations/20250123210944_migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "nodes" table
ALTER TABLE "nodes" ADD COLUMN "last_algolia_index_time" timestamptz NULL;
3 changes: 2 additions & 1 deletion ent/migrate/migrations/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h1:kqIP+0gVgOv7M2GW0XGPm0MAeU3BwfpfoeLNIu9Rxaw=
h1:tvIMkA0ld8Lhc+57OLo5mxHU+3NkkmhSEHVPfKJ8RhM=
20240526144817_migration.sql h1:sP6keX+oMyLL2qpIFx0Ns0WYfWM5hJ4zkFPmLWT68fM=
20240528220411_migration.sql h1:SR44sOEaWbDgYCKJZIKcGCI7Ta+LqL71z225Nhs2+HM=
20240528221846_migration.sql h1:EkUonGI9Bu689qWX4pG3PRC+On4f6u7UvwDbaR8mCNk=
Expand All @@ -23,3 +23,4 @@ h1:kqIP+0gVgOv7M2GW0XGPm0MAeU3BwfpfoeLNIu9Rxaw=
20250111185452_migration.sql h1:fboQ7cjU7YbEwzUek3YGtWt7gdZK+HUrjqQOpKbDPD4=
20250111220145_migration.sql h1:r5D0DeFYV4llyfBcD2BPzHacDWGWfVNe0nVrKwfWgJE=
20250113223458_migration.sql h1:/y9TETVsoKY2x0+rhT1DjTVJV/LghpK/RW4RMEhoVY0=
20250123210944_migration.sql h1:rgKGRZPgTXXBX7RUxEKDpk3X8MbDqJiU5981dg7bbbU=
3 changes: 2 additions & 1 deletion ent/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

143 changes: 108 additions & 35 deletions ent/mutation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion ent/node.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions ent/node/node.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions ent/node/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b295921

Please sign in to comment.