Skip to content

Conversation

evan-onyx
Copy link
Contributor

Description

the migration takes forever for currently unknown reasons, skipping it for the time being. Downside is until it is run, everyone will see duplicate drive docs being indexed

How Has This Been Tested?

n/a

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@evan-onyx evan-onyx requested a review from a team as a code owner July 9, 2025 19:47
Copy link

vercel bot commented Jul 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 7:49pm

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Added environment variable bypass for Google Drive canonical ID migration due to performance issues with the current implementation.

  • Modified backend/alembic/versions/12635f6655b7_drive_canonical_ids.py to introduce SKIP_CANON_DRIVE_IDS environment variable that bypasses the migration
  • Warning: Skipping migration will result in duplicate Drive documents being indexed until migration is eventually completed
  • Consider adding metrics/logging to understand the root cause of migration performance issues for future resolution
  • Ensure clear documentation/tracking exists to remind team that this migration needs to be completed eventually

1 file reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

Comment on lines 519 to +521
def upgrade() -> None:
if SKIP_CANON_DRIVE_IDS:
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Consider adding a warning log when skipping migration to help with debugging and monitoring

@Weves Weves merged commit 240367c into main Jul 9, 2025
11 of 14 checks passed
@Weves Weves deleted the tmp/disable-drive-id-migration branch July 9, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants