Repository navigation
fix(infra,backend): dedupe IMDS hardening, add Swagger docs to health/gists/stats - #1696
Merged
BigBen-7 merged 1 commit intoNov 20, 2026
Conversation
…/gists/stats - ec2-node-class.yaml had two metadataOptions blocks; YAML keeps the last key so httpPutResponseHopLimit and the IPv6 setting were silently dropped. Merged into a single block. - HealthController had no Swagger decorators; added @apitags, @apioperation and a documented response schema. - GistsController's 8 routes had 7 @apioperation and no response decorators; added the missing @apioperation plus @ApiOkResponse/@ApiCreatedResponse/@ApiNotFoundResponse/ @ApiTooManyRequestsResponse, and @ApiProperty on the Gist entity so it renders a real schema. - StatsController's 4 routes had no response decorators; added @ApiOkResponse schemas and @ApiBadRequestResponse for invalid ranges. Closes PinSpace-Org#1609, Closes PinSpace-Org#1608, Closes PinSpace-Org#1606, Closes PinSpace-Org#1607 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
@feyishola Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
3 tasks
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
ec2-node-class.yamldefinedmetadataOptionstwice; YAML keeps the last key, sohttpPutResponseHopLimit: 1and the IPv6 setting were silently dropped. Merged into a single block with all four settings.HealthControllerhad no Swagger decorators; added@ApiTags,@ApiOperationand a documented response schema for/v1/health.GistsControllerhad 8 routes, 7@ApiOperationand no response decorators; added the missing@ApiOperationplus@ApiOkResponse/@ApiCreatedResponse/@ApiNotFoundResponse/@ApiTooManyRequestsResponse, and@ApiPropertyon theGistentity so the schema renders real fields.StatsControllerhad 4 routes with no response decorators; added@ApiOkResponseschemas for each route's actual response shape and@ApiBadRequestResponsefor the two routes that validatefrom/to.Closes #1609, Closes #1608, Closes #1606, Closes #1607
Test plan
npx tsc --noEmitpassesnpm run buildpassesnpx jest health gists stats— 10 suites, 67 passedec2-node-class.yamlto confirm a singlemetadataOptionsblock retaininghttpPutResponseHopLimit: 1andhttpProtocolIPv6: disabled🤖 Generated with Claude Code