Repository navigation
Make developer guide clearer - #1265
Conversation
Signed-off-by: dttung2905 <[email protected]>
|
Hello @dttung2905, when I was starting to work with lakekeeper, I was confused because my first reaction was to go to DEVELOPMENT.md, but then I found someone mentioning the docs/ folder. So for me, it makes sense to move what's relevant in DEVELOPMENT.md to the docs and then point to the development documentation in the readme. WDYT? |
Good idea! |
|
@ndrluis @mooori While reviewing it more closely, I noticed that the integration tests mentioned in |
There's an error in Running authz unit testsSome authz unit tests need to be run against an OpenFGA server. They are enabled only if # Start an OpenFGA server in a docker container
docker rm --force openfga-client && docker run -d --name openfga-client -p 36080:8080 -p 36081:8081 -p 36300:3000 openfga/openfga:v1.8 run
# Set Lakekeeper's OpenFGA endpoint
export LAKEKEEPER_TEST__OPENFGA__ENDPOINT="http://localhost:36081"
# Enable and run the tests
export TEST_OPENFGA=1
cargo nextest run --all-features --lib openfga |
| # migrate db | ||
| cd crates/lakekeeper | ||
| sqlx database create && sqlx migrate run | ||
| cd ../.. | ||
|
|
There was a problem hiding this comment.
This needs to be done on initial setup to add our tables etc, otherwise the db is empty. So I think these commands should remain in that section.
| Before committing changes to SQL queries, run: | ||
| just sqlx-prepare | ||
|
|
||
| ```sh | ||
| `just sqlx-prepare` | ||
| ``` |
There was a problem hiding this comment.
If you changed any of the SQL statements embedded in Rust code, run this before pushing to GitHub.
| `just sqlx-prepare` | ||
| ``` | ||
| # formatting the code. You may have to install nightly rust toolchain | ||
| just fix-format |
There was a problem hiding this comment.
fix-format and check-clippy should be in the Initial setup / First steps.
Signed-off-by: dttung2905 <[email protected]>
Signed-off-by: dttung2905 <[email protected]>
|
Hi @mooori , thanks for the clarification. I have made some changes to address your comment. Could you please help me to take a quick look at it again?
|
There was a problem hiding this comment.
Pull Request Overview
This PR improves the clarity and organization of the developer documentation by consolidating information from two separate development files into a single, comprehensive developer guide.
- Reorganized the developer guide with clearer sections and improved workflow instructions
- Consolidated OpenFGA testing instructions from the separate DEVELOPMENT.md file into the main developer guide
- Enhanced SQLx workflow documentation with better step-by-step instructions
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/docs/developer-guide.md | Restructured content with clearer sections, improved SQLx workflow, and added OpenFGA testing instructions |
| DEVELOPMENT.md | Replaced content with redirect to consolidated developer guide |
| sqlx migrate run | ||
| ``` | ||
| # Migrate db. Make sure you have sqlx-install with `cargo install sqlx-cli` | ||
| # Run this locally if you change the db schema via crates/lakekeeper/migrations (e.g. after adding a table or dropping a column`). |
There was a problem hiding this comment.
There's an extra backtick at the end of the comment. It should be: "# Run this locally if you change the db schema via crates/lakekeeper/migrations (e.g. after adding a table or dropping a column)."
| # Run this locally if you change the db schema via crates/lakekeeper/migrations (e.g. after adding a table or dropping a column`). | |
| # Run this locally if you change the db schema via crates/lakekeeper/migrations (e.g. after adding a table or dropping a column). |
| just fix-format | ||
|
|
||
| # linting | ||
| just check-clippy |
There was a problem hiding this comment.
The just check-clippy command is duplicated - it appears on both line 28 and line 33. One of these should be removed to avoid confusion.
There was a problem hiding this comment.
Please remove the duplicate.
| just fix-format | ||
|
|
||
| # linting | ||
| just check-clippy |
There was a problem hiding this comment.
Please remove the duplicate.
Co-authored-by: Moritz Zielke <[email protected]>
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughRemoved detailed OpenFGA integration-test instructions from DEVELOPMENT.md and reorganized developer-guide.md: renamed and restructured initial setup, moved SQLx preparation and migration guidance to a dedicated section, and added an "Running Authorization unit tests" subsection describing how to run tests against an OpenFGA server. Changes
Sequence Diagram(s)sequenceDiagram
participant Dev as Developer
participant DEV_MD as DEVELOPMENT.md
participant GUIDE as developer-guide.md
Dev->>DEV_MD: Open DEVELOPMENT.md
DEV_MD-->>Dev: Refer to developer-guide.md for integration test details
Dev->>GUIDE: Open developer-guide.md
GUIDE-->>Dev: Show Initial Setup (Postgres, env, tests)
GUIDE-->>Dev: Show Working with SQLx (prepare, migrations)
GUIDE-->>Dev: Show Running Authorization unit tests (OpenFGA Docker, env, run tests)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Poem
✨ Finishing Touches🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Co-authored-by: Moritz Zielke <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (2)
DEVELOPMENT.md (1)
1-1: Also link the hosted docs (per prior feedback).Add a link to the published developer guide to reduce friction for readers browsing on GitHub.
-For more information, please refer to the [developer guide](docs/docs/developer-guide.md). +For more information, please refer to the [developer guide](docs/docs/developer-guide.md) or the hosted docs at https://docs.lakekeeper.io/docs/nightly/developer-guide/.docs/docs/developer-guide.md (1)
29-33: Duplicate “just check-clippy”. Keep a single lint command.Currently appears twice (once under “run clippy” and again under “linting”).
-# run clippy -just check-clippy -# formatting the code. You may have to install nightly rust toolchain -just fix-format - -# linting -just check-clippy +# linting +just check-clippy +# formatting the code. You may have to install nightly rust toolchain +just fix-format
🧹 Nitpick comments (4)
docs/docs/developer-guide.md (4)
8-8: Tone/wording: simplify “going to” and name foundations precisely.Minor clarity/style tweak; also capitalize “Foundation” when used as a proper noun.
-We are not sure yet if this is going to be Apache, Linux, a Lakekeeper foundation or something else. +We are not sure yet whether this will be the Apache Software Foundation, the Linux Foundation, a Lakekeeper Foundation, or something else.
91-93: Tighten phrasing and clarify path.-This will update the sqlx queries in `.sqlx` to enable static checking of the queries without a migrated database. Remember to `git add .sqlx` before committing. If you forget, your PR will fail to build on GitHub. -Be careful, if the command failed, `.sqlx` will be empty. But do not worry, it wouldn't build on GitHub so there's no way of really breaking things. +This updates the SQLx query metadata in the `.sqlx/` directory to enable static checking without a migrated database. Remember to `git add .sqlx` before committing—otherwise CI will fail. +If the command fails, `.sqlx/` may be empty; CI will catch this, so nothing lands broken.
96-97: Name the Vault engine precisely.-This catalog supports KV2 as a backend for secrets. Tests for KV2 are disabled by default. To enable them, you need to run the following commands: +This catalog supports HashiCorp Vault KV v2 (KV2) as a backend for secrets. Tests for KV2 are disabled by default. To enable them, run:
160-174: Polish OpenFGA test instructions; backticks and optional filter.
- Wrap env var names in backticks.
- The final “openfga” token is interpreted as a test filter; keep it, but note it’s optional if users want to run all tests.
-### Running Authorization unit tests +### Running authorization unit tests -Some authorization unit tests need to be run against an OpenFGA server. They are enabled only if TEST_OPENFGA is set. The workflow for executing them is: +Some authorization unit tests run against an OpenFGA server. They are enabled only if `TEST_OPENFGA` is set. The workflow is: ```bash # Start an OpenFGA server in a docker container docker rm --force openfga-client && docker run -d --name openfga-client -p 36080:8080 -p 36081:8081 -p 36300:3000 openfga/openfga:v1.8 run # Set Lakekeeper's OpenFGA endpoint -export LAKEKEEPER_TEST__OPENFGA__ENDPOINT="http://localhost:36081" +export LAKEKEEPER_TEST__OPENFGA__ENDPOINT="http://localhost:36081" # Enable and run the tests -export TEST_OPENFGA=1 -cargo nextest run --all-features --lib openfga +export TEST_OPENFGA=1 +# Option A: run all tests with OpenFGA-enabled ones included +cargo nextest run --all-features +# Option B: only run tests matching 'openfga' in the name (filter) +cargo nextest run --all-features openfga + +# When done, you can stop/remove the container: +# docker rm --force openfga-clientIf the intention is to scope to a specific package/target instead of a substring filter, please confirm the exact nextest expression and we can update accordingly. </blockquote></details> </blockquote></details> <details> <summary>📜 Review details</summary> **Configuration used: CodeRabbit UI** **Review profile: CHILL** **Plan: Pro** <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between cc03bc3acb97990f4da9ad74d3189bfa7dffd63f and 0c409b737fa423e3f370fffc31704e4f09a42ae3. </details> <details> <summary>📒 Files selected for processing (2)</summary> * `DEVELOPMENT.md` (1 hunks) * `docs/docs/developer-guide.md` (4 hunks) </details> <details> <summary>🧰 Additional context used</summary> <details> <summary>🪛 LanguageTool</summary> <details> <summary>docs/docs/developer-guide.md</summary> [style] ~8-~8: Use ‘will’ instead of ‘going to’ if the following action is certain. Context: ...foundation. We are not sure yet if this is going to be Apache, Linux, a Lakekeeper foundati... (GOING_TO_WILL) </details> </details> </details> <details> <summary>⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)</summary> * GitHub Check: docker / docker * GitHub Check: docker / docker * GitHub Check: docker / docker * GitHub Check: docker / docker * GitHub Check: test * GitHub Check: check-generated-openapi-matches * GitHub Check: sqlx-check </details> <details> <summary>🔇 Additional comments (4)</summary><blockquote> <details> <summary>docs/docs/developer-guide.md (4)</summary> `10-13`: **Initial setup likely needs DB migrations upfront (tests fail on empty DB).** Prior feedback asked to keep the migration step in “Initial Setup” so tables exist before running tests. Recommend adding the commands back here (and keeping the SQLx section for when schema changes). ```diff To work on small and self-contained features, it is usually enough to have a Postgres database running while setting a few envs. The code block below should get you started up to running most unit tests as well as clippy. ```bash # start postgres docker run -d --name postgres-16 -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres:16 # set envs @@ source .env + +# initialize database schema (required initially so the DB isn't empty) +cd crates/lakekeeper +sqlx database create && sqlx migrate run +cd ../.. # Run tests (make sure you have cargo nextest installed, `cargo install cargo-nextest`) cargo nextest run --all-featuresIf you intentionally moved this solely to “Working with SQLx,” please confirm CI/local runs won’t rely on pre-existing schema when running most unit tests.
24-24: Good addition: calling out cargo-nextest.
35-37: Nice callouts.Gating via TEST_* and pointing to SQLx workflow before PRs are helpful.
76-78: Clear cross-reference to setup and env refresh.This placement reads well after the reorg.
Signed-off-by: dttung2905 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (1)
docs/docs/developer-guide.md (1)
81-89: Fix CLI name grammar; keep working directory in sync with “just” usage“sqlx-cli install” → “sqlx-cli installed.” The rest of the sequence (cd into crate, migrate, cd back, then run just) looks good and matches prior feedback.
-# Migrate db. Make sure you have sqlx-cli install with `cargo install sqlx-cli` +# Migrate db. Make sure you have sqlx-cli installed with `cargo install sqlx-cli` # Run this locally if you change the db schema via `crates/lakekeeper/migrations`, # e.g. after adding a table or dropping a column. cd crates/lakekeeper sqlx database create && sqlx migrate run cd ../.. -# If you changed any of the SQL statements embedded in Rust code, run this before pushing to GitHub. +# If you changed any of the SQL statements embedded in Rust code, run this before pushing to GitHub. just sqlx-prepare
🧹 Nitpick comments (5)
docs/docs/developer-guide.md (5)
8-8: Tone/grammar: tighten wording and name the Linux Foundation explicitlyMinor improvement and aligns with LanguageTool hint (“will” over “going to”). Also, “Linux” should be “Linux Foundation.”
-We are not sure yet if this is going to be Apache, Linux, a Lakekeeper foundation or something else. +We are not sure yet whether this will be Apache, the Linux Foundation, a Lakekeeper foundation, or something else.
10-12: Prefer “environment variables” over “envs” for claritySmall wording polish; keeps the style consistent across the document.
-To work on small and self-contained features, it is usually enough to have a Postgres database running while setting a few envs. The code block below should get you started up to running most unit tests as well as clippy. +To work on small and self-contained features, it is usually enough to have a Postgres database running while setting a few environment variables. The code block below should get you started up to running most unit tests as well as clippy.
32-33: Nit: article and capitalizationUse “the nightly Rust toolchain” to read more naturally.
-# formatting the code. You may have to install nightly rust toolchain +# formatting the code. You may have to install the nightly Rust toolchain
76-78: Capitalize SQLx; minor clarity tweakSmall style improvements.
-This crate uses sqlx. For development and compilation a Postgres Database is required. This is part of the [Initial setup](#initial-setup). -If your database credentials used differ, please modify the `.env` accordingly and run `source .env` again. +This crate uses SQLx. For development and compilation, a Postgres database is required. This is part of the [Initial Setup](#initial-setup). +If your database credentials differ from the defaults, modify the `.env` accordingly and run `source .env` again.
92-94: Tighten guidance on .sqlx updates and failure modeClarifies action when the prepare step fails.
-This will update the sqlx queries in `.sqlx` to enable static checking of the queries without a migrated database. Remember to `git add .sqlx` before committing. If you forget, your PR will fail to build on GitHub. -Be careful, if the command failed, `.sqlx` will be empty. But do not worry, it wouldn't build on GitHub so there's no way of really breaking things. +This updates the SQLx query metadata in `.sqlx` to enable static checking without a migrated database. Remember to `git add .sqlx` before committing—otherwise your PR will fail to build on GitHub. +If the command fails, `.sqlx` may be empty. In that case, fix the error and re-run `just sqlx-prepare` before pushing.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
DEVELOPMENT.md(1 hunks)docs/docs/developer-guide.md(4 hunks)
✅ Files skipped from review due to trivial changes (1)
- DEVELOPMENT.md
🧰 Additional context used
🪛 LanguageTool
docs/docs/developer-guide.md
[style] ~8-~8: Use ‘will’ instead of ‘going to’ if the following action is certain.
Context: ...foundation. We are not sure yet if this is going to be Apache, Linux, a Lakekeeper foundati...
(GOING_TO_WILL)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: check-generated-openapi-matches
- GitHub Check: docker / docker
- GitHub Check: test
- GitHub Check: sqlx-check
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: docker / docker
🔇 Additional comments (5)
docs/docs/developer-guide.md (5)
27-27: Good addition: nextest install hint is clearThe parenthetical is helpful and unblocks first-time contributors.
35-37: Helpful cross-references and gating noteThe pointers to env-gated tests and SQLx workflow are clear and reduce CI surprises.
97-97: KV2 section intro reads wellClear statement of capability and how to enable tests.
161-175: Great addition: clear, self-contained OpenFGA unit-test workflowConsolidates prior guidance and makes the gating and setup explicit.
167-171: No change needed for the OpenFGA endpoint portThe
LAKEKEEPER_TEST__OPENFGA__ENDPOINTenv var is consumed as the gRPC endpoint (theOpenFGAConfig.endpointis documented as “GRPC Endpoint Url”), so mapping36081:8081and exportinghttp://localhost:36081is correct. The HTTP API port (36080) is not used by the Rust OpenFGA client.
mooori
left a comment
There was a problem hiding this comment.
LGTM, thanks @dttung2905!
@c-thiel do you want to have a look before merging?
There was a problem hiding this comment.
Actionable comments posted: 0
♻️ Duplicate comments (2)
docs/docs/developer-guide.md (2)
83-89: Fix CLI name grammar; keep instructions aligned with prior guidance.“sqlx-cli install” → “sqlx-cli installed”.
-# Migrate db. Make sure you have sqlx-cli install with `cargo install sqlx-cli` +# Migrate db. Make sure you have sqlx-cli installed with `cargo install sqlx-cli`
163-177: Fix Nextest target: crate isopenfga-client, notopenfga.As previously noted, the workspace doesn’t contain a crate named
openfga; using it will fail. Targetopenfga-clientinstead.-# Enable and run the tests -export TEST_OPENFGA=1 -cargo nextest run --all-features --lib openfga +# Enable and run the tests +export TEST_OPENFGA=1 +cargo nextest run -p openfga-client --all-features
🧹 Nitpick comments (4)
docs/docs/developer-guide.md (4)
8-8: Tighten wording; use proper foundation name.Prefer “will be” over “is going to be” and specify “Linux Foundation”.
-We are not sure yet if this is going to be Apache, Linux, a Lakekeeper foundation or something else. +We are not sure yet if this will be the Apache Software Foundation, the Linux Foundation, a Lakekeeper foundation, or something else.
34-35: Clarify how to install the nightly toolchain for formatting.Add explicit install commands to reduce setup friction.
-# formatting the code. You may have to install nightly rust toolchain +# formatting the code. You may need the nightly toolchain: +# rustup toolchain install nightly +# rustup component add rustfmt --toolchain nightly just fix-format
78-79: Be consistent with “SQLx” capitalization.Use “SQLx” (as in the section title) instead of “sqlx” here.
-This crate uses sqlx. For development and compilation a Postgres Database is required. This is part of the [Initial setup](#initial-setup). +This crate uses SQLx. For development and compilation a Postgres database is required. This is part of the [Initial Setup](#initial-setup).
94-95: Minor grammar/clarity tweak.Use present “won’t build” and streamline wording.
-This will update the sqlx queries in `.sqlx` to enable static checking of the queries without a migrated database. Remember to `git add .sqlx` before committing. If you forget, your PR will fail to build on GitHub. -Be careful, if the command failed, `.sqlx` will be empty. But do not worry, it wouldn't build on GitHub so there's no way of really breaking things. +This updates the SQLx queries in `.sqlx` to enable static checking without a migrated database. Remember to `git add .sqlx` before committing—otherwise your PR will fail to build on GitHub. +Be careful: if the command fails, `.sqlx` may be empty. Don’t worry—CI won’t build, so this won’t get merged unnoticed.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
docs/docs/developer-guide.md(4 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/docs/developer-guide.md
[style] ~8-~8: Use ‘will’ instead of ‘going to’ if the following action is certain.
Context: ...foundation. We are not sure yet if this is going to be Apache, Linux, a Lakekeeper foundati...
(GOING_TO_WILL)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
- GitHub Check: docker / docker
- GitHub Check: docker / docker
- GitHub Check: test
- GitHub Check: check-generated-openapi-matches
- GitHub Check: clippy
- GitHub Check: sqlx-check
- GitHub Check: docker / docker
- GitHub Check: docker / docker
🔇 Additional comments (1)
docs/docs/developer-guide.md (1)
24-28: Re-adding migration to Initial Setup is correct.These commands are required to initialize the schema before tests. LGTM.
* feat: Publish images to Dockerhub (lakekeeper#1274) * feat: Update UI to 0.9.0 with multi-project support (lakekeeper#1275) * chore: release 0.9.4 Release-As: 0.9.4 * chore: release main (lakekeeper#1262) * chore(ci): Fix Dockerhub login * chore(docs): Improve developer guide (lakekeeper#1265) * chore(docs): add info regarding `view_version`'s internal representation (lakekeeper#1261) * chore(docs): Architecture clarify Secret Store (lakekeeper#1284) * fix: Update Limes to 0.2.2 - Fixes compilation issue due to breaking `jwks_client_rs` change (lakekeeper#1282) * fix: Update Limes to 0.2.2 * increase min rust version * chore: release 0.9.5 Release-As: 0.9.5 * chore: release main (lakekeeper#1286) * chore: enable changelog sections for release-please (lakekeeper#1264) k * fix(deps): update rust crate rand to v0.9.2 (lakekeeper#1252) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-channel to v2.5.0 (lakekeeper#1225) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency mkdocs-material to v9.6.17 (lakekeeper#1289) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate anyhow to v1.0.99 (lakekeeper#1290) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: Remove bitnami images (lakekeeper#1288) * feat!: Move to Lakekeeper IO based on hyperscaler SDKs (lakekeeper#1285) * chore(deps): update rust crate reqwest to v0.12.23 (lakekeeper#1294) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(docs): Improve Cloud storage test docs * fix: accept "disable" as PG sslmode as documented (lakekeeper#1303) * feat: Simplify task interface, re-exports, enable delete-after-commit (lakekeeper#1302) * feat: Introduce `RequestMetadata` for Internal Principals which bypass AuthZ (lakekeeper#1306) * chore(deps): update azure/setup-helm action to v4.3.1 (lakekeeper#1299) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(test): use nextest filterset instead of needs_env_var (lakekeeper#1304) * chore(deps): update rust crate openssl-src to v300.5.2 (lakekeeper#1292) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-compression to v0.4.28 (lakekeeper#1311) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate thiserror to v2.0.16 (lakekeeper#1296) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Provide `ApiContext` to externally registered tasks (lakekeeper#1307) * feat!: Simplify Task interface, extend SpecializedTask interface (lakekeeper#1310) * feat: Improve authorizer `are_allowed_*` batch check signature (lakekeeper#1315) * chore(authz): Enforce use of AuthZ decisions with #[must_use] (lakekeeper#1317) * feat: Task Management APIs (lakekeeper#1316) * chore(deps): update rust crate tracing-subscriber to v0.3.20 [security] (lakekeeper#1318) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Add `RunNow` and `RunAt` to Controls for Tasks (lakekeeper#1322) * chore(deps): update rust crate tokio-util to v0.7.16 (lakekeeper#1313) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(docs): Improve Entra ID docs (lakekeeper#1325) * chore(docs): Improve Upgrades & Migration docs (lakekeeper#1326) * feat: Add tasks heartbeat with Catalog state (lakekeeper#1324) * ci: add configuration for CodeRabbit reviews (lakekeeper#1327) * feat: Add optional STS session-tags in S3 STS requests for ABAC authorization (lakekeeper#1230) * feat: Random Server IDs (lakekeeper#1328) * chore(deps): update rust crate percent-encoding to v2.3.2 (lakekeeper#1312) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat(authz): Deprecate Permission Endpoints for Tables without WarehouseIDs (lakekeeper#1334) * fix: Tasks endpoints in router (lakekeeper#1335) * feat(ci): add nextest profile ci_no_secrets for external PRs (lakekeeper#1333) * chore(deps): update rust crate chrono to v0.4.42 (lakekeeper#1331) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: Pin examples duckdb version to 1.3 (lakekeeper#1343) * feat!: Require warehouse_id when checking permissions on views or tables via ID (lakekeeper#1340) * fix: migrate away from bitnami in unittest.yml (lakekeeper#1344) * chore: Remove coderabitt config * fix(docs): Fix inconsistent URL format in README (lakekeeper#1345) Co-authored-by: Christian <[email protected]> * feat: Remove serde_yaml & serde_yml (lakekeeper#1341) * feat!: add `warehouse_id` to PKs of all `table_*` and `view_*` tables (lakekeeper#1254) * feat: Minor namespace join performance improvements * fix: Warehouse permissions are directly used for task retrieval & control (lakekeeper#1347) * fix: Potential Race Condition when undropping Tabulars (lakekeeper#1342) * fix: table rename authz and error handling (lakekeeper#1346) Co-authored-by: Andre Luis Anastacio <[email protected]> * chore(deps): update rust crate google-cloud-auth to v1.1.2 (lakekeeper#1337) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update rust crate time to v0.3.44 (lakekeeper#1349) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency mkdocs-material to v9.6.20 (lakekeeper#1309) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * feat: Set ServerID during migration (lakekeeper#1348) * chore(deps): Remove utoipa fork (lakekeeper#1352) * chore(deps): update rust crate serde_with to v3.14.1 (lakekeeper#1351) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate url to v2.5.7 (lakekeeper#1354) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-compression to v0.4.30 (lakekeeper#1323) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update rust crate serde_json to v1.0.145 (lakekeeper#1250) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update strum monorepo to v0.27.2 (lakekeeper#1251) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update serde monorepo to v1.0.226 (lakekeeper#1355) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate clap to v4.5.48 (lakekeeper#1356) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Add Entity Names to Tasks (lakekeeper#1353) * fix: case insensitivity of catalog endpoints (lakekeeper#1338) * fix: Improve delete_warehouse error message for active tasks * chore(deps): update rust crate tempfile to v3.22.0 (lakekeeper#1359) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christian <[email protected]> * chore(deps): update rust crate axum-prometheus to 0.9.0 (lakekeeper#1358) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: PgSslMode not supported error string * feat(authz)!: add OpenFGA schema v4 and v3->v4 migration (lakekeeper#1314) Co-authored-by: Christian <[email protected]> Co-authored-by: Christian Thiel <[email protected]> * chore(deps): update rust crate uuid to v1.18.1 (lakekeeper#1362) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency markdown-grid-tables to v0.6.0 (lakekeeper#1357) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate anyhow to v1.0.100 (lakekeeper#1350) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: clippy * chore(deps): update rust crate moka to v0.12.11 (lakekeeper#1365) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate tempfile to v3.23.0 (lakekeeper#1367) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update rust crate async-nats to 0.43.0 (lakekeeper#1366) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/setup-node action to v5 (lakekeeper#1371) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/checkout action to v5 (lakekeeper#1369) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/setup-python action to v6 (lakekeeper#1372) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: V3 support (lakekeeper#1364) * chore: Set Get Task Permission to "CanGetMetadata" (lakekeeper#1376) * chore(deps): update dependency node to v22 (lakekeeper#1373) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat(authz)!: extend OpenFGA tabular entities with WarehouseId (lakekeeper#1329) --------- Co-authored-by: Christian <[email protected]> Co-authored-by: Christian Thiel <[email protected]> * feat: Add support for tasks affecting views (lakekeeper#1378) * feat(authz): Add specific Task Actions (lakekeeper#1379) * chore(tests): Test with Iceberg 1.9.2 & 1.10.0 (lakekeeper#1267) * feat: Enrich task metadata with concrete tabular type (lakekeeper#1383) * feat: Add loadTable Snapshots filter (lakekeeper#1385) * feat: add endpoint for fuzzy search of tabulars (lakekeeper#1387) * feat: Update UI to 0.10.0 (lakekeeper#1390) * feat(ui): Update UI to 0.10.1 * chore: Use lakekeeper re-exports in bin (lakekeeper#1391) * fix(tabular-search): distance and docs for `searchterm is uuid` (lakekeeper#1393) * chore(examples): Idempotent bucket creation in minimal example (lakekeeper#1386) In the case where you already have a bucket created, like the "examples" bucket, I ran into an issue where the createbuckets service fails, and this prevents lakekeeper from starting back up. This fix adds a simple minio flag to ignore buckets that already exist, making things even more user friendly * feat: Make number of workers spawned for Expiration & Purge configurable (lakekeeper#1395) * chore: release main (lakekeeper#1295) * chore: added gif to readme (lakekeeper#1396) * chore: remove unneded `#[allow(dead_code)]` (lakekeeper#1399) * fix: Use FnOnce for queue & service registration * Revert "fix: Use FnOnce for queue & service registration" This reverts commit 47b03a0. * chore(docs): Add 0.10 docs * perf(db): remove `join namespace` from `active_tabulars` view (lakekeeper#1401) * doc(db): how to connect to db and inspect schema (lakekeeper#1402) * feat: implement `OpenFgaEntity` for `ServerId` (lakekeeper#1394) * impl OpenFgaEntity * Use the implementation * fix: Use FnOnce for queue & service registration (lakekeeper#1404) * chore(deps): update dependency mkdocs-material to v9.6.21 (lakekeeper#1406) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Expose client-managed X-Iceberg-Access-Delegation (lakekeeper#1407) * fix: Use higher consistency for some OpenFGA queries (lakekeeper#1408) * feat: Improve Kubernetes Auth docs (lakekeeper#1415) * chore: release 0.10.1 Release-As: 0.10.1 * fix: Endpoint stats for Project Endpoints (lakekeeper#1412) * feat: Add create table guard to cleanup location on Failure (lakekeeper#1418) * chore: Generate ID types with Macro (lakekeeper#1419) * chore: Re-Export Tokio from lakekeeper-io create (lakekeeper#1420) * fix: Add support for `write.metadata.metrics.` Table Properties (lakekeeper#1422) * fix: Update UI to 0.10.2 (lakekeeper#1423) * chore: release main (lakekeeper#1403) * fix: Parse empty ProjectID headers as None (lakekeeper#1424) * chore: release 0.10.2 Release-As: 0.10.2 * chore: release main (lakekeeper#1425) * feat: Add `debug_migrate_before_serve` env var (lakekeeper#1426) * feat: Move OpenFGA Authorizer to separate crate (lakekeeper#1421) * chore(renovate): Group dependencies * chore(renovate): ignore additional deps * chore: Rename src/service -> src/server, trait Catalog -> CatalogStore (lakekeeper#1428) * feat(examples): add k8s iceberg sink connector (avro) (lakekeeper#1336) --------- Co-authored-by: Christian <[email protected]> * chore(ci): Fix release please (lakekeeper#1433) * feat: Expose License Information via API (lakekeeper#1432) * fix(deps): update all non-major dependencies (lakekeeper#1429) * chore(ci): Remove mgmt API version update via release-please * chore: Restructure catalog_store into multiple modules (lakekeeper#1434) * feat: Validate Downscoping works on Warehouse creation (lakekeeper#1437) * chore(ci): Fix release please * docs: Add info about installing sqlx to developer-guide.md (lakekeeper#1438) * docs: Update developer-guide.md (lakekeeper#1439) * chore(deps): update all non-major dependencies (lakekeeper#1436) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: Better normalization for ARNs in S3 Profile (lakekeeper#1441) * chore(deps): update all non-major dependencies (lakekeeper#1442) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(main): release 0.10.3 (lakekeeper#1427) * fix: Release Please CI outputs * fix(ci): Revert 0.10.3 release * chore(main): release 0.10.3 (lakekeeper#1446) * feat: Introduce CatalogWarehouseOps & CatalogNamespaceOps abstractions (lakekeeper#1440) * feat: Allow x-user-agent header (lakekeeper#1453) * feat: Table & View Ops Abstractions, Improved Error Handling (lakekeeper#1454) * fix: CORS allow access delegation & etag headers (lakekeeper#1455) * fix: Headers should be lowercase (lakekeeper#1457) * chore(tests): Add trino information_schema.tables test (lakekeeper#1456) * chore: Introduce open-api feature to gate utoipa and swagger (lakekeeper#1458) * chore: Release As 0.11 * fix: Debug assertion table identifier mismatch for signer (lakekeeper#1460) * feat: Caching Short-Term-Credentials (STC) (lakekeeper#1459) * feat: Warehouse Cache (lakekeeper#1462) * chore(deps): update actions/setup-node action to v6 (lakekeeper#1443) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Version based Warehouse Cache (lakekeeper#1465) * feat: AuthZ Server and Project Ops (lakekeeper#1471) * chore(deps): update github artifact actions (lakekeeper#1461) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: Rename release branch pattern to rel-* * feat: Catalog returns full Namespace Hierarchy for nested Namespaces (lakekeeper#1472) --------- Co-authored-by: Christian <[email protected]> Co-authored-by: Christian Thiel <[email protected]> Co-authored-by: Dao Thanh Tung <[email protected]> Co-authored-by: Moritz Zielke <[email protected]> Co-authored-by: Baptiste Gouhoury <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dolan Antenucci <[email protected]> Co-authored-by: Anatoly Popov <[email protected]> Co-authored-by: Andre Luis Anastacio <[email protected]> Co-authored-by: Scott Haines <[email protected]> Co-authored-by: Viktor Kessler <[email protected]> Co-authored-by: Yohan Valencia <[email protected]> Co-authored-by: Paul Roman <[email protected]>
Hi team,
As I was working on this issue #812 and get to work with SQLx. I see that there are areas where the developer guide can be clearer, hence the PR.
I also notice there is another development doc (mostly geared towards openFGA). I'm not sure if it is still valid and should we combine it with the existing
docs/docs/developer-guide.mdfile.lakekeeper/DEVELOPMENT.md
Lines 1 to 18 in cc03bc3
Summary by CodeRabbit