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

ENG-2536 Introduce toggle for using mongo persistence #95

Open
wants to merge 1 commit into
base: yousuf-haque/ENG-2537-implement-mongo-persistence-apis
Choose a base branch
from

Conversation

yousuf-haque
Copy link

@yousuf-haque yousuf-haque commented Oct 12, 2023

Fixes # ENG-2536

Changes proposed in this pull request:
-Set up a flag to toggle between mongo persistence and postgres persistence.

Later will swap this flag for a launch darkly flag

@yousuf-haque yousuf-haque changed the title feat(persistence-interface): Introduce toggle for using mongo persistence ENG-2536: Introduce toggle for using mongo persistence Oct 12, 2023
@yousuf-haque yousuf-haque changed the title ENG-2536: Introduce toggle for using mongo persistence ENG-2536 Introduce toggle for using mongo persistence Oct 12, 2023
};

export const eventsRepository: EventsRepository = postgresEventsRepository;
export const eventsRepository: EventsRepository = useMongoPersistence
Copy link

Choose a reason for hiding this comment

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

This has me thinking. Since gcf-snapshot-analytics uses the Postgres database directly to write queries against can we write to both repositories for a little while until I can get the queries migrated?

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