fix: resource id would be empty when jsonPath get the wrong way#72
Merged
j3ttt merged 1 commit intoantgroup:mainfrom Sep 2, 2025
Merged
fix: resource id would be empty when jsonPath get the wrong way#72j3ttt merged 1 commit intoantgroup:mainfrom
j3ttt merged 1 commit intoantgroup:mainfrom
Conversation
Contributor
|
Important Installation incomplete: to start using Gemini Code Assist, please ask the organization owner(s) to visit the Gemini Code Assist Admin Console and sign the Terms of Services. |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideCorrect JSONPath mappings in AWS collector RowField configurations, add explicit ID fields to detail structs for AccountSettings and GuardDuty detectors, and perform minor whitespace cleanup. Class diagram for updated AccountSettingsDetail and DetectorDetail structsclassDiagram
class AccountSettingsDetail {
map<string, int32> AccountSummary
string AccountId
// todo
//EnabledFeatures []types.FeatureType
}
class DetectorDetail {
string DetectorId
*guardduty.GetDetectorOutput Detector
*types.Administrator Administrator
map<string, string> Tags
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey there - I've reviewed your changes - here's some feedback:
- Add json struct tags to the new AccountId and DetectorId fields so they will be included properly when serializing the detail structs.
- Consider centralizing or validating the JSONPath expressions against actual AWS SDK response models to avoid manual duplication and future mismatches.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Add json struct tags to the new AccountId and DetectorId fields so they will be included properly when serializing the detail structs.
- Consider centralizing or validating the JSONPath expressions against actual AWS SDK response models to avoid manual duplication and future mismatches.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
Thank you for your contribution to CloudRec!
What About:
java)go)opa)Description:
fix: resource id would be empty when jsonPath get the wrong way
Summary by Sourcery
Fix resource ID extraction for various AWS collectors by correcting JSONPath expressions and propagating IDs through detail structs
Enhancements: