Skip to content

Add createColumnResources option to Trino configuration and update related components#139

Merged
danyi1212 merged 4 commits intomainfrom
dan/per-12706-pdp-release-trino-integration
Nov 10, 2025
Merged

Add createColumnResources option to Trino configuration and update related components#139
danyi1212 merged 4 commits intomainfrom
dan/per-12706-pdp-release-trino-integration

Conversation

@danyi1212
Copy link
Contributor

Pull Request

Description

Type of Change

  • Bug fix
  • New feature/command
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test addition/update
  • Other (please describe):

Checklist

  • I have created an issue and linked it in this PR
  • I have created a branch from main with an appropriate name (e.g., fix/issue-123, feature/new-command)
  • My code follows the project's coding style guidelines
  • I have added tests for my changes (>90% coverage of new code)
  • I have updated the documentation if necessary
  • All tests pass locally
  • Lint checks pass locally
  • I have reviewed my own code for potential issues

New Command Details (if applicable)

  • Command is placed in the src/commands directory
  • Command file contains only argument configuration and a root command component
  • Command is wrapped with the AuthProvider component
  • Command has an optional apiKey argument
  • API key scope is declared for the command
  • Documentation added to the README

Additional Notes

Screenshots/Recordings

…lated components

- Introduced `createColumnResources` boolean option in Trino options, defaulting to false.
- Updated `mapTrinoSchemaToPermitResources` to conditionally create column resources based on the new option.
- Modified `TrinoComponent` to pass `createColumnResources` prop.
- Enhanced `PDPRunComponent` to accept a `tag` prop for specifying the PDP image tag.
- Adjusted Docker command in `PDPRunComponent` to use the provided tag.
- Updated Trino resource naming for better clarity in the mapping function.
- Reduced healthcheck interval in Docker Compose for faster feedback during tests.
@danyi1212 danyi1212 requested review from gemanor and omer9564 November 3, 2025 14:23
@danyi1212 danyi1212 self-assigned this Nov 3, 2025
…tency

- Updated resource keys in tests to use underscores instead of hyphens for consistency.
- Enhanced test assertions to include resource type prefixes (e.g., 'Catalog:', 'Schema:', 'Table:') for better readability.
- Added `createColumnResources` option in the `mapTrinoSchemaToPermitResources` function call to align with recent changes.
@danyi1212 danyi1212 merged commit 486dfb9 into main Nov 10, 2025
3 checks passed
@danyi1212 danyi1212 deleted the dan/per-12706-pdp-release-trino-integration branch November 10, 2025 10:39
Tabintel pushed a commit to Tabintel/permit-cli that referenced this pull request Dec 5, 2025
…lated components (permitio#139)

* Add createColumnResources option to Trino configuration and update related components

- Introduced `createColumnResources` boolean option in Trino options, defaulting to false.
- Updated `mapTrinoSchemaToPermitResources` to conditionally create column resources based on the new option.
- Modified `TrinoComponent` to pass `createColumnResources` prop.
- Enhanced `PDPRunComponent` to accept a `tag` prop for specifying the PDP image tag.
- Adjusted Docker command in `PDPRunComponent` to use the provided tag.
- Updated Trino resource naming for better clarity in the mapping function.
- Reduced healthcheck interval in Docker Compose for faster feedback during tests.

* Fix lint

* Refactor Trino resource mapping tests for improved clarity and consistency

- Updated resource keys in tests to use underscores instead of hyphens for consistency.
- Enhanced test assertions to include resource type prefixes (e.g., 'Catalog:', 'Schema:', 'Table:') for better readability.
- Added `createColumnResources` option in the `mapTrinoSchemaToPermitResources` function call to align with recent changes.

* Fix lint
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