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

Subscribe to vanish_requests stream for deletion #73

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Conversation

dcadenas
Copy link
Contributor

This PR subscribes to the vanish_requests Redis stream and deletes data from the DB on each new request for a certain pubkey. I also updated the docker compose file to ease local testing with Redis and nosrelay, not just the firestore emulator.

I didn't add tests but I tested manually locally as it seems pretty safe and I'm worried about having time for the other tasks pending.

This is part of https://github.com/planetary-social/infrastructure/issues/139

@dcadenas dcadenas requested a review from mplorentz October 11, 2024 20:44
@dcadenas
Copy link
Contributor Author

I still need to update the ansible script to add the REDIS_URL

Copy link
Member

@mplorentz mplorentz left a comment

Choose a reason for hiding this comment

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

I just gave this a high level review, but it looks good! Great work!

Copy link
Member

Choose a reason for hiding this comment

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

Is this the new preferred convention to just name this compose.yml instead of docker-compose.yml?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I suspect that it's related to the change in which now it's docker compose vs docker-compose binary

@dcadenas dcadenas merged commit cc28151 into main Oct 15, 2024
1 check passed
@dcadenas dcadenas deleted the vanish_requests branch October 15, 2024 22:06
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