Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Release filter validation on policy #121

Merged
merged 5 commits into from
Oct 8, 2024

Conversation

adityachoudhari26
Copy link
Contributor

No description provided.

Comment on lines 135 to 158
{activeTab === "overview" && (
<Overview environmentPolicy={environmentPolicy} />
)}
{activeTab === "approval" && (
<Approval environmentPolicy={environmentPolicy} />
)}
{activeTab === "concurrency" && (
<Concurrency environmentPolicy={environmentPolicy} />
)}
{activeTab === "gradual-rollout" && (
<GradualRollouts environmentPolicy={environmentPolicy} />
)}
{activeTab === "success-criteria" && (
<SuccessCriteria environmentPolicy={environmentPolicy} />
)}
{activeTab === "release-sequencing" && (
<ReleaseSequencing environmentPolicy={environmentPolicy} />
)}
{activeTab === "release-windows" && (
<ReleaseWindows environmentPolicy={environmentPolicy} />
)}
{activeTab === "release-filter" && (
<ReleaseFilter environmentPolicy={environmentPolicy} />
)}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const View= {
	overview: <Overview environmentPolicy={environmentPolicy} />,
	approval: <Approval environmentPolicy={environmentPolicy} />,
}[selected]

)
.then(takeFirstOrNull);

return isPresent(release) ? v : null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return isPresent(release) ? v : null;
return release ?? null;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm not returning release, i'm returning v, so I cannot do null coalescing here

@adityachoudhari26 adityachoudhari26 merged commit cc8a3b7 into main Oct 8, 2024
8 checks passed
@adityachoudhari26 adityachoudhari26 deleted the release-filter-validation-eng-159 branch October 8, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants