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

Add jsonpath expand library #1951

Merged
merged 8 commits into from
Feb 18, 2020
Merged

Add jsonpath expand library #1951

merged 8 commits into from
Feb 18, 2020

Conversation

skaegi
Copy link
Contributor

@skaegi skaegi commented Jan 27, 2020

Changes

This adds a "jsonpath" package with an "Expand" function. Functions in expand.go have some basic doc however for now the best examples of usage are in expand_test.go.

This is "expand" engine support that is part of #1463

This is not currently user-facing and just a first step.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Double check this list of stuff that's easy to miss:

Reviewer Notes

If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.

This adds a "jsonpath" package with an "Expand" function. Functions in expand.go have some basic doc however for now the best examples of usage are in expand_test.go.
@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Jan 27, 2020
@tekton-robot tekton-robot requested review from dibyom and a user January 27, 2020 19:30
@tekton-robot tekton-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jan 27, 2020
@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/jsonpath/expand.go Do not exist 80.0%

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/jsonpath/expand.go Do not exist 80.0%

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/jsonpath/expand.go Do not exist 81.0%

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/jsonpath/expand.go Do not exist 81.0%

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/jsonpath/expand.go Do not exist 81.0%

pkg/jsonpath/expand.go Show resolved Hide resolved
pkg/jsonpath/expand.go Outdated Show resolved Hide resolved
pkg/jsonpath/expand.go Show resolved Hide resolved
pkg/jsonpath/expand.go Outdated Show resolved Hide resolved
pkg/jsonpath/expand_test.go Show resolved Hide resolved
@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 30, 2020
@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/jsonpath/expand.go Do not exist 81.0%

@tekton-robot
Copy link
Collaborator

The following is the coverage report on pkg/.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/jsonpath/expand.go Do not exist 81.0%

@skaegi skaegi mentioned this pull request Feb 13, 2020
3 tasks
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

As this only adds the package, I feel it's safe to merge as is 👼
/lgtm
/meow

@tekton-robot
Copy link
Collaborator

@vdemeester: cat image

In response to this:

As this only adds the package, I feel it's safe to merge as is 👼
/lgtm
/meow

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 18, 2020
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbwsg, vdemeester

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot merged commit ac60ed1 into tektoncd:master Feb 18, 2020
dlorenc pushed a commit to dlorenc/build-pipeline that referenced this pull request Sep 1, 2021
This was originally added as part of tektoncd#1951 and tektoncd#1493 in January 2020,
but the work was never finished and the package isn't used anywhere.

It's a non-trivial amount of code and maintenance to keep up to date as we
bump linters and scanners, so we should delete it until there's a clear use
case.

I'm not aware of anyone using this now, so another reason to remove it now is to
prevent someone from taking a dependency on it.

Signed-off-by: Dan Lorenc <[email protected]>
@dlorenc dlorenc mentioned this pull request Sep 1, 2021
3 tasks
tekton-robot pushed a commit that referenced this pull request Sep 2, 2021
This was originally added as part of #1951 and #1493 in January 2020,
but the work was never finished and the package isn't used anywhere.

It's a non-trivial amount of code and maintenance to keep up to date as we
bump linters and scanners, so we should delete it until there's a clear use
case.

I'm not aware of anyone using this now, so another reason to remove it now is to
prevent someone from taking a dependency on it.

Signed-off-by: Dan Lorenc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants