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

Emit new trees record creation message to rabbitMQ #92

Open
dadiorchen opened this issue Jun 26, 2023 · 5 comments
Open

Emit new trees record creation message to rabbitMQ #92

dadiorchen opened this issue Jun 26, 2023 · 5 comments
Assignees

Comments

@dadiorchen
Copy link
Contributor

We need to subscribe to this event: a new trees record gets inserted into the DB or a new tree created, it happens in this function: https://github.com/Greenstand/treetracker-field-data/blob/main/server/services/RawCaptureService.js#L28
So we can trigger the update of the denormalized.trees

@Kpoke
Copy link
Collaborator

Kpoke commented Sep 8, 2023

This is already being emitted. Shouldn't this issue be in the denormalized repository? @dadiorchen

@dadiorchen
Copy link
Contributor Author

@Kpoke I need a message be triggered when new record goes into public.trees, do we have this message in the prod now?

@stkwan
Copy link

stkwan commented Sep 23, 2023

Please assign this issue to me

@Kpoke
Copy link
Collaborator

Kpoke commented Oct 4, 2023

@Kpoke I need a message be triggered when new record goes into public.trees, do we have this message in the prod now?

@dadiorchen a new record is added to both public.trees and field_data.raw_capture at the same time and is done by the field-data service. So the message currently being emitted should be sufficient

@Kpoke
Copy link
Collaborator

Kpoke commented Oct 4, 2023

async createRawCapture(rawCaptureObject) {
@dadiorchen

@dadiorchen dadiorchen moved this from 📋 Backlog to 🏗 In progress in FAAS Infrastructure Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🌱 Backlog
Status: 🏗 In progress
Status: No status
Development

No branches or pull requests

3 participants