Conversation
…roxy
Fix-forward for the project-page discoverability gap: approve_team created
the GitHub repo and wrote github_links on the team doc only, so problem
statements' github field stayed empty and /project/<id> showed no code.
- approve_team now also appends {name, link} to the github array of the
team's linked problem statement(s) via _link_repo_to_problem_statements:
team.problem_statements refs preferred (string ids and DocumentReferences
both handled); falls back to the nonprofit's problem statement only when
it has exactly one (ambiguous cases skip + log). Dedupes by normalized
link, converts legacy string-shaped github values, clears the cached
get_single_problem_statement_old read, and never blocks the approval flow.
- GET /api/github/issues responses are now cached 10 min per
(org, repo, state) — the public project pages fetch this per repo, so the
cache protects the shared GITHUB_TOKEN rate budget. Errors are not cached
so transient GitHub failures retry.
Note: GITHUB_TOKEN currently returns 401 Bad credentials in prod — the
issues proxy (and admin issue summaries) won't work until it's rotated.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…res model OpenAI removed the default model for images.generate, so sending a certificate 400'd with "Missing required parameter: 'model'". Use gpt-image-1 (matching common/utils/openai_api.py) and handle its base64 response with a URL fallback. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…e-model [Hearts] Fix certificate send: add required model param to OpenAI image call
…-to-problem-statements Link team repos to problem statements on team approval; TTL-cache the GitHub issues proxy
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.
No description provided.