Skip to content

GitHub Issue 465: Add auditing capabilities for grid views#7421

Merged
XingY merged 4 commits intodevelopfrom
fb_customViewAudit
Feb 17, 2026
Merged

GitHub Issue 465: Add auditing capabilities for grid views#7421
XingY merged 4 commits intodevelopfrom
fb_customViewAudit

Conversation

@XingY
Copy link
Contributor

@XingY XingY commented Feb 16, 2026

Rationale

Related Pull Requests

Changes

  • New GridViewAuditProvider, GridViewAuditEvent and GridViewAuditDomainKind class to support audit events for customizing grid views
  • wire up view insert/create/delete actions to create audit

Copy link
Contributor

@cnathe cnathe left a comment

Choose a reason for hiding this comment

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

Looks good overall. Just one minor requested change.

event.setSchemaName(view.getSchema());
event.setQueryName(view.getQueryName());
event.setCustomViewOwner(view.getCustomViewOwner());
event.setInheritable((view.getFlags() & FLAG_INHERITABLE) != 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

can you just use the canInherit(flag) method from QueryManager here instead?

Copy link
Contributor

Choose a reason for hiding this comment

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

I assume we'd also want to track the FLAG_HIDDEN bit in addition to the inheritable bit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. Updated.

@XingY XingY requested a review from cnathe February 17, 2026 02:18
public void delete(User user, CstmView view)
{
Container container = ContainerManager.getForId(view.getContainerId());
addGridViewAuditEvent(user, container, "Grid view deleted: " + GridViewAuditProvider.getGridViewNameForAudit(view.getName()), view, view, null);
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: it seems that all of the calls to addGridViewAuditEvent now call getGridViewNameForAudit when appending the view name to the comment. Thoughts on just passing the comment as the "Grid view " part of the string and appending on the view name within addGridViewAuditEvent?

@XingY XingY merged commit 94dafc3 into develop Feb 17, 2026
8 checks passed
@XingY XingY deleted the fb_customViewAudit branch February 17, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants