Repository navigation
Tags
Tags
Fix CS8604 in EndToEndTests that fails the release build on release/2… ….2 (#3937) ## Why make this change? - Closes #3939 - The internal release pipeline builds the whole solution in Release, where compiler warnings are treated as errors. A nullable warning in `src/Cli.Tests/EndToEndTests.cs` (added in #3907) fails that build, which blocks the 2.2 release candidate: `EndToEndTests.cs(1333,131): error CS8604: Possible null reference argument for parameter 'value' in 'string string.Join(char separator, params string?[] value)'` - GitHub CI builds each project separately, so the same diagnostic only appears there as a warning and CI stays green. ## What is this change? - Adds the null-forgiving operator to `engineArgs` in the `string.Join(...)` assert message of `TestStartCommandForwardsLogLevelOnlyWhenProvidedOnCli`, matching the `engineArgs!` already used earlier on the same line. - Test-only change with no runtime effect. The same fix will go to `main` in a separate PR. ## How was this tested? - [ ] Integration Tests - [x] Unit Tests - Reproduced the release pipeline's build locally (`dotnet restore` + `dotnet build src/Azure.DataApiBuilder.sln -c Release --no-restore`, SDK 10.0.404): this single CS8604 error before the change, 0 errors after. - `TestStartCommandForwardsLogLevelOnlyWhenProvidedOnCli` (both data rows) passes. - An internal release pipeline validation run on this branch passed the build step that previously failed. ## Sample Request(s) N/A. Test-only change; no API or CLI behavior changed.
Cherry-Pick: Fix NuGet audit failures blocking CI restore (#3887) ## Why make this change? - Closes issue #3888 ## What is this change? Cherry-picked PR: - #3870 - #3892 ## How was this tested? This is a cherry-pick it was already tested when it was first merged. ## Sample Request(s) N/A --------- Co-authored-by: aaronburtle <93220300+aaronburtle@users.noreply.github.com>
Cherry-Pick: Fix: child-config `autoentities` fails validation with "… …No entities f… (#3841) ## Why make this change? - Closes issue #3840 ## What is this change? Cherry-picked PR: - #3723 ## How was this tested? This is a cherry-pick it was already tested when it was first merged. ## Sample Request(s) N/A Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: Anusha Kolan <anushakolan10@gmail.com> Co-authored-by: aaronburtle <93220300+aaronburtle@users.noreply.github.com>
Cherry-Pick: Add Missing Architecture Versions for Nuget Package (#3815… …) (#3818) ## Why make this change? This cherry-picks the PR that fixes the issue that doesn't allow packages to be built in the proper architectures. ## What is this change? Cherry-picked PRs - #3815 ## How was this tested? Existing tests in cherry-pick cover new changes. ## Sample Request(s) N/A
[backport release/2.0] fix: don't enforce many-to-one/one-to-many rel… …ationships for DWSQL (#3770) (#3775) ## What's the problem? When Data API builder serves a Fabric Warehouse (DWSQL) database, a GraphQL query that follows a relationship between two tables could fail with this error: ``` "Cannot return null for non-nullable field." (HC0018) ``` ...even when the query was perfectly valid and the data was fine. Instead of returning the row, the whole query blew up. ## Why does it happen? Most databases guarantee that if a row points to a "parent" row (a foreign key), that parent actually exists. DAB relies on that guarantee: if a foreign-key column is marked "required" (NOT NULL), DAB assumes the related object is always there, and tells GraphQL "this related field will never be null." **Fabric Warehouse is different — it does not enforce foreign keys.** So a child row can happily point at a parent that doesn't exist (an "orphaned" row). When GraphQL asks for that missing parent, DAB has nothing to return, but it already promised the field would never be null. GraphQL sees a broken promise and throws HC0018. Example: an `Enrollment` row has a `studentId` that no `Student` matches. Asking for `enrollment.student` returns nothing, and the query fails. ## What does this change do? For Fabric Warehouse (DWSQL) only, DAB no longer assumes related rows always exist. It marks the related fields on many-to-one and one-to-many relationships as nullable. That way, when a related row is genuinely missing, the query simply returns `null` for that field instead of failing the entire request. Behavior for all other databases (SQL Server, PostgreSQL, MySQL) is unchanged, since they do enforce foreign keys. ## How was it verified? - Added unit tests covering both DWSQL (field is now nullable) and SQL Server (field stays non-nullable) for both relationship directions. - Manually validated end-to-end against a Fabric Warehouse: the query that previously failed now returns the row with `student: null`. #### Before <img width="854" height="730" alt="Screenshot 2026-08-12 143540" src="https://github.com/user-attachments/assets/9b4585e5-5cb8-456f-8efb-0eda22f68994" /> #### After <img width="1053" height="514" alt="Screenshot 2026-08-12 141456" src="https://github.com/user-attachments/assets/cbb42b63-c867-4804-bc10-6d7a4c1c643b" /> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: aaronburtle <93220300+aaronburtle@users.noreply.github.com>
Cherry pick PR 3763: Bump version to 2.1 (#3764) ## Why make this change? Cherry-pick of #3763 from `main` to `release/2.1` to bump the product version in preparation for the 2.1 release. ## What is this change? - Updates `<Version>` in `src/Directory.Build.props` from `2.0` to `2.1`. - The release pipeline reads this value to stamp all build outputs and NuGet packages. ## How was this tested? - [ ] Integration Tests - [ ] Unit Tests No functional code changed; version string update only. ## Sample Request(s) N/A — no API or CLI behavior changed.
Cherry pick PR 3763: Bump version to 2.1 (#3764) ## Why make this change? Cherry-pick of #3763 from `main` to `release/2.1` to bump the product version in preparation for the 2.1 release. ## What is this change? - Updates `<Version>` in `src/Directory.Build.props` from `2.0` to `2.1`. - The release pipeline reads this value to stamp all build outputs and NuGet packages. ## How was this tested? - [ ] Integration Tests - [ ] Unit Tests No functional code changed; version string update only. ## Sample Request(s) N/A — no API or CLI behavior changed.
Cherry-Pick: Fix failure on REST requests with $filter and $orderby p… …arameters (#3673) ## Why make this change? This change cherry-picks the PR that fixes the $filter and $orderby parameters ## What is this change? Cherry-picked PRs: - #3664 ## How was this tested? Existing tests in cherry-pick cover new changes. ## Sample Request(s) N/A
Fix nullable tests (#3637) ## Why make this change? This change solves issue #3636 ## What is this change? - Removed the `?` symbol from the testing variables in order to allow the project to build properly inside the pipeline ## How was this tested? - [ ] Integration Tests - [ ] Unit Tests - [X] Manual Tests Manually ran the pipeline to ensure that it builds [appropriately](https://msdata.visualstudio.com/CosmosDB/_build/results?buildId=220505243&view=results). ## Sample Request(s) N/A
Fix nullable tests (#3637) ## Why make this change? This change solves issue #3636 ## What is this change? - Removed the `?` symbol from the testing variables in order to allow the project to build properly inside the pipeline ## How was this tested? - [ ] Integration Tests - [ ] Unit Tests - [X] Manual Tests Manually ran the pipeline to ensure that it builds [appropriately](https://msdata.visualstudio.com/CosmosDB/_build/results?buildId=220505243&view=results). ## Sample Request(s) N/A
PreviousNext