Repository navigation
Strip quotes from tab-separated report fields - #1992
Closed
helpcodeai wants to merge 2 commits into
Closed
helpcodeai wants to merge 2 commits into
helpcodeai wants to merge 2 commits into
Conversation
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
amazon_seller_download_report_documentrefused a filter on a column that was in the file:Column "FNSKU" is not in this file. Columns: "Date", "FNSKU", …(3 times on Cloud since 12-03, one workspace). Some Amazon reports, like the FBA inventory ledger, wrap every tab-separated field in double quotes.parseDelimited()split tab lines with a plainsplit('\t')and kept the quotes, so neither the column names nor the filter values matched. A tab field wrapped in double quotes now loses them, and""inside becomes". Unquoted fields (a12"inside a title) are left as they are.Same behaviour in Cloud and self-hosted.
Changes
download-follow.util.ts:unquoteTabField()applied to every field of a tab-separated line.download-follow.util.spec.ts: a quoted report filtered byFNSKU, and the unquoting rules.Type
Testing
npx jest src/connectors/engines/download-follow.util.spec.tsinpackages/backend: 14/14.npx eslinton both files: clean. Full backend suite runs in CI.Checklist