-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: Add support for blocking a policy to be ingested #16203
Merged
+262
−94
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
9f9622d
Add the policy blocking.
DylanGuedes e1df362
address suggestions
DylanGuedes be5ceb6
update test accordingly
DylanGuedes 4218d81
Merge branch 'main' of github.com:grafana/loki into add-block-based-o…
DylanGuedes bfcc228
undo merge changes
DylanGuedes 0eaa021
undo changes
DylanGuedes 84a6931
check for blocked ingestion at same place
DylanGuedes 6d0204e
update docs
DylanGuedes 49bd76a
Fix test
DylanGuedes 70bd1e1
Report things at a single place
DylanGuedes 1b7fdb4
do not check for nil
DylanGuedes 119d358
Update docs
DylanGuedes 585b096
handle the zero case isoalted
DylanGuedes aaeadbf
Add conditional for the usageTracker reporting
DylanGuedes d41480f
undo change
DylanGuedes fd275ad
do it isolated
DylanGuedes 80d72f7
refactor how we report metrics
DylanGuedes 6ca9ec5
make method private
DylanGuedes 0e908b9
lint
DylanGuedes cfbe78b
Add test covering metrics reporting
DylanGuedes 23e8d07
Remove dead test
DylanGuedes 2a1a87d
lint
DylanGuedes 626fd51
clear test state
DylanGuedes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not clear on what this comment means 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
previous and following errors do add the error to the
validationErrors
slice. We don't want to add it when the statusCode is success otherwise we'll return an error when t he only error that happened was this one.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah damn I read "do not and error" which made no sense to me 😂 "add" instead of "and" makes 100% sense 🤦