Skip to content

UX Data Broker Transform Starter Template #1573

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

Conversation

yansa-reece
Copy link
Contributor

This pull request contains a starter template for UX Data Broker Transform scripts. The template code includes:

JSDoc type annotations
ES6 features: destructured inputs, const/let, interpolated strings
Error logging and propagation through try/catch
An example properties array
A readme.md file is also provided that details the template

Added a starter template for a transform data resource. This template contains:
- JSDoc type annotations
- Destructured inputs
- Try/catch
- Error logging then throw (Enables error logging but still allows the data resource to fail)
- An example of what the properties object should look like
Fixed incorrect JSDoc optional syntax
Fixed incorrect JSDoc optional syntax
@SapphicFire SapphicFire self-assigned this Oct 31, 2024
Copy link
Contributor

@SapphicFire SapphicFire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you for this!

@SapphicFire SapphicFire merged commit 5014a5f into ServiceNowDevProgram:main Oct 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants