Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'operator migrate-algolia-to-postgresql' command #400

Merged
merged 7 commits into from
Oct 31, 2023

Conversation

jfreda
Copy link
Collaborator

@jfreda jfreda commented Oct 31, 2023

This PR adds a new hermes operator migrate-algolia-to-postgresql command that migrates all data from Algolia to PostgreSQL. In v1 of the API, Algolia was used as the source of truth, but this will change to PostgreSQL for all non-search data in v2 of the API (which is currently behind a feature flag) — this command enables a migration path for v1 to v2.

New commands:

$ hermes operator -help
Usage: hermes operator <subcommand> [options] [args]

  This command groups subcommands for operators interacting with Hermes.

Subcommands:
    migrate-algolia-to-postgresql    Migrate Algolia data to PostgreSQL
$ hermes operator migrate-algolia-to-postgresql -help
Usage: hermes operator migrate-algolia-to-postgresql

  This command migrates document data from Algolia to PostgreSQL.

Command Options:
  -auto-approve
    	Skip interactive approval for updating documents.
  -config string
    	(Required) Path to Hermes config file
  -dry-run
    	Only print the changes to PostgreSQL data instead of updating the data.
  -verbose
    	Print extra information.

@jfreda jfreda requested a review from a team as a code owner October 31, 2023 20:18
@jfreda jfreda merged commit f464c96 into main Oct 31, 2023
2 checks passed
@jfreda jfreda deleted the jfreda/add-algolia-to-postgres-migration-cmd branch October 31, 2023 22:44
@jfreda jfreda added the enhancement New feature or request label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants