fix(release): allow null values in schema of dockerVersion#34171
fix(release): allow null values in schema of dockerVersion#34171jaysoo merged 1 commit intonrwl:masterfrom
Conversation
✅ Deploy Preview for nx-docs canceled.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
e759e16 to
d14bbb0
Compare
|
Hi @JamesHenry :D Could you take a quick look at this? It's a small one |
d14bbb0 to
adfda34
Compare
|
Note to maintainers: I have rebased my branch, and allowed However, I haven't fully explored why sometimes it will be Would be great to have some feedback to define the schema file properly. I guess in the future we'd drop one of the two options. |
|
View your CI Pipeline Execution ↗ for commit adfda34
☁️ Nx Cloud last updated this comment at |
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> TS file documents `projectVersionData.dockerVersion` as having type `string | undefined`. However, code behaves differently. For instance, [here](https://github.com/nrwl/nx/blob/e57848cea748b85f17e5fc704b901975a8424c4d/packages/nx/src/command-line/release/version/release-group-processor.ts#L128) and [here](https://github.com/nrwl/nx/blob/e57848cea748b85f17e5fc704b901975a8424c4d/packages/nx/src/command-line/release/utils/shared.ts#L294) it is setting as and comparing against `null`. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Schema has value that code sets (`null`) ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #34172 (cherry picked from commit b72a203)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> TS file documents `projectVersionData.dockerVersion` as having type `string | undefined`. However, code behaves differently. For instance, [here](https://github.com/nrwl/nx/blob/e57848cea748b85f17e5fc704b901975a8424c4d/packages/nx/src/command-line/release/version/release-group-processor.ts#L128) and [here](https://github.com/nrwl/nx/blob/e57848cea748b85f17e5fc704b901975a8424c4d/packages/nx/src/command-line/release/utils/shared.ts#L294) it is setting as and comparing against `null`. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Schema has value that code sets (`null`) ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #34172 (cherry picked from commit b72a203)
|
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
TS file documents
projectVersionData.dockerVersionas having typestring | undefined. However, code behaves differently. For instance, here and here it is setting as and comparing againstnull.Expected Behavior
Schema has value that code sets (
null)Related Issue(s)
Fixes #34172