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

Make the "Public" column on the ExperimentAnnotations tableinfo an ExprColumn #405

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

vagisha
Copy link
Collaborator

@vagisha vagisha commented Mar 17, 2024

Rationale

The "Public" column on the ExperimentAnnotations table tells us if a Panorama Public dataset is public or not. We have been using the hasPermissions() method on the Container for this purpose. Make the column an ExprColumn so that it is filterable.

@@ -430,6 +385,19 @@ private ExprColumn getCatalogEntryCol()
return col;
}

private ExprColumn getIsPublicCol()
{
SQLFragment isPublicColSql = new SQLFragment(" (SELECT CASE WHEN EXISTS (SELECT 1 FROM ")
Copy link
Contributor

Choose a reason for hiding this comment

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

This probably won't work if a container is inheriting permissions from its parent. That may not be relevant for this use case though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I should have noted that these containers do not inherit permissions from parent, so that is not a concern.

@vagisha vagisha merged commit 1f0ec4d into release23.11-SNAPSHOT Mar 19, 2024
1 check passed
@vagisha vagisha deleted the 23.11_fb_make-ispublic-exprcol branch March 19, 2024 17:27
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