Skip to content
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

feat(TKC-1465): expressions improvements - resolving structs, improved finalizer #5067

Merged
merged 8 commits into from
Feb 27, 2024

Conversation

rangoo94
Copy link
Member

Pull request description

  • Add option to resolve structs, that have expr:"" tags
  • Detach Finalizers from main Machine
  • Make Machines more flexible
  • Minor improvements (None bugfix, nicer escaping of {{)

Checklist (choose whats happened)

  • breaking change! (describe)
  • tested locally
  • tested on cluster
  • added new dependencies
  • updated the docs
  • added a test

Copy link

netlify bot commented Feb 27, 2024

Deploy Preview for testkube-docs-preview ready!

Name Link
🔨 Latest commit 1b62a64
🔍 Latest deploy log https://app.netlify.com/sites/testkube-docs-preview/deploys/65dd98cc87eb550008f3e01b
😎 Deploy Preview https://deploy-preview-5067--testkube-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 62.55708% with 82 lines in your changes are missing coverage. Please review.

Project coverage is 25.68%. Comparing base (32d4c18) to head (1b62a64).
Report is 1 commits behind head on develop.

Files Patch % Lines
pkg/tcl/expressionstcl/machineutils.go 0.00% 31 Missing ⚠️
pkg/tcl/expressionstcl/generic.go 80.67% 16 Missing and 7 partials ⚠️
pkg/tcl/expressionstcl/finalizer.go 31.81% 14 Missing and 1 partial ⚠️
pkg/tcl/expressionstcl/machine.go 75.00% 2 Missing and 1 partial ⚠️
pkg/tcl/expressionstcl/parse.go 78.57% 2 Missing and 1 partial ⚠️
pkg/tcl/expressionstcl/static.go 50.00% 2 Missing and 1 partial ⚠️
pkg/tcl/expressionstcl/mock_expression.go 0.00% 2 Missing ⚠️
pkg/tcl/expressionstcl/mock_staticvalue.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5067      +/-   ##
===========================================
- Coverage    29.66%   25.68%   -3.98%     
===========================================
  Files          309      310       +1     
  Lines        27640    27783     +143     
===========================================
- Hits          8199     7136    -1063     
- Misses       18652    20043    +1391     
+ Partials       789      604     -185     
Flag Coverage Δ
integrationtests ?
unittests 25.68% <62.55%> (+0.25%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rangoo94 rangoo94 merged commit d9b2c09 into develop Feb 27, 2024
11 checks passed
@rangoo94 rangoo94 deleted the dawid/feat/TKC-1465-expressions-structs branch February 27, 2024 09:39
rangoo94 added a commit that referenced this pull request Mar 14, 2024
…d finalizer (#5067)

* fix(TKC-1465): recognition of 'none' static value
* feat(TKC-1465): add helpers to compile and and resolve the expression immediately
* feat(TKC-1465): add mechanism to allow to resolve expressions in the objects via tags
* feat(TKC-1465): escape "{{" nicely
* chore(TKC-1465): avoid unnecessary string computation while resolving struct
* chore(TKC-1465): rename Resolve to SimplifyStruct
* feat(TKC-1465): add option to provide extended accessor in the expressions machine
* feat(TKC-1465): simplify expression finalizers, add expression machine utils
rangoo94 added a commit that referenced this pull request Mar 14, 2024
…d finalizer (#5067)

* fix(TKC-1465): recognition of 'none' static value
* feat(TKC-1465): add helpers to compile and and resolve the expression immediately
* feat(TKC-1465): add mechanism to allow to resolve expressions in the objects via tags
* feat(TKC-1465): escape "{{" nicely
* chore(TKC-1465): avoid unnecessary string computation while resolving struct
* chore(TKC-1465): rename Resolve to SimplifyStruct
* feat(TKC-1465): add option to provide extended accessor in the expressions machine
* feat(TKC-1465): simplify expression finalizers, add expression machine utils
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.

3 participants