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

Show policy audit violations #3161

Merged
merged 35 commits into from
Aug 17, 2023
Merged

Show policy audit violations #3161

merged 35 commits into from
Aug 17, 2023

Conversation

AsmaaNabilBakr
Copy link
Contributor

@AsmaaNabilBakr AsmaaNabilBakr commented Aug 2, 2023

Closes #2851

What changed?

  • View Policy Audit violations in policies page as a tab
  • move violations tab from clusters to policies page

image

image

image

Why was this change made?

How was this change implemented?

How did you validate the change?

  • Manual Test

  • Explain how a reviewer can verify the change themselves

  • Integration tests -- what is covered, what cannot be covered;
    or, explain why there are no new tests

  • Unit tests -- what is covered, what cannot be covered; are
    there tests that fail without the change?

    - unit tests cover count of tabs
    - list policies in table 
    - error in policies table
    

Release notes

Documentation Changes

Other follow ups

@AsmaaNabilBakr AsmaaNabilBakr marked this pull request as ready for review August 3, 2023 16:37
import { PolicyTable } from '@weaveworks/weave-gitops';
import { useListPolicies } from '../../contexts/PolicyViolations';
import { TableWrapper } from '../Shared';
import LoadingWrapper from '../Workspaces/WorkspaceDetails/Tabs/WorkspaceTabsWrapper';
Copy link
Contributor

Choose a reason for hiding this comment

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

We're now using the one exported from OSS import { RequestStateHandler } from '@weaveworks/weave-gitops'; so we need to replace LoadingWrapper with RequestStateHandler

Copy link
Contributor

Choose a reason for hiding this comment

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

any updates here!?

ui-cra/src/components/Policies/PolicyAuditList.tsx Outdated Show resolved Hide resolved
ui-cra/src/components/Policies/PolicyAuditList.tsx Outdated Show resolved Hide resolved
ui-cra/src/components/Policies/PolicyAuditList.tsx Outdated Show resolved Hide resolved
@TheGostKasper TheGostKasper requested a review from enekofb August 7, 2023 13:29
Copy link
Contributor

@jpellizzari jpellizzari left a comment

Choose a reason for hiding this comment

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

LGTM! Nice to see the explorer stuff getting re-used. LMK if there are any issues with either the components or the backend.

expect(tabs[2]).toHaveTextContent('Enforcement Events');
});

it('renders a list of policies', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

Copy link
Contributor

@enekofb enekofb left a comment

Choose a reason for hiding this comment

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

commented on enabling policy agent by default

charts/mccp/values.yaml Outdated Show resolved Hide resolved
@enekofb enekofb self-requested a review August 8, 2023 11:13
@enekofb
Copy link
Contributor

enekofb commented Aug 8, 2023

@taghreed86 @TheGostKasper i removed myself from the reviewers as it is mostly FE work that wont be able to help much.

Just a suggestion would be to complete the PR template:

Screenshot 2023-08-08 at 15 06 19

For example:

  • It would be great to have more understanding about the testing section o r
  • Given that its a new feature, user documentation seems another item to release the feature

@enekofb enekofb removed their request for review August 8, 2023 14:09
@TheGostKasper TheGostKasper merged commit 92ccf06 into main Aug 17, 2023
@TheGostKasper TheGostKasper deleted the show-policy-audit-violations branch August 17, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show Policy Audit Violations
4 participants