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

shouldSkipRequest should give reason for skipping request instead of boolean #1186

Closed
cmwylie19 opened this issue Sep 30, 2024 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@cmwylie19
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

shouldSkipRequest should give reason for skipping request instead of boolean. FilterMatchNoReason ouputs in the log why the filter denied process the callback, enhances UX and DX to know which filter is preventing your callback from being called.

Describe the solution you'd like

Give reason why request is being skipped like in filterMatchNoReason

Describe alternatives you've considered

(optional) A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

@cmwylie19 cmwylie19 added the enhancement New feature or request label Sep 30, 2024
@btlghrants btlghrants self-assigned this Sep 30, 2024
@btlghrants btlghrants moved this from 📋 Backlog to 🏗 In progress in Pepr Project Board Sep 30, 2024
@cmwylie19 cmwylie19 added this to the v0.38.0 milestone Sep 30, 2024
@btlghrants btlghrants moved this from 🏗 In progress to 👀 In review in Pepr Project Board Oct 1, 2024
cmwylie19 added a commit that referenced this issue Oct 2, 2024
…nstead of boolean (#1208)

## Description

PR to make shouldSkipRequest function more like filterNoMatchReason.

Relates to #1186 

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Other (security config, docs update, etc)

## Checklist before merging
- [x] Unit,
[Journey](https://github.com/defenseunicorns/pepr/tree/main/journey),
[E2E Tests](https://github.com/defenseunicorns/pepr-excellent-examples),
[docs](https://github.com/defenseunicorns/pepr/tree/main/docs),
[adr](https://github.com/defenseunicorns/pepr/tree/main/adr) added or
updated as needed
- [x] [Contributor Guide
Steps](https://docs.pepr.dev/main/contribute/#submitting-a-pull-request)
followed

---------

Co-authored-by: Case Wylie <[email protected]>
@btlghrants btlghrants moved this from 👀 In review to ✅ Done in Pepr Project Board Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants