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

Clean up logical terminology #1790

Merged
merged 6 commits into from
Nov 30, 2023
Merged

Clean up logical terminology #1790

merged 6 commits into from
Nov 30, 2023

Conversation

evansd
Copy link
Contributor

@evansd evansd commented Nov 29, 2023

This makes two changes to our logical functions:

  • Replaces case(..., default=...) with case(..., otherwise=...)
  • Replaces if_null_then() with when_null_then()

In both cases this gives us better consistency of terminology. The old functions/arguments are retained as aliases for now so there are no backwards compatibility concerns.

We plan to remove the aliases when we release v1.

Closes #1439
Closes #1621

ehrql/query_language.py Outdated Show resolved Hide resolved
This gives us more consistent terminology. We retain the old name as an
alias for backwards compatibility.
This gives us more consistent terminology. We retain the old name as an
alias for backwards compatibility.
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9a5d811
Status: ✅  Deploy successful!
Preview URL: https://516f07ac.databuilder.pages.dev
Branch Preview URL: https://evansd-logical-terminology.databuilder.pages.dev

View logs

@evansd evansd merged commit e44c535 into main Nov 30, 2023
8 checks passed
@evansd evansd deleted the evansd/logical-terminology branch November 30, 2023 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants