-
Notifications
You must be signed in to change notification settings - Fork 312
allow for max records to be overridden on a per-export-config basis #1215
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
logger.Infof("Processing export batch %d (root: %q, region: %s), max records per file %d", eb.BatchID, eb.FilenameRoot, eb.OutputRegion, s.config.MaxRecords) | ||
maxRecords := eb.EffectiveMaxRecords(s.config.MaxRecords) | ||
if maxRecords != s.config.MaxRecords { | ||
logger.Debugw("max records is being overridden", "batchID", eb.BatchID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe log exp vs configured?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mikehelmick, sethvargo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ThruDate string `form:"thrudate"` | ||
ThruTime string `form:"thrutime"` | ||
SigInfoIDs []int64 `form:"siginfo"` | ||
MaxRecordsOverride int `form:"MaxRecordsOverride"` | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's too late for this, but weird how we've mixed lowercase and CamelCase. I tend to prefer case-insensitive kebab or snake case if it's coming from web.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can change this pretty easily - it's an internal API
Fixes #1214
Proposed Changes
Release Note