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

feature: save latest social card generated for user to backend users table #2

Closed
2 of 13 tasks
0-vortex opened this issue Mar 17, 2023 · 1 comment
Closed
2 of 13 tasks

Comments

@0-vortex
Copy link
Contributor

0-vortex commented Mar 17, 2023

Type of feature

Select the type of feature request, the lowercase should also be the PR prefix.

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Current behavior

The POC version of the opengraph generator that is deployed right now generates an image on demand.

Suggested solution

Upload the result of the create image function to the s3 bucket, return its hash and save the generation log to the database, and the resulting s3 image to the users table as the latest social graph image.

Example of cdn cached result for embedding: https://opengraph.sfo3.cdn.digitaloceanspaces.com/users/0-vortex-dst546dst56sdt56d.png

Code of Conduct

By submitting this issue, you agree to follow our Code of Conduct.

  • I agree to follow this project's Code of Conduct

Contributing Docs

If you plan on contributing code please read - Contribution Guide

  • I agree to follow this project's Contribution Docs
@0-vortex
Copy link
Contributor Author

0-vortex commented Apr 5, 2023

Production values:

api route you can call anywhere:
https://opengraph.opensauced.pizza/v1/users/0-vortex

redirects in all cases except rate limit niche case to:
https://opengraph.sfo3.cdn.digitaloceanspaces.com/users/237133.png

@0-vortex 0-vortex closed this as completed Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant