Staging -> Production: changes since May 2025#12
Merged
amaguire-undp merged 36 commits intomainfrom May 29, 2025
Merged
Conversation
* Feature: initial routers / methods for favourites - add env documentation / adminer image for easier inspection of db - create / delete favourite entry in database - fetch list of favourites by user * Chore: update formatting, tests * update test methods / logging - * updates * expand tests / logging
* env updates * update example env
* initial routes * update methods
* full routers / entities / test setup * update methods * Delete signal_collaborators.sql --------- Co-authored-by: amaguire-undp <andrew.maguire@undp.org>
commit 70c750e Author: happy-devs <andrew@happysoft.dev> Date: Sun May 25 23:23:06 2025 +0300 updates commit d25cb1e Author: happy-devs <andrew@happysoft.dev> Date: Sun May 25 23:22:34 2025 +0300 factory updates commit 2beb502 Author: happy-devs <andrew@happysoft.dev> Date: Fri May 23 21:52:10 2025 +0300 update digest attempts commit 9c86f15 Author: happy-devs <andrew@happysoft.dev> Date: Wed May 14 22:23:22 2025 +0300 add email digest logic commit 9e1b804 Merge: 3453c0d 5203c91 Author: happy-devs <andrew@happysoft.dev> Date: Wed May 14 19:27:30 2025 +0300 Merge dev branch into features/email-sending, resolving .env.example conflicts commit 3453c0d Author: happy-devs <andrew@happysoft.dev> Date: Thu Apr 17 11:40:15 2025 +0300 initial routers / tests commit fef9710 Author: happy-devs <andrew@happysoft.dev> Date: Thu Dec 19 16:40:00 2024 +0000 Config: set up router / methods using sendgrid
- Set allow_origins to ["*"] for production mode - Disable credentials when using wildcard origins (CORS requirement) - Update CORSHandlerMiddleware to handle all origins properly - Maintain localhost support with credentials for local development 🤖 Generated with [Claude Code](https://claude.ai/code)
… Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
…allback - Move email service creation from module level to endpoint level - Handle missing credentials gracefully with warnings instead of errors - Add configuration checks in email service methods - Prevent startup failures due to missing CLIENT_SECRET env var 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
amaguire-undp
approved these changes
May 29, 2025
This reverts commit a1454fb.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This API update introduces a comprehensive email notification and digest system, along with supporting documentation, scripts, and tests. The changes include new services for sending emails via Microsoft Graph, a weekly digest generator, and a suite of scripts and tests to verify email functionality. Several documentation files have been added or updated to describe the new email system and its setup.
New Features
Checklist
requirements.txtAdditional Notes
sendgrid,httpx) have been added torequirements.txt.SENDGRID_API_KEY,MS_FROM_EMAIL) are set as described in the documentation.docs/for setup instructions for Microsoft Graph and SendGrid email sending.