Skip to content

Commit 7d5a5b6

Browse files
authored
feat(main): update proto GIT_TAG to service/v0.14.0 (#141)
* feat: add '.gitattributes' file * feat: update proto GIT_TAG to service/v0.14.0 * fix: update generation docs * feat: update '.proto' files * feat: update generated ConnectRPC/gRPC files * feat: add 'lint-pr-title.yaml' workflow * fix: move gitattributes to root, update paths * fix: move gitattributes to root, update paths
1 parent 8108725 commit 7d5a5b6

37 files changed

Lines changed: 1288 additions & 863 deletions

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages/otdf-python-proto/src/otdf_python_proto/** linguist-generated=true
2+
packages/otdf-python-proto/proto-files/** linguist-generated=true
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Lint PR Title
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
11+
permissions:
12+
pull-requests: read
13+
14+
jobs:
15+
lint:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: amannn/action-semantic-pull-request@v6
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
# Types must match changelog-sections in .release-please-config.json
23+
types: |
24+
feat
25+
fix
26+
perf
27+
revert
28+
docs
29+
refactor
30+
build
31+
style
32+
chore
33+
test
34+
ci
35+
requireScope: false

packages/otdf-python-proto/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ See [CONNECT_RPC.md](../docs/CONNECT_RPC.md) for additional information.
2929
To generate Connect RPC clients and protobuf files:
3030

3131
```bash
32-
cd otdf-python-proto
32+
cd packages/otdf-python-proto
3333
uv run python scripts/generate_connect_proto.py
3434
```
3535

3636
Or use the convenience script:
3737

3838
```bash
39+
cd packages/otdf-python-proto
3940
./scripts/build_connect_proto.sh
4041
```
4142

@@ -50,13 +51,14 @@ This generates:
5051
To generate traditional gRPC clients (backward compatibility):
5152

5253
```bash
53-
cd otdf-python-proto
54+
cd packages/otdf-python-proto
5455
uv run python scripts/generate_proto.py
5556
```
5657

5758
Or use the legacy script:
5859

5960
```bash
61+
cd packages/otdf-python-proto
6062
./scripts/build_proto.sh
6163
```
6264

@@ -65,7 +67,7 @@ Or use the legacy script:
6567
To download the latest proto files from OpenTDF platform:
6668

6769
```bash
68-
cd otdf-python-proto
70+
cd packages/otdf-python-proto
6971
uv run python scripts/generate_connect_proto.py --download
7072
```
7173

@@ -159,7 +161,7 @@ response = client.GetPolicy(request)
159161
If you're migrating from traditional gRPC clients to Connect RPC:
160162

161163
1. Read the [Connect RPC Migration Guide](../docs/CONNECT_RPC.md)
162-
2. Run the Connect RPC generation: `./scripts/build_connect_proto.sh` (or from the submodule: `cd otdf-python-proto && uv run python scripts/generate_connect_proto.py`)
164+
2. Run the Connect RPC generation: `cd packages/otdf-python-proto && ./scripts/build_connect_proto.sh` (or: `cd packages/otdf-python-proto && uv run python scripts/generate_connect_proto.py`)
163165
3. Update your client code to use `*_connect.py` modules
164166
4. Test with your authentication and deployment setup
165167
5. Optionally remove legacy gRPC dependencies

packages/otdf-python-proto/proto-files/policy/actions/actions.proto

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/otdf-python-proto/proto-files/policy/attributes/attributes.proto

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/otdf-python-proto/proto-files/policy/kasregistry/key_access_server_registry.proto

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/otdf-python-proto/proto-files/policy/namespaces/namespaces.proto

Lines changed: 16 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/otdf-python-proto/proto-files/policy/objects.proto

Lines changed: 15 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)