17 - Testing and Publishing Your Ontology Edit Function

This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.

📖 Task Introduction

The Functions helper provides a way to safely test your Ontology edit function without making any actual changes to the Ontology.

🔨 Task Instructions

  1. Open the Functions helper at the bottom of the screen and choose your new “Alert Voucher” function from the Live Preview tab.
  2. The two input fields correspond to the two inputs you defined in your function: a single flight alert and a “severity” designation. Choose any flight alert from the Select an option . . . dropdown and enter “Med” into the Severity field.
  3. Click the blue Run ▶ button to test the function. The list below will show the anticipated changes to the status field of the linked passengers based on their status.
  4. Given the satisfactory test, commit your code with a brief yet meaningful message.
  5. Click Tag version to start the publish process.
  6. Increment your minor version and click Create tag. Once the associated CI checks have completed, your Function is ready for use in the Ontology.