Skip to content

Conversation

@subhashish-devtron
Copy link
Contributor

@subhashish-devtron subhashish-devtron commented Oct 6, 2023

Description

Fixes #4011
Adds handling for primitives in variable parsing
adds support for system variables

How Has This Been Tested?

Tested on a cluster for various scenarios

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


}

func preProcessPlaceholder(template string) string {
pattern := `\"@{{([^}]+)}}\"`
Copy link
Contributor

Choose a reason for hiding this comment

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

make a constant of this regex and why aren't we using our variable regex here ??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

have used the same regex now but since I'm using this regex to extract inner content I the regex I need is slightly different.

@subhashish-devtron subhashish-devtron changed the title feat: Scoped primitive feat: Scoped variables primitive handling Oct 8, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@subhashish-devtron subhashish-devtron merged commit 27dafc8 into main Oct 8, 2023
@subhashish-devtron subhashish-devtron deleted the scoped-primitive branch October 8, 2023 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add support for pre-defined variables in scoped variables template

4 participants