Skip to content

Auto Generate Estate Id - #2008

Merged
StuartFerguson merged 2 commits into
mainfrom
task/#1998_use_generated_estateid
Nov 4, 2026
Merged

StuartFerguson merged 2 commits into
mainfrom
task/#1998_use_generated_estateid

Conversation

@StuartFerguson

Copy link
Copy Markdown
Member

Auto Generate Estate Id

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T11:54:05.121306Z 151ef8d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@StuartFerguson StuartFerguson linked an issue Nov 4, 2026 that may be closed by this pull request
@codacy-production

codacy-production Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 151ef8df68

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}

public static Guid GenerateEstateId(String estateName) {
String normalisedEstateName = estateName.ToLower().Replace(" ", String.Empty);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Validate the estate name before generating its ID

When a create-estate request omits EstateName or explicitly sets it to null, estateName.ToLower() throws before EstateAggregate.Create can perform its existing String.IsNullOrEmpty validation. EstateDomainService.CreateEstate catches that exception and returns a generic failure instead of the previous Result.Invalid with the required-name message. Validate the name before generating the ID so malformed requests retain the intended validation result.

Useful? React with 👍 / 👎.

@StuartFerguson
StuartFerguson merged commit 80b07ba into main Nov 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate EstateAggregate IDs through IdGenerationService

1 participant