Skip to content

Remove v1.DeliveryStatus, which was unused outside of pkg/apis.#5745

Closed
evankanderson wants to merge 2 commits into
knative:mainfrom
evankanderson:undelivery-status
Closed

Remove v1.DeliveryStatus, which was unused outside of pkg/apis.#5745
evankanderson wants to merge 2 commits into
knative:mainfrom
evankanderson:undelivery-status

Conversation

@evankanderson
Copy link
Copy Markdown
Member

Related to #5364

Proposed Changes

  • 🧹 Remove duckv1.DeliveryStatus, which was unused, in preparation for the replacement of deadLetterChanel with deadLetterSinkUri.

Pre-review Checklist

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

Release Note

- Removes the unused duck type `v1.DeliveryStatus`. `v1.DeliverySpec` remains and is used.

Docs

@google-cla google-cla Bot added the cla: yes Indicates the PR's author has signed the CLA. label Sep 20, 2021
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 20, 2021
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: evankanderson

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 20, 2021
@evankanderson
Copy link
Copy Markdown
Member Author

/hold

I accidentally added a status change to v1.Channel that's meant for another PR.

@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 Sep 20, 2021
Comment thread docs/eventing-api.md Outdated
<p>DeadLetterChannel is a KReference and is set by the channel when it supports native error handling via a channel
Failed messages are delivered here.</p>
Failed messages are delivered here.
Deprecated, see DeadLetterSinkUri insteam</p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

insteam -> instead

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, this was me seeing a refactor and forgetting to stash things before doing a cleanup.

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 20, 2021

Codecov Report

Merging #5745 (bc4cc1d) into main (f031ba2) will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5745      +/-   ##
==========================================
- Coverage   82.65%   82.62%   -0.04%     
==========================================
  Files         202      202              
  Lines        6326     6312      -14     
==========================================
- Hits         5229     5215      -14     
  Misses        758      758              
  Partials      339      339              
Impacted Files Coverage Δ
pkg/apis/duck/v1/delivery_conversion.go 100.00% <ø> (ø)
pkg/apis/duck/v1/delivery_types.go 91.66% <ø> (ø)
pkg/apis/duck/v1beta1/delivery_conversion.go 100.00% <ø> (ø)

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 f031ba2...bc4cc1d. Read the comment docs.

Comment thread pkg/apis/duck/v1/channelable_types.go Outdated
SubscribableStatus `json:",inline"`
// DeadLetterChannel is a KReference and is set by the channel when it supports native error handling via a channel
// Failed messages are delivered here.
// Deprecated, see DeadLetterSinkUri insteam
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

insteam -> instead

@lionelvillard
Copy link
Copy Markdown
Contributor

lionelvillard commented Sep 20, 2021

v1.DeliveryStatus is not used but it should be used. For instance there:

DeadLetterChannel *duckv1.KReference `json:"deadLetterChannel,omitempty"`

and there:

DeadLetterSinkURI *apis.URL `json:"deadLetterSinkUri,omitempty"`

this was the original intent.

@evankanderson
Copy link
Copy Markdown
Member Author

/hold cancel

@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 Sep 20, 2021
@evankanderson
Copy link
Copy Markdown
Member Author

Lionel preferred #5746, this one is probably moot.

/close

@knative-prow-robot
Copy link
Copy Markdown
Contributor

@evankanderson: Closed this PR.

Details

In response to this:

Lionel preferred #5746, this one is probably moot.

/close

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.

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 Indicates the PR's author has signed the CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants