Skip to content

Conversation

@valekjo
Copy link
Member

@valekjo valekjo commented Mar 23, 2023

This PR

  • makes parsing slightly more effective (one pass only)
  • adds support for "interpolation" - using {{var:resource.defaultDatasetId}} syntax in strings - ie. adding the possibility to pass it to the input.
  • It's intentionally slightly different mechanism than the parsing, as it does a different thing.

Theoretically it's breaking, I have an idea how to deal with it, just not sure if it's necessary.

@github-actions github-actions bot added this to the 59th sprint - Console team milestone Mar 23, 2023
@github-actions github-actions bot added the t-console Issues with this label are in the ownership of the console team. label Mar 23, 2023
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Pull Request Tookit has failed!

Pull request is neither linked to an issue or epic nor labeled as adhoc!

@valekjo valekjo changed the title feat: allow using variables in strings in webhook payload template [WIP] feat: allow using variables in strings in webhook payload template Apr 12, 2023
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Pull Request Tookit has failed!

Pull request is neither linked to an issue or epic nor labeled as adhoc!

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Pull Request Tookit has failed!

Pull request is neither linked to an issue or epic nor labeled as adhoc!

@valekjo valekjo force-pushed the feature/adhoc-allow-using-variables-in-strings branch from 5585004 to eb857da Compare April 28, 2023 13:21
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Pull Request Tookit has failed!

Pull request is neither linked to an issue or epic nor labeled as adhoc!

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Pull Request Tookit has failed!

Pull request is neither linked to an issue or epic nor labeled as adhoc!

@valekjo valekjo added the adhoc Ad-hoc unplanned task added during the sprint. label Apr 28, 2023
@valekjo valekjo changed the title [WIP] feat: allow using variables in strings in webhook payload template feat: allow using variables in fields of webhook payload template Apr 28, 2023
@valekjo valekjo requested review from fnesveda and gippy April 28, 2023 15:28
@valekjo valekjo marked this pull request as ready for review April 28, 2023 15:28
Copy link
Member

@fnesveda fnesveda 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, just a few comments mostly about the tests. Plus we talked live about maybe dropping the var: prefix.

@valekjo
Copy link
Member Author

valekjo commented May 3, 2023

Looks good, just a few comments mostly about the tests. Plus we talked live about maybe dropping the var: prefix.

@fnesveda I've updated the tests, found one bug during the process (how replacement works). And figured out one more reason why I added the var: prefix - so it doesn't break the original behaviour. So instead of var: there is new interpolateStrings option, which just turns on/off the parsing in strings.

@valekjo valekjo requested a review from fnesveda May 3, 2023 11:54
Copy link
Member

@fnesveda fnesveda 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, one tiny typo

Co-authored-by: František Nesveda <fnesveda@users.noreply.github.com>
@valekjo valekjo merged commit 005b6cc into master May 10, 2023
@valekjo valekjo deleted the feature/adhoc-allow-using-variables-in-strings branch May 10, 2023 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-console Issues with this label are in the ownership of the console team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants