Skip to content

Conversation

@devguyio
Copy link
Contributor

@devguyio devguyio commented Feb 15, 2022

Proposed Changes

The original implementation of the SubscriptionsAPI Trigger filters #5715 used the dialect name sql . The feedback from users was that this is a confusing name and the cesql name is more in alignment with the Cloud Events SQL Expression Language spec.

  • 🧹 Rename new trigger filters sql field to cesql

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note

- 🧹  The `sql` field of [the new trigger filters](https://knative.dev/development/eventing/experimental-features/new-trigger-filters/) experimental feature is now called `cesql`.

Docs

knative/docs#4737

Signed-off-by: Ahmed Abdalla <aabdelre@redhat.com>
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: devguyio

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

The pull request process is described here

Details 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

@knative-prow-robot knative-prow-robot added area/test-and-release Test infrastructure, tests or release size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 15, 2022
@devguyio
Copy link
Contributor Author

Going to update the docs
/hold

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 15, 2022
// CESQL is a CloudEvents CESQL expression that will be evaluated to true or false against each CloudEvent.
//
// +optional
SQL string `json:"sql,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

I like this proposal, and since we touch an alpha stage experimental feature, this seems right to do.

Makes it more explicit, rather than just a generic sql field on the API 👍

@codecov
Copy link

codecov bot commented Feb 15, 2022

Codecov Report

Merging #6148 (f022bec) into main (6b9499f) will decrease coverage by 0.02%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6148      +/-   ##
==========================================
- Coverage   82.09%   82.06%   -0.03%     
==========================================
  Files         231      231              
  Lines        7765     7769       +4     
==========================================
+ Hits         6375     6376       +1     
- Misses        940      942       +2     
- Partials      450      451       +1     
Impacted Files Coverage Δ
pkg/apis/eventing/v1/trigger_types.go 100.00% <ø> (ø)
pkg/broker/filter/filter_handler.go 72.44% <33.33%> (ø)
pkg/apis/eventing/v1/trigger_validation.go 84.66% <100.00%> (-1.64%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b9499f...f022bec. Read the comment docs.

@devguyio
Copy link
Contributor Author

Release note and docs added
/unhold

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 15, 2022
Signed-off-by: Ahmed Abdalla <aabdelre@redhat.com>
@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 15, 2022
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

LGTM

//
// +optional
SQL string `json:"sql,omitempty"`
CESQL string `json:"cesql,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

This feels like a really confusing rename. Why not change Suffix to CESuffix and Exact to CEExact? Because those are all worse names and this filter is in the context of cloudevents filters. This is a docs problem, not an API naming problem.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The feedback we've had so far is related to the strong database related connotation that comes with sql. What I read from the feedback is that calling it cesql makes it instantly obvious that this is a custom expression language related to CloudEvents.

Copy link
Member

Choose a reason for hiding this comment

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

I agree with @devguyio - renaming to CESQL will help to avoid lot of user confusion and may help with google search in future ...

Copy link
Member

Choose a reason for hiding this comment

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

I also think it's beneficial to change the name

Signed-off-by: Ahmed Abdalla <aabdelre@redhat.com>
@devguyio
Copy link
Contributor Author

/retest

@matzew
Copy link
Member

matzew commented Feb 16, 2022

/lgtm
/hold

feel free to unhold ...

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 16, 2022
@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 16, 2022
Copy link
Contributor

@odacremolbap odacremolbap left a comment

Choose a reason for hiding this comment

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

nit: this comment might need updating

// The feature set tests four filter dialects: exact, prefix, suffix and sql (aka CloudEvents SQL).

Signed-off-by: Ahmed Abdalla <aabdelre@redhat.com>
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Feb 16, 2022
Signed-off-by: Ahmed Abdalla <aabdelre@redhat.com>
@knative-prow-robot knative-prow-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 16, 2022
Signed-off-by: Ahmed Abdalla <aabdelre@redhat.com>
@devguyio
Copy link
Contributor Author

/retest-required

@odacremolbap
Copy link
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 16, 2022
@matzew
Copy link
Member

matzew commented Feb 17, 2022

/unhold

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 17, 2022
@matzew
Copy link
Member

matzew commented Feb 17, 2022

/retest

1 similar comment
@devguyio
Copy link
Contributor Author

/retest

@devguyio
Copy link
Contributor Author

It still looks like a flake to me, can't see any correlation to the changes introduced
/retest

@devguyio
Copy link
Contributor Author

/retest

1 similar comment
@matzew
Copy link
Member

matzew commented Feb 22, 2022

/retest

@knative-prow-robot
Copy link
Contributor

@devguyio: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-knative-eventing-reconciler-tests f022bec link true /test pull-knative-eventing-reconciler-tests

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@knative-prow-robot knative-prow-robot merged commit 74cebc5 into knative:main Feb 26, 2022
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. area/test-and-release Test infrastructure, tests or release lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants