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
MGMT-15598: Add a parameter to manifest list to disable filter #5498
MGMT-15598: Add a parameter to manifest list to disable filter #5498
Conversation
@paul-maidment: This pull request references MGMT-15598 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.15.0" version, but no target version was set. In response to this:
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. |
swagger.yaml
Outdated
name: include_system_generated | ||
description: Include system generated manifests in results? Default is false. | ||
type: boolean | ||
required: true |
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.
should be optional no?
/assign @avishayt |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5498 +/- ##
==========================================
+ Coverage 67.64% 67.66% +0.02%
==========================================
Files 232 232
Lines 34099 34089 -10
==========================================
+ Hits 23065 23067 +2
+ Misses 8971 8965 -6
+ Partials 2063 2057 -6
|
b4fe659
to
9fe34b5
Compare
/retest |
1 similar comment
/retest |
internal/manifests/manifests.go
Outdated
@@ -176,7 +176,7 @@ func (m *Manifests) ListClusterManifestsInternal(ctx context.Context, params ope | |||
if err != nil { | |||
return nil, err | |||
} | |||
if isUserManifest { | |||
if isUserManifest || (params.IncludeSystemGenerated != nil && *params.IncludeSystemGenerated) { |
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.
if isUserManifest || (params.IncludeSystemGenerated != nil && *params.IncludeSystemGenerated) { | |
if isUserManifest || swag.BoolValue(params.IncludeSystemGenerated) { |
9fe34b5
to
cb2ec59
Compare
/retest |
1 similar comment
/retest |
cb2ec59
to
059be44
Compare
059be44
to
300c1cd
Compare
Recently we made a change to the manifest list to filter out the system generated manifests when listing them. This has led to issues with data gathering for triage which requires full access to all manifests, system generated or otherwise. I have introduced a boolean parameter IncludeSystemGenerated which defaults to false. When set to true, the manifest list endpoint will show all manifests, irrespective of how they were created. It is intended that we will make a change in assisted-test-infra that will send this parameter.
300c1cd
to
4a8a61b
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: filanov, paul-maidment 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 |
@paul-maidment: all tests passed! Full PR test history. Your PR dashboard. 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. |
…hift#5498) Recently we made a change to the manifest list to filter out the system generated manifests when listing them. This has led to issues with data gathering for triage which requires full access to all manifests, system generated or otherwise. I have introduced a boolean parameter IncludeSystemGenerated which defaults to false. When set to true, the manifest list endpoint will show all manifests, irrespective of how they were created. It is intended that we will make a change in assisted-test-infra that will send this parameter.
Recently we made a change to the manifest list to filter out the system generated manifests when listing them.
This has led to issues with data gathering for triage which requires full access to all manifests, system generated or otherwise.
I have introduced a boolean parameter IncludeSystemGenerated which defaults to false. When set to true, the manifest list endpoint will show all manifests, irrespective of how they were created.
It is intended that we will make a change in assisted-test-infra that will send this parameter.
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist