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

Fixes https://github.com/OWASP/crAPI/issues/6 #79

Merged
merged 4 commits into from
Jun 27, 2022
Merged

Fixes https://github.com/OWASP/crAPI/issues/6 #79

merged 4 commits into from
Jun 27, 2022

Conversation

mikeacjones
Copy link
Contributor

TODO: Pull author information dynamically from Postgres

Description

Changes:

  • Grab LOB from Postgres and convert into base64 encoded avatar string when making a post or comment

  • Store string in mongo for return as profile_pic_url

  • Fix web ui; should have been url || default, not default || url

  • Note: Author information really should be set up to dynamically pull from postgres instead. Any chnange to user information (name, avatar, email, etc) won't be reflected.

Testing

Staged a crAPI environment and then used a baseline script to build out 10,000 users, and then used faker to set their avatar and make posts + comments

Screen Shot 2022-06-26 at 9 12 21 PM

Screen Shot 2022-06-26 at 9 12 44 PM

Documentation

Make sure that you have documented corresponding changes in this repository.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged
  • I have documented any changes if required in the docs.

* Note: Author information really should be set up to dynamically pull from postgres instead. Any chnange to user information (name, avatar, email, etc) won't be reflected.

TODO: Pull author information dynamically from Postgres
@piyushroshan piyushroshan merged commit 0e37146 into OWASP:develop Jun 27, 2022
@mikeacjones mikeacjones deleted the issue-6 branch June 27, 2022 16: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