From 98e8538a1dd58d02f1bc3b5e31cc7d599f9874b5 Mon Sep 17 00:00:00 2001 From: Raghd Hamzeh Date: Sun, 3 Mar 2024 22:35:13 -0500 Subject: [PATCH 1/4] chore: allow community and product to approve README changes --- config/common/files/.github/CODEOWNERS.mustache | 1 + 1 file changed, 1 insertion(+) diff --git a/config/common/files/.github/CODEOWNERS.mustache b/config/common/files/.github/CODEOWNERS.mustache index 1f0304bf..d01b55eb 100644 --- a/config/common/files/.github/CODEOWNERS.mustache +++ b/config/common/files/.github/CODEOWNERS.mustache @@ -1 +1,2 @@ * @{{gitUserId}}/dx +README.md @{{gitUserId}}/product @{{gitUserId}}/community From 964039ace5fb3611d4c3a2cafb2eab0ffbc04447 Mon Sep 17 00:00:00 2001 From: Raghd Hamzeh Date: Sun, 3 Mar 2024 22:40:28 -0500 Subject: [PATCH 2/4] chore(java-sdk): dependency upgrades --- .github/workflows/main.yaml | 2 +- .../template/.github/workflows/main.yml.mustache | 14 +++++++------- config/clients/java/template/build.gradle.mustache | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 4dd41067..7c137d64 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -150,7 +150,7 @@ jobs: fetch-depth: 0 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4.1.0 with: java-version: 11 distribution: 'temurin' diff --git a/config/clients/java/template/.github/workflows/main.yml.mustache b/config/clients/java/template/.github/workflows/main.yml.mustache index 8c587fa4..62adfa0e 100644 --- a/config/clients/java/template/.github/workflows/main.yml.mustache +++ b/config/clients/java/template/.github/workflows/main.yml.mustache @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.5.2 - name: Set up JDK - uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0 + uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4.1.0 with: {{=< >=}} java-version: ${{ matrix.java }} @@ -40,16 +40,16 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.5.2 - name: Set up JDK - uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0 + uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4.1.0 with: java-version: 11 distribution: 'temurin' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # v1.1.0 + uses: gradle/wrapper-validation-action@699bb18358f12c5b78b37bb0111d3a0e2276e0e2 # v2.1.1 - name: Publish package - uses: gradle/gradle-build-action@3b1b3b9a2104c2b47fbae53f3938079c00c9bb87 # v3.0.0 + uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0 with: # Tasks created by https://github.com/gradle-nexus/publish-plugin arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository @@ -71,16 +71,16 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.5.2 - name: Set up JDK - uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0 + uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4.1.0 with: java-version: 11 distribution: 'temurin' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # v1.1.0 + uses: gradle/wrapper-validation-action@699bb18358f12c5b78b37bb0111d3a0e2276e0e2 # v2.1.1 - name: Publish package - uses: gradle/gradle-build-action@3b1b3b9a2104c2b47fbae53f3938079c00c9bb87 # v3.0.0 + uses: gradle/gradle-build-action@29c0906b64b8fc82467890bfb7a0a7ef34bda89e # v3.1.0 with: # Tasks created by https://docs.gradle.org/current/userguide/publishing_maven.html arguments: publishAllPublicationsToGitHubPackagesRepository diff --git a/config/clients/java/template/build.gradle.mustache b/config/clients/java/template/build.gradle.mustache index 8575afaf..8b827d18 100644 --- a/config/clients/java/template/build.gradle.mustache +++ b/config/clients/java/template/build.gradle.mustache @@ -56,7 +56,7 @@ ext { swagger_annotations_version = "2.2.9" {{/swagger2AnnotationLibrary}} jackson_version = "2.16.1" - junit_version = "5.10.1" + junit_version = "5.10.2" {{#hasFormParamsInSpec}} httpmime_version = "4.5.13" {{/hasFormParamsInSpec}} From a4d1ecc6c3c6b68dfa67f2ec76ecdc2371b87e59 Mon Sep 17 00:00:00 2001 From: Raghd Hamzeh Date: Sun, 3 Mar 2024 22:52:03 -0500 Subject: [PATCH 3/4] release(java-sdk): v0.4.0 --- config/clients/java/CHANGELOG.md.mustache | 8 ++++++++ config/clients/java/config.overrides.json | 2 +- config/clients/java/template/example/README.md | 4 ++-- config/clients/java/template/example/example1/README.md | 4 ++-- .../clients/java/template/example/example1/build.gradle | 2 +- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/config/clients/java/CHANGELOG.md.mustache b/config/clients/java/CHANGELOG.md.mustache index 356d2e14..0c124224 100644 --- a/config/clients/java/CHANGELOG.md.mustache +++ b/config/clients/java/CHANGELOG.md.mustache @@ -1,5 +1,13 @@ # Changelog +## v0.4.0 + +### [0.4.0](https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}/compare/v0.3.2...v0.4.0) (2024-03-04) + +- fix!: reverse the transaction behaviour when `disableTransactions` is set on `Write` + ⚠️ This is a behavioral breaking change! + Previously, the `OpenFgaClient` reversed the behavior of write transactions based on the `disableTransactions` flag. This has been fixed so that batched writes are sent if `disableTransactions == true` and a single transactional write if it is false (default). + ## v0.3.2 ### [0.3.2](https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}/compare/v0.3.1...v0.3.2) (2024-01-26) diff --git a/config/clients/java/config.overrides.json b/config/clients/java/config.overrides.json index 32cb0281..7bd8f9fa 100644 --- a/config/clients/java/config.overrides.json +++ b/config/clients/java/config.overrides.json @@ -3,7 +3,7 @@ "gitRepoId": "java-sdk", "artifactId": "openfga-sdk", "groupId": "dev.openfga", - "packageVersion": "0.3.2", + "packageVersion": "0.4.0", "apiPackage": "dev.openfga.sdk.api", "authPackage": "dev.openfga.sdk.api.auth", "clientPackage": "dev.openfga.sdk.api.client", diff --git a/config/clients/java/template/example/README.md b/config/clients/java/template/example/README.md index 023c55c3..225a5eec 100644 --- a/config/clients/java/template/example/README.md +++ b/config/clients/java/template/example/README.md @@ -30,7 +30,7 @@ Steps 2. In the Example project file (e.g. `build.gradle`), comment out the part that specifies the remote SDK, e.g. ```groovy dependencies { - implementation("dev.openfga:openfga-sdk:0.3.+") + implementation("dev.openfga:openfga-sdk:0.4.+") // ...etc } @@ -38,7 +38,7 @@ dependencies { and replace it with one pointing to the local gradle project, e.g. ```groovy dependencies { - // implementation("dev.openfga:openfga-sdk:0.3.+") + // implementation("dev.openfga:openfga-sdk:0.4.+") implementation project(path: ':') // ...etc diff --git a/config/clients/java/template/example/example1/README.md b/config/clients/java/template/example/example1/README.md index b4f70a4e..8a510b98 100644 --- a/config/clients/java/template/example/example1/README.md +++ b/config/clients/java/template/example/example1/README.md @@ -31,7 +31,7 @@ Steps 2. In the Example project file (e.g. `build.gradle`), comment out the part that specifies the remote SDK, e.g. ```groovy dependencies { - implementation("dev.openfga:openfga-sdk:0.3.+") + implementation("dev.openfga:openfga-sdk:0.4.+") // ...etc } @@ -39,7 +39,7 @@ dependencies { and replace it with one pointing to the local gradle project, e.g. ```groovy dependencies { - // implementation("dev.openfga:openfga-sdk:0.3.+") + // implementation("dev.openfga:openfga-sdk:0.4.+") implementation project(path: ':') // ...etc diff --git a/config/clients/java/template/example/example1/build.gradle b/config/clients/java/template/example/example1/build.gradle index 793cd3ee..9ea6879f 100644 --- a/config/clients/java/template/example/example1/build.gradle +++ b/config/clients/java/template/example/example1/build.gradle @@ -23,7 +23,7 @@ ext { } dependencies { - implementation("dev.openfga:openfga-sdk:0.3.+") + implementation("dev.openfga:openfga-sdk:0.4.+") // Serialization implementation("com.fasterxml.jackson.core:jackson-core:$jacksonVersion") From e18d8d7c5b51649a3802167e6ea51731e4945f26 Mon Sep 17 00:00:00 2001 From: Raghd Hamzeh Date: Tue, 12 Mar 2024 12:25:52 -0400 Subject: [PATCH 4/4] chore: fix codeowners to allow DX to approve README changes --- .github/CODEOWNERS | 2 +- config/common/files/.github/CODEOWNERS.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2022d249..1eeb322d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ * @openfga/dx -README.md @openfga/product @openfga/community +README.md @openfga/product @openfga/community @openfga/dx diff --git a/config/common/files/.github/CODEOWNERS.mustache b/config/common/files/.github/CODEOWNERS.mustache index d01b55eb..ceae5aa3 100644 --- a/config/common/files/.github/CODEOWNERS.mustache +++ b/config/common/files/.github/CODEOWNERS.mustache @@ -1,2 +1,2 @@ * @{{gitUserId}}/dx -README.md @{{gitUserId}}/product @{{gitUserId}}/community +README.md @{{gitUserId}}/product @{{gitUserId}}/community @{{gitUserId}}/community