-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Reporting] Convert CSV Export libs to Typescript #55117
[Reporting] Convert CSV Export libs to Typescript #55117
Conversation
Pinging @elastic/kibana-reporting-services (Team:Reporting Services) |
} | ||
|
||
return val == null ? '' : val.toString(); | ||
}; |
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.
There had to be a little bit of changes to this function to support Typescript. The original function was:
export function createEscapeValue(quoteValues) {
return function escapeValue(val) {
if (quoteValues && nonAlphaNumRE.test(val)) {
return `"${val.replace(allDoubleQuoteRE, '""')}"`;
}
return val;
};
}
(copied from the deleted file's diff)
@elasticmachine merge upstream |
@elasticmachine merge upstream |
…/kibana into reporting/server-ts-conversion
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
@elastic/kibana-security would someone be able to look at the changes to the pre-routing files that were converted to Typescript in this PR? |
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! Checked code only
import { CSV_JOB_TYPE, PLUGIN_ID } from '../../../common/constants'; | ||
import { cryptoFactory, LevelLogger } from '../../../server/lib'; | ||
import { JobDocPayloadDiscoverCsv } from '../types'; | ||
// @ts-ignore untyped module TODO |
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.
🎉
* [Reporting] Convert CSV Export libs to Typescript * fix jest tests * more ts conversion Co-authored-by: Elastic Machine <[email protected]>
backport: #55510 |
* master: (38 commits) [ML] Fix counters and percentages for array fields on the Data visualizer page (elastic#55209) [SIEM][Detection Engine] Tags being turned into null rules part deux (elastic#55507) [DOCS] Add tip for using elasticsearch-certutil http command (elastic#55357) [SIEM][Detection Engine] Critical blocker, fixes schema accepting values it should not (elastic#55488) [SIEM] Detections create prepackage rules (elastic#55403) [Reporting] Convert CSV Export libs to Typescript (elastic#55117) [Maps] show field type icons in data driven styling field select (elastic#55166) Adds event log for actions and alerting (elastic#45081) [SIEM][Detection Engine] Fixes critical blocker where signals on signals are not operating [SIEM][Detection Engine] Critical blocker, adds need REST prefix for cloud remove incorrect config (elastic#55427) Retain pinned filters when loading and clearing saved queries (elastic#54307) Resolver zoom, pan, and center controls (elastic#55221) Skip failing endpoint saga tests [skip-ci] Update migration guide to add rendering service example (elastic#54744) [DOCS] Updates to heat map page (elastic#55097) [Endpoint] Fix saga to start only after store is created and stopped on app unmount (elastic#55245) [Logs UI] Use the correct icons and labels in the feature cont… (elastic#55292) [Uptime] Handle locations with names but no geo data (elastic#55234) ...
* [Reporting] Convert CSV Export libs to Typescript * fix jest tests * more ts conversion Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Summary
Summarize your PR. If it involves visual changes include a screenshot or gif.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] This was checked for cross-browser compatibility, including a check against IE11[ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support[ ] Documentation was added for features that require explanation or tutorials[ ] This was checked for keyboard-only and screenreader accessibility