Repository navigation
Conversation
- Resolve one ticket by key in any notation (tnt-393, TNT-393, TNT393), or by its exact `{source}:{externalId}` key when unkeyed - Fetch comments() for every linked item in parallel and merge them into one discussion sorted by createdAt, undated comments last - Resolve comment authors against the team directory and only expose them as { id, name }, never the raw email, login or Discord id - Return 404 when the project or the ticket key is unknown - Extract the project access check into withProjectAccess and reuse it for the tables, logs and tickets routes - Add tests for the merge order, author resolution, key lookup, the unknown key case and the response shape
- Add withListCache, a stale-while-revalidate cache in front of each provider's list(), keyed on the project scope - Serve list() from memory within the TTL (60s); past it, serve the stale list right away and refresh it once in the background - On a failed refresh, keep serving the stale list, log provider-list-refresh-failed and wait 30s before retrying - Share one STORE call between concurrent requests for the same scope - Bound memory: no refresh timer, at most 50 scopes per provider (least recently read evicted first), and drop scopes unread for 15 min - Leave comments() uncached, they are only fetched when a ticket opens - Wrap the Jira, GitHub and Discord providers used by the tickets endpoints - Add tests for the TTL, stale refresh, failure fallback and retry delay, single flight and both eviction rules
2 tasks
This branch has not been deployed
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.
166 cache the store backed provider queries