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

feature/mx-1571 create rule endpoint #45

Merged
merged 87 commits into from
Jun 13, 2024
Merged

Conversation

cutoffthetop
Copy link
Contributor

@cutoffthetop cutoffthetop commented Mar 20, 2024

PR Context

Added

  • add INDEXABLE_MODEL_CLASSES_BY_NAME lookup to fields module
  • add render_constraints jinja filter
  • implement new POST /rule-item endpoint

Changes

  • update connector and queries to support creating rules (analogous to extracted items)

@cutoffthetop cutoffthetop changed the title Feature/mx 1571 create rules feature/mx-1571 create rule endpoint May 30, 2024
rababerladuseladim added a commit to robert-koch-institut/mex-common that referenced this pull request Jun 7, 2024
# PR Context
- more prep work for
robert-koch-institut/mex-backend#45

# Added

- add static class attribute `stemType` to models, containing an
unprefixed entityType
- add `AnyRuleModel`, `RULE_MODEL_CLASSES`, `RULE_MODEL_CLASSES_BY_NAME`
to models
- add type aliases `AnyPrimitiveType` and `LiteralStringType` to types
- add new utility function `ensure_postfix` for adding postfixes to
strings

# Changes

- clean-up and unify `mapping` and `filter` class generation

---------

Signed-off-by: Nicolas Drebenstedt <897972+cutoffthetop@users.noreply.github.com>
Co-authored-by: rababerladuseladim <rababerladuseladim@users.noreply.github.com>
mr-kamran-ali
mr-kamran-ali previously approved these changes Jun 13, 2024
Copy link
Contributor

@mr-kamran-ali mr-kamran-ali left a comment

Choose a reason for hiding this comment

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

Looks good so far. 🚀

@cutoffthetop cutoffthetop merged commit 25b3bc2 into main Jun 13, 2024
7 checks passed
@cutoffthetop cutoffthetop deleted the feature/mx-1571-create-rules branch June 13, 2024 13:59
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