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

Moved contains function to common package #2990

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

ehab-eb
Copy link
Contributor

@ehab-eb ehab-eb commented Dec 4, 2023

Changes

Moving the contains function from the catalog module to common to be used across packages

Tests

  • make test run locally
  • [ ] relevant change in docs/ folder
  • [ ] covered with integration tests in internal/acceptance
  • [ ] relevant acceptance tests are passing
  • [ ] using Go SDK

@ehab-eb ehab-eb requested review from a team as code owners December 4, 2023 14:45
@ehab-eb ehab-eb requested review from mgyucht and removed request for a team December 4, 2023 14:45
Copy link
Contributor

@mgyucht mgyucht left a comment

Choose a reason for hiding this comment

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

Just curious, can we use https://pkg.go.dev/golang.org/x/exp/slices#Contains? I think it is almost exactly the same thing.

@ehab-eb
Copy link
Contributor Author

ehab-eb commented Dec 5, 2023

I see no reason not to. The repo is already part of the project so there will be no new dependencies and the functionality is exactly what's needed. I've gone ahead and replaced it.

I only opened this PR to aid with my other PR #2988 - If I'm omitting the custom function altogether then this PR is no longer a dependency, but maybe it's worth just dealing with it now since we're on the topic :)

@ehab-eb ehab-eb force-pushed the move_contains_to_common branch 2 times, most recently from 46763b5 to fce534f Compare December 5, 2023 09:50
Copy link
Contributor

@mgyucht mgyucht left a comment

Choose a reason for hiding this comment

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

Thanks! Makes sense to me. :)

@mgyucht mgyucht added this pull request to the merge queue Dec 5, 2023
Merged via the queue into databricks:master with commit 7838954 Dec 5, 2023
7 checks passed
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