Skip to content

accept enum-like proposal with edits mentioned during architecture review #624

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

Merged
merged 12 commits into from
Jun 24, 2025

Conversation

audreyality
Copy link
Member

@audreyality audreyality commented Jun 24, 2025

🎟️ Tracking

N/A

📔 Objective

Update enum-like proposal to reflect architectural discussion:

  • Accepts proposal
  • Removes strongly typed enum-likes; they break discriminated unions
  • Adds guidance for using enums with angular templates
  • Adds guidance for string-valued enums

Rendered: ADR-0025, avoid enums guidance, angular guidance

🦖 System Evolution

This PR also distinguishes published and accepted dates in the front matter. This wasn't mentioned in the architecture review. It's just useful to distinguish between when the ADR was proposed from when it comes into force.

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@audreyality audreyality requested review from a team as code owners June 24, 2025 14:24
@github-actions github-actions bot added the adr label Jun 24, 2025
Copy link

cloudflare-workers-and-pages bot commented Jun 24, 2025

Deploying contributing-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 041223d
Status: ✅  Deploy successful!
Preview URL: https://21d89f8a.contributing-docs.pages.dev
Branch Preview URL: https://remove-strongly-typed-enum-l.contributing-docs.pages.dev

View logs

Copy link

github-actions bot commented Jun 24, 2025

Logo
Checkmarx One – Scan Summary & Details128163ac-e9ac-400d-b247-d35e70c075a3

Great job, no security vulnerabilities found in this Pull Request

Copy link
Contributor

@withinfocus withinfocus left a comment

Choose a reason for hiding this comment

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

Can amend this later with an ADR acceptance or not.

withinfocus
withinfocus previously approved these changes Jun 24, 2025
withinfocus
withinfocus previously approved these changes Jun 24, 2025
Copy link
Contributor

@withinfocus withinfocus left a comment

Choose a reason for hiding this comment

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

Still good.

@audreyality

This comment was marked as outdated.

@audreyality audreyality changed the title remove strongly typed enum-likes; they break discriminated unions accept enum-like proposal with edits mentioned during architecture review Jun 24, 2025
@audreyality

This comment was marked as outdated.

@audreyality audreyality merged commit 3556912 into main Jun 24, 2025
8 of 9 checks passed
@audreyality audreyality deleted the remove-strongly-typed-enum-likes branch June 24, 2025 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants