Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cover datasource_data_records with unit tests (#342)
* creating data_record resource * adding relational column support * fixing failing test * adding more examples and fixing recordid loginc * updates on the data_record resource * updates on the data_record resource * updates on the data_record resource * formatting document * fixing issues * fixing issues * adding relationships to example * wip * adding tests * refactoring some methods * adding more acceptance tests * Update internal/powerplatform/services/data_record/api_data_record.go Co-authored-by: Matt Dotson <[email protected]> * adding read operation * switching to a constant for the dataverse api version * switching to url.Parse, instead of strings.TrimPrefix * typo fix * refactoring * improving read implementation * fixing relationship fields in state * fixing relationship issues * removing unneeded writefile command * Squashed commit of the following: commit 57a8dfb Author: polatengin <[email protected]> Date: Thu May 23 12:51:28 2024 -0700 removing unneeded writefile command commit 663fcd5 Merge: bd28a31 6377b2e Author: mawasile <[email protected]> Date: Thu May 23 08:58:44 2024 +0200 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit bd28a31 Author: polatengin <[email protected]> Date: Wed May 22 14:44:36 2024 -0700 fixing relationship issues commit e05f2f6 Merge: 47195a2 9822ece Author: mawasile <[email protected]> Date: Wed May 22 14:35:08 2024 +0200 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit 47195a2 Author: polatengin <[email protected]> Date: Tue May 21 17:06:28 2024 -0700 fixing relationship fields in state commit 15196cd Author: polatengin <[email protected]> Date: Sat May 18 08:19:08 2024 -0700 improving read implementation commit b3f55cc Author: polatengin <[email protected]> Date: Sat May 18 06:58:46 2024 -0700 refactoring commit 5cac3be Author: Mateusz Wasilewski <[email protected]> Date: Fri May 17 08:24:34 2024 +0000 typo fix commit 6614c72 Author: polatengin <[email protected]> Date: Thu May 16 13:02:49 2024 -0700 switching to url.Parse, instead of strings.TrimPrefix commit 27f443a Author: polatengin <[email protected]> Date: Thu May 16 12:55:09 2024 -0700 switching to a constant for the dataverse api version commit ccf5561 Merge: edb8ad7 3580582 Author: polatengin <[email protected]> Date: Thu May 16 12:46:48 2024 -0700 Merge branch 'enpolat/45-resource-powerplatform_data_record' of github.com:microsoft/terraform-provider-power-platform into enpolat/45-resource-powerplatform_data_record commit edb8ad7 Author: polatengin <[email protected]> Date: Thu May 16 12:46:03 2024 -0700 adding read operation commit 3580582 Author: Engin Polat <[email protected]> Date: Thu May 16 12:44:04 2024 -0700 Update internal/powerplatform/services/data_record/api_data_record.go Co-authored-by: Matt Dotson <[email protected]> commit 34c4f8c Author: Mateusz Wasilewski <[email protected]> Date: Thu May 16 16:27:18 2024 +0000 adding more acceptance tests commit f73a063 Author: polatengin <[email protected]> Date: Wed May 15 14:32:09 2024 -0700 refactoring some methods commit 6ed5c3e Author: Mateusz Wasilewski <[email protected]> Date: Wed May 15 19:17:14 2024 +0000 adding tests commit 5dd974b Merge: bc35671 73b0014 Author: Mateusz Wasilewski <[email protected]> Date: Wed May 15 11:19:29 2024 +0200 Merge branch 'enpolat/45-resource-powerplatform_data_record' of https://github.com/microsoft/terraform-provider-power-platform into enpolat/45-resource-powerplatform_data_record commit bc35671 Author: Mateusz Wasilewski <[email protected]> Date: Wed May 15 09:18:20 2024 +0000 wip commit 73b0014 Merge: a675325 1b8c806 Author: mawasile <[email protected]> Date: Wed May 15 10:59:56 2024 +0200 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit a675325 Author: Mateusz Wasilewski <[email protected]> Date: Wed May 15 08:34:53 2024 +0000 adding relationships to example commit 415e8a9 Author: polatengin <[email protected]> Date: Tue May 14 15:22:57 2024 -0700 fixing issues commit 48b84f9 Author: polatengin <[email protected]> Date: Tue May 14 15:16:06 2024 -0700 fixing issues commit 7b06b92 Merge: 5ce7ef5 0db25c3 Author: mawasile <[email protected]> Date: Fri May 10 17:24:13 2024 +0200 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit 5ce7ef5 Author: polatengin <[email protected]> Date: Wed May 8 16:46:48 2024 -0700 formatting document commit fd38440 Author: polatengin <[email protected]> Date: Wed May 8 16:45:29 2024 -0700 updates on the data_record resource commit 3596e59 Author: polatengin <[email protected]> Date: Wed May 8 16:42:39 2024 -0700 updates on the data_record resource commit 92694e9 Merge: 0f1ccc1 889c453 Author: Engin Polat <[email protected]> Date: Wed May 8 16:11:27 2024 -0700 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit 0f1ccc1 Author: polatengin <[email protected]> Date: Wed May 8 16:11:01 2024 -0700 updates on the data_record resource commit cecbcd6 Author: Mateusz Wasilewski <[email protected]> Date: Tue May 7 12:49:18 2024 +0000 adding more examples and fixing recordid loginc commit 645f2ff Merge: b0b08a9 c794270 Author: mawasile <[email protected]> Date: Tue May 7 08:13:35 2024 +0200 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit b0b08a9 Merge: 1bdfbca 9e6b9ca Author: Engin Polat <[email protected]> Date: Thu Apr 25 08:59:26 2024 -0700 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit 1bdfbca Author: polatengin <[email protected]> Date: Thu Apr 25 08:24:03 2024 -0700 fixing failing test commit 4f631f7 Merge: 1491403 e6eb48f Author: Engin Polat <[email protected]> Date: Thu Apr 25 08:09:12 2024 -0700 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit 1491403 Author: polatengin <[email protected]> Date: Thu Apr 25 07:55:32 2024 -0700 adding relational column support commit 8b35187 Author: polatengin <[email protected]> Date: Tue Apr 9 22:04:02 2024 +0000 creating data_record resource * fixing read operation * fixing read operation logic * wip * adding support for sets in relationships * wip * wip * Squashed commit of the following: commit c8d5fca Author: polatengin <[email protected]> Date: Mon Jun 3 12:15:55 2024 -0700 fixing relation issues commit 8aced1c Author: polatengin <[email protected]> Date: Thu May 30 15:15:48 2024 -0700 improving apply logic commit 01e9d1a Merge: a1df161 38c6bb5 Author: Engin Polat <[email protected]> Date: Thu May 30 13:17:54 2024 -0700 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit 38c6bb5 Author: mawasile <[email protected]> Date: Thu May 30 19:01:31 2024 +0200 resource deletions outside terraform state should not end with an error when using terraform refresh (#316) * fix: handle 404 correctly * Update internal/powerplatform/services/solution/api_solution.go Co-authored-by: Matt Dotson <[email protected]> --------- Co-authored-by: Matt Dotson <[email protected]> commit 68c5376 Author: Matt Dotson <[email protected]> Date: Thu May 30 09:57:20 2024 -0700 Fix broken documentation links (#315) * fixes #314 with documentation updates and culture removal * more fixes * wip * Squashed commit of the following: commit e38008b Author: polatengin <[email protected]> Date: Mon Jun 3 13:49:56 2024 -0700 fixing read commit ac99f6b Author: polatengin <[email protected]> Date: Mon Jun 3 13:49:07 2024 -0700 fixing read commit 948b8d3 Author: polatengin <[email protected]> Date: Mon Jun 3 13:47:38 2024 -0700 fixing read commit c8d5fca Author: polatengin <[email protected]> Date: Mon Jun 3 12:15:55 2024 -0700 fixing relation issues commit 8aced1c Author: polatengin <[email protected]> Date: Thu May 30 15:15:48 2024 -0700 improving apply logic commit 01e9d1a Merge: a1df161 38c6bb5 Author: Engin Polat <[email protected]> Date: Thu May 30 13:17:54 2024 -0700 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit 38c6bb5 Author: mawasile <[email protected]> Date: Thu May 30 19:01:31 2024 +0200 resource deletions outside terraform state should not end with an error when using terraform refresh (#316) * fix: handle 404 correctly * Update internal/powerplatform/services/solution/api_solution.go Co-authored-by: Matt Dotson <[email protected]> --------- Co-authored-by: Matt Dotson <[email protected]> commit 68c5376 Author: Matt Dotson <[email protected]> Date: Thu May 30 09:57:20 2024 -0700 Fix broken documentation links (#315) * fixes #314 with documentation updates and culture removal * more fixes * Squashed commit of the following: commit dcee60f Author: polatengin <[email protected]> Date: Mon Jun 3 13:57:19 2024 -0700 fixing read commit d35e6f5 Author: polatengin <[email protected]> Date: Mon Jun 3 13:56:01 2024 -0700 fixing read commit e38008b Author: polatengin <[email protected]> Date: Mon Jun 3 13:49:56 2024 -0700 fixing read commit ac99f6b Author: polatengin <[email protected]> Date: Mon Jun 3 13:49:07 2024 -0700 fixing read commit 948b8d3 Author: polatengin <[email protected]> Date: Mon Jun 3 13:47:38 2024 -0700 fixing read commit c8d5fca Author: polatengin <[email protected]> Date: Mon Jun 3 12:15:55 2024 -0700 fixing relation issues commit 8aced1c Author: polatengin <[email protected]> Date: Thu May 30 15:15:48 2024 -0700 improving apply logic commit 01e9d1a Merge: a1df161 38c6bb5 Author: Engin Polat <[email protected]> Date: Thu May 30 13:17:54 2024 -0700 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit 38c6bb5 Author: mawasile <[email protected]> Date: Thu May 30 19:01:31 2024 +0200 resource deletions outside terraform state should not end with an error when using terraform refresh (#316) * fix: handle 404 correctly * Update internal/powerplatform/services/solution/api_solution.go Co-authored-by: Matt Dotson <[email protected]> --------- Co-authored-by: Matt Dotson <[email protected]> commit 68c5376 Author: Matt Dotson <[email protected]> Date: Thu May 30 09:57:20 2024 -0700 Fix broken documentation links (#315) * fixes #314 with documentation updates and culture removal * more fixes * feat: Add top and filter options to powerplatform_data_records data source This commit adds the `top` and `filter` options to the `powerplatform_data_records` data source in order to limit the number of records returned and filter the results based on specific criteria. This improves the efficiency and flexibility of the data retrieval process. * wip * Squashed commit of the following: commit 8eac5b0 Author: Engin Polat <[email protected]> Date: Mon Jun 3 15:44:29 2024 -0700 Update internal/powerplatform/services/data_record/resource_data_record.go Co-authored-by: Matt Dotson <[email protected]> commit 46ad103 Author: Engin Polat <[email protected]> Date: Mon Jun 3 15:44:17 2024 -0700 Update internal/powerplatform/services/data_record/resource_data_record.go Co-authored-by: Matt Dotson <[email protected]> commit 887be90 Author: polatengin <[email protected]> Date: Mon Jun 3 15:08:06 2024 -0700 updating docs commit 2dfeb43 Author: polatengin <[email protected]> Date: Mon Jun 3 15:04:47 2024 -0700 handling edge cases commit a8e7f79 Author: polatengin <[email protected]> Date: Mon Jun 3 14:56:29 2024 -0700 handling edge cases commit 6c2d47b Author: polatengin <[email protected]> Date: Mon Jun 3 14:03:02 2024 -0700 fixing read commit dcee60f Author: polatengin <[email protected]> Date: Mon Jun 3 13:57:19 2024 -0700 fixing read commit d35e6f5 Author: polatengin <[email protected]> Date: Mon Jun 3 13:56:01 2024 -0700 fixing read commit e38008b Author: polatengin <[email protected]> Date: Mon Jun 3 13:49:56 2024 -0700 fixing read commit ac99f6b Author: polatengin <[email protected]> Date: Mon Jun 3 13:49:07 2024 -0700 fixing read commit 948b8d3 Author: polatengin <[email protected]> Date: Mon Jun 3 13:47:38 2024 -0700 fixing read commit c8d5fca Author: polatengin <[email protected]> Date: Mon Jun 3 12:15:55 2024 -0700 fixing relation issues commit 8aced1c Author: polatengin <[email protected]> Date: Thu May 30 15:15:48 2024 -0700 improving apply logic commit 01e9d1a Merge: a1df161 38c6bb5 Author: Engin Polat <[email protected]> Date: Thu May 30 13:17:54 2024 -0700 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit 38c6bb5 Author: mawasile <[email protected]> Date: Thu May 30 19:01:31 2024 +0200 resource deletions outside terraform state should not end with an error when using terraform refresh (#316) * fix: handle 404 correctly * Update internal/powerplatform/services/solution/api_solution.go Co-authored-by: Matt Dotson <[email protected]> --------- Co-authored-by: Matt Dotson <[email protected]> commit 68c5376 Author: Matt Dotson <[email protected]> Date: Thu May 30 09:57:20 2024 -0700 Fix broken documentation links (#315) * fixes #314 with documentation updates and culture removal * more fixes * wip * Squashed commit of the following: commit 7b195a1 Author: Mateusz Wasilewski <[email protected]> Date: Thu Jun 6 10:50:58 2024 +0200 bug fixes commit 5dc140a Author: Mateusz Wasilewski <[email protected]> Date: Thu Jun 6 09:33:56 2024 +0200 minor fixes commit b8de9fe Merge: e759cd9 cb95e23 Author: mawasile <[email protected]> Date: Thu Jun 6 08:01:02 2024 +0200 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit cb95e23 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed Jun 5 15:01:41 2024 -0700 Bump goreleaser/goreleaser-action in /.github/workflows (#320) Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 5.1.0 to 6.0.0. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](goreleaser/goreleaser-action@5742e2a...286f3b1) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matt Dotson <[email protected]> commit e759cd9 Author: Engin Polat <[email protected]> Date: Wed Jun 5 20:47:01 2024 +0000 updating output terraform file commit 53f6541 Author: Engin Polat <[email protected]> Date: Wed Jun 5 20:43:03 2024 +0000 refactoring commit c57baf9 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed Jun 5 13:28:19 2024 -0700 Bump github.com/hashicorp/terraform-plugin-docs from 0.19.3 to 0.19.4 (#318) Bumps [github.com/hashicorp/terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs) from 0.19.3 to 0.19.4. - [Release notes](https://github.com/hashicorp/terraform-plugin-docs/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-docs/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-plugin-docs@v0.19.3...v0.19.4) --- updated-dependencies: - dependency-name: github.com/hashicorp/terraform-plugin-docs dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mawasile <[email protected]> commit 879c093 Author: Engin Polat <[email protected]> Date: Wed Jun 5 20:20:16 2024 +0000 renaming state variable commit 22b7863 Merge: 8c049f0 9d78c2f Author: Engin Polat <[email protected]> Date: Wed Jun 5 13:14:44 2024 -0700 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit 8c049f0 Author: Engin Polat <[email protected]> Date: Wed Jun 5 20:12:08 2024 +0000 updating user docs commit 3036225 Author: Engin Polat <[email protected]> Date: Wed Jun 5 12:13:13 2024 -0700 changing example data_record resource usage commit 06d8e5c Author: Engin Polat <[email protected]> Date: Wed Jun 5 12:02:03 2024 -0700 moving apiurl variable into the correct place commit 9d78c2f Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed Jun 5 08:18:13 2024 +0200 Bump github.com/hashicorp/terraform-plugin-framework from 1.8.0 to 1.9.0 (#319) Bumps [github.com/hashicorp/terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework) from 1.8.0 to 1.9.0. - [Release notes](https://github.com/hashicorp/terraform-plugin-framework/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-plugin-framework@v1.8.0...v1.9.0) --- updated-dependencies: - dependency-name: github.com/hashicorp/terraform-plugin-framework dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 53061f6 Author: polatengin <[email protected]> Date: Tue Jun 4 15:24:38 2024 -0700 refactoring commit 35ab879 Author: polatengin <[email protected]> Date: Tue Jun 4 15:08:32 2024 -0700 refactoring commit 9d2feb2 Author: Engin Polat <[email protected]> Date: Tue Jun 4 14:03:39 2024 -0700 Update internal/powerplatform/services/data_record/api_data_record.go Co-authored-by: mawasile <[email protected]> commit 7f1c2f2 Author: Engin Polat <[email protected]> Date: Tue Jun 4 14:03:14 2024 -0700 Update internal/powerplatform/services/data_record/api_data_record.go Co-authored-by: mawasile <[email protected]> commit bcb6728 Author: Engin Polat <[email protected]> Date: Tue Jun 4 14:00:34 2024 -0700 Update internal/powerplatform/services/data_record/api_data_record.go Co-authored-by: mawasile <[email protected]> commit e42d388 Author: Engin Polat <[email protected]> Date: Tue Jun 4 13:59:40 2024 -0700 Update internal/powerplatform/services/data_record/api_data_record.go Co-authored-by: mawasile <[email protected]> commit 610bc10 Author: polatengin <[email protected]> Date: Tue Jun 4 13:58:26 2024 -0700 improving code-duplication issues commit 1513d20 Author: polatengin <[email protected]> Date: Tue Jun 4 13:48:24 2024 -0700 improving error detection commit 0cf7825 Author: Engin Polat <[email protected]> Date: Tue Jun 4 11:40:43 2024 -0700 Update internal/powerplatform/services/data_record/api_data_record.go Co-authored-by: mawasile <[email protected]> commit 554a57a Author: polatengin <[email protected]> Date: Tue Jun 4 10:02:34 2024 -0700 removing unneeded field commit db2791e Author: Engin Polat <[email protected]> Date: Tue Jun 4 09:56:36 2024 -0700 Update internal/powerplatform/services/data_record/api_data_record.go Co-authored-by: mawasile <[email protected]> commit 73b4721 Author: Engin Polat <[email protected]> Date: Tue Jun 4 09:56:04 2024 -0700 Update examples/resources/powerplatform_data_record/resource.tf Co-authored-by: mawasile <[email protected]> commit 8eac5b0 Author: Engin Polat <[email protected]> Date: Mon Jun 3 15:44:29 2024 -0700 Update internal/powerplatform/services/data_record/resource_data_record.go Co-authored-by: Matt Dotson <[email protected]> commit 46ad103 Author: Engin Polat <[email protected]> Date: Mon Jun 3 15:44:17 2024 -0700 Update internal/powerplatform/services/data_record/resource_data_record.go Co-authored-by: Matt Dotson <[email protected]> commit 887be90 Author: polatengin <[email protected]> Date: Mon Jun 3 15:08:06 2024 -0700 updating docs commit 2dfeb43 Author: polatengin <[email protected]> Date: Mon Jun 3 15:04:47 2024 -0700 handling edge cases commit a8e7f79 Author: polatengin <[email protected]> Date: Mon Jun 3 14:56:29 2024 -0700 handling edge cases commit 6c2d47b Author: polatengin <[email protected]> Date: Mon Jun 3 14:03:02 2024 -0700 fixing read commit dcee60f Author: polatengin <[email protected]> Date: Mon Jun 3 13:57:19 2024 -0700 fixing read commit d35e6f5 Author: polatengin <[email protected]> Date: Mon Jun 3 13:56:01 2024 -0700 fixing read commit e38008b Author: polatengin <[email protected]> Date: Mon Jun 3 13:49:56 2024 -0700 fixing read commit ac99f6b Author: polatengin <[email protected]> Date: Mon Jun 3 13:49:07 2024 -0700 fixing read commit 948b8d3 Author: polatengin <[email protected]> Date: Mon Jun 3 13:47:38 2024 -0700 fixing read commit c8d5fca Author: polatengin <[email protected]> Date: Mon Jun 3 12:15:55 2024 -0700 fixing relation issues commit 8aced1c Author: polatengin <[email protected]> Date: Thu May 30 15:15:48 2024 -0700 improving apply logic commit 01e9d1a Merge: a1df161 38c6bb5 Author: Engin Polat <[email protected]> Date: Thu May 30 13:17:54 2024 -0700 Merge branch 'main' into enpolat/45-resource-powerplatform_data_record commit 38c6bb5 Author: mawasile <[email protected]> Date: Thu May 30 19:01:31 2024 +0200 resource deletions outside terraform state should not end with an error when using terraform refresh (#316) * fix: handle 404 correctly * Update internal/powerplatform/services/solution/api_solution.go Co-authored-by: Matt Dotson <[email protected]> --------- Co-authored-by: Matt Dotson <[email protected]> commit 68c5376 Author: Matt Dotson <[email protected]> Date: Thu May 30 09:57:20 2024 -0700 Fix broken documentation links (#315) * fixes #314 with documentation updates and culture removal * more fixes * wip * adding acceptance tests * fixing navigation property bug * fix expand lookup bug * fixing tests bugs * updating examples * generating docs * PR fixes * refactor: Consolidate OData query building logic Refactor the `buildExpandFilterQueryPart` function in the `odata.go` file to consolidate the logic for building the OData query. This improves code readability and reduces duplication. The function now uses the `strings.Join` function to concatenate the query parts instead of repeated string concatenation. * Squashed commit of the following: commit e4a0382 Author: mawasile <[email protected]> Date: Fri Jun 14 14:18:44 2024 +0000 refactor: Consolidate OData query building logic * Cover datasource with unit tests --------- Co-authored-by: polatengin <[email protected]> Co-authored-by: Engin Polat <[email protected]> Co-authored-by: Matt Dotson <[email protected]>
- Loading branch information