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

Minor updates to the long-term compliance history design #110

Merged

Conversation

mprahl
Copy link
Member

@mprahl mprahl commented Jan 17, 2024

No description provided.

This will no longer be used with a preference of using the policy ID
directly.

Signed-off-by: mprahl <[email protected]>
I think this history risks being inacurrate so it's best to not provide
it at all for the time being.

Signed-off-by: mprahl <[email protected]>
@openshift-ci openshift-ci bot requested review from dhaiducek and qiujian16 January 17, 2024 15:27
@mprahl
Copy link
Member Author

mprahl commented Jan 17, 2024

/cc @JustinKuli

@openshift-ci openshift-ci bot requested a review from JustinKuli January 17, 2024 15:27
Comment on lines -487 to -489
#### Story 5

As a policy user, I'd like to import my existing compliance history to the new compliance events database.
Copy link
Member

Choose a reason for hiding this comment

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

I liked this story. The commit message mentions that this history might be inaccurate, can you explain that? I still feel like it could be better than nothing...

Copy link
Member Author

Choose a reason for hiding this comment

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

The things that would be missing is:

  • We don't know the parent policy's info at the time of the event. We could assume the current parent's info, which is a safe assumption.
  • We don't know the policy's spec at the time of the event, so we can't assume it hasn't changed.
  • If the history goes back a long time, it implies to the user that it's accurate but it'd be missing things like deleted policies, deleted clusters, changes in policies, and etc.

I was thinking that we'd defer this until there is a specific ask and discuss if the user asking for it is okay with these caveats before we implement historical import.

Copy link

openshift-ci bot commented Jan 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JustinKuli, mprahl

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit d22e843 into open-cluster-management-io:main Jan 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants