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

d/glue_catalog_table #23256

Merged

Conversation

chris922
Copy link
Contributor

This is my first contribution, hope I did everything as expected. If not please let me know :)

I added a data source for a glue catalog table and more or less copied and adapted many things from the regular resource. I was unsure if it is desired to have one generic "read" function and use this one in the resource and data source, but for simplicity, I now started with separate functions as for other resources it looks similar.

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccGlueDataCatalogDataSource*' ACCTEST_PARALLELISM=5 PKG=glue
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/glue/... -v -count 1 -parallel 5  -run=TestAccGlueDataCatalogDataSource* -timeout 180m
=== RUN   TestAccGlueDataCatalogDataSource_basic
=== PAUSE TestAccGlueDataCatalogDataSource_basic
=== CONT  TestAccGlueDataCatalogDataSource_basic
--- PASS: TestAccGlueDataCatalogDataSource_basic (29.75s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/glue       29.790s
...

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/glue Issues and PRs that pertain to the glue service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. needs-triage Waiting for first response or review from a maintainer. size/XL Managed by automation to categorize the size of a PR. and removed documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/glue Issues and PRs that pertain to the glue service. provider Pertains to the provider itself, rather than any interaction with AWS. needs-triage Waiting for first response or review from a maintainer. labels Feb 17, 2022
@chris922 chris922 force-pushed the feature/glue-data-catalog-table-datasource branch from 7c3d811 to 152f477 Compare February 17, 2022 22:27
@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/glue Issues and PRs that pertain to the glue service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Feb 17, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @chris922 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@bschaatsbergen
Copy link
Member

Hi @chris922, thanks for raising this pull request. I've noted it down to review this in the coming days.

Copy link
Member

@bschaatsbergen bschaatsbergen left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @chris922 , overall it looks good to m. I've used the data source and ran the tests on your fork - which seemed 👍 .

bruno@bruno ~/g/f/chris992-terraform-provider-aws (feature/glue-data-catalog-table-datasource)> make testacc TESTARGS='-run=TestAccGlueDataCatalogDataSource*' ACCTEST_PARALLELISM=5 PKG=glue
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/glue/... -v -count 1 -parallel 5  -run=TestAccGlueDataCatalogDataSource* -timeout 180m
=== RUN   TestAccGlueDataCatalogDataSource_basic
=== PAUSE TestAccGlueDataCatalogDataSource_basic
=== CONT  TestAccGlueDataCatalogDataSource_basic
--- PASS: TestAccGlueDataCatalogDataSource_basic (26.60s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/glue       28.114s

If you could address the few comments we can get this 🚢 shipped!

website/docs/d/glue_catalog_table.html.markdown Outdated Show resolved Hide resolved
@chris922
Copy link
Contributor Author

chris922 commented Oct 3, 2022

Thanks @bschaatsbergen for the review! Please have a look at my changes and resolve the threads if they match your expectation. If you prefer to squash the commits in advance let me know so that I can rebase it.

@chris922 chris922 force-pushed the feature/glue-data-catalog-table-datasource branch 2 times, most recently from 8c1de06 to c1c93a6 Compare October 3, 2022 18:01
@chris922
Copy link
Contributor Author

chris922 commented Oct 3, 2022

Hmm, I squashed and rebased it... but the pipeline still fails, any ideas?

@chris922 chris922 force-pushed the feature/glue-data-catalog-table-datasource branch from c1c93a6 to 0a3f050 Compare December 6, 2022 18:19
@chris922
Copy link
Contributor Author

chris922 commented Dec 6, 2022

@bschaatsbergen : I rebased my changes onto the main and it looks better for now

@bschaatsbergen
Copy link
Member

@ewbankkit would you mind checking this PR out :) ?

@ewbankkit ewbankkit added the new-data-source Introduces a new data source. label Dec 8, 2022
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccGlueCatalogTableDataSource_' PKG=glue ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/glue/... -v -count 1 -parallel 2  -run=TestAccGlueCatalogTableDataSource_ -timeout 180m
=== RUN   TestAccGlueCatalogTableDataSource_basic
=== PAUSE TestAccGlueCatalogTableDataSource_basic
=== CONT  TestAccGlueCatalogTableDataSource_basic
--- PASS: TestAccGlueCatalogTableDataSource_basic (17.94s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/glue	23.130s

@ewbankkit
Copy link
Contributor

@chris922 Thanks for the contribution 🎉 👏.
In general everything looks great.
I had to tweak a few function names to match changes made since the PR was originally created.

@ewbankkit ewbankkit merged commit 4d9ef23 into hashicorp:main Dec 8, 2022
@github-actions github-actions bot added this to the v4.46.0 milestone Dec 8, 2022
@bschaatsbergen
Copy link
Member

Nice work @chris922 !

@github-actions
Copy link

github-actions bot commented Dec 8, 2022

This functionality has been released in v4.46.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@chris922
Copy link
Contributor Author

chris922 commented Dec 9, 2022

Great, thanks a lot!

@chris922 chris922 deleted the feature/glue-data-catalog-table-datasource branch December 12, 2022 10:11
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-data-source Introduces a new data source. provider Pertains to the provider itself, rather than any interaction with AWS. service/glue Issues and PRs that pertain to the glue service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants