yannick-beot-sp / vscode-sailpoint-identitynow

Visual Studio Code extension for SailPoint IdentityNow
MIT License
39 stars 17 forks source link

How does new transform work? #3

Closed briane-bullock-sp closed 2 years ago

briane-bullock-sp commented 2 years ago

How does the new transform functionality work? I click the + icon to create a new transform, name it, and a new editor window appears with breadcrumb v3 > transforms > 00000000000000000000000000000000 > {TRANSFORM_NAME}, which seems logical. I assume I just need to write the transform and save, but doing so doesn't result in the transform being created. It actually doesn't have any effect, as far as I can tell. Am I missing something?

yannick-beot-sp commented 2 years ago

Thank you for reporting this. There has been a regression. A new version has been released (0.0.6) to fix this.

The transform must be valid when you save it. At this moment, it is true that the transform comes up empty. It is because I wanted to leverage the snippet. I will change this behavior quickly. So, for now, the process is as follow:

  1. Create a transform -> an empty file is opened
  2. Start with a snippet (cf. https://github.com/yannick-beot-sp/vscode-sailpoint-identitynow#transforms). For instance: write down tr-static and press TAB for completion. Fill in the value.
  3. Do not forget to add a property name. Do not forget the comma before or after this new property.

You should have something like:

{
    "type": "static",
    "attributes": {
        "value": "XXX"
    },
    "name": "{TRANSFORM_NAME}",
}