graphql-engine/v3/crates
Daniel Harvey 16e3de49c1 Deduplicate resolve_model_predicate (#603)
<!-- Thank you for submitting this PR! :) -->

## Description

Resolves https://hasurahq.atlassian.net/browse/V3ENGINE-124

Deduplicates `resolve_model_predicate` and
`resolve_model_predicate_with_type`, making the former call the latter.

Fixed now because this was making new boolean expression type changes
harder.

Doing so revealed and fixed a bug in predicate relationships (since
we're using the same code for everything, suddenly there were a lot of
failing tests).

<!--
  Questions to consider answering:
  1. What user-facing changes are being made?
2. What are issues related to this PR? (Consider adding `(close
#<issue-no>)` to the PR title)
  3. What is the conceptual design behind this PR?
  4. How can this PR be tested/verified?
  5. Does the PR have limitations?
  6. Does the PR introduce breaking changes?
-->

## Changelog

- Add a changelog entry (in the "Changelog entry" section below) if the
changes
  in this PR have any user-facing impact. See
[changelog
guide](https://github.com/hasura/graphql-engine-mono/wiki/Changelog-Guide).
- If no changelog is required ignore/remove this section and add a
  `no-changelog-required` label to the PR.

### Product

_(Select all products this will be available in)_

- [x] community-edition
- [x] cloud
<!-- product : end : DO NOT REMOVE -->

### Type

<!-- See changelog structure:
https://github.com/hasura/graphql-engine-mono/wiki/Changelog-Guide#structure-of-our-changelog
-->

_(Select only one. In case of multiple, choose the most appropriate)_

- [ ] highlight
- [ ] enhancement
- [X] bugfix
- [ ] behaviour-change
- [ ] performance-enhancement
- [ ] security-fix
<!-- type : end : DO NOT REMOVE -->

### Changelog entry

<!--
  - Add a user understandable changelog entry
- Include all details needed to understand the change. Try including
links to docs or issues if relevant
  - For Highlights start with a H4 heading (#### <entry title>)
  - Get the changelog entry reviewed by your team
-->

Fix relationships between predicates

<!-- changelog-entry : end : DO NOT REMOVE -->

<!-- changelog : end : DO NOT REMOVE -->

V3_GIT_ORIGIN_REV_ID: 4adfdbdb544062548d4664067bf8c3ac53e51d52
2024-05-21 17:23:50 +00:00
..
auth Bump schemars from 0.8.19 to 0.8.20 (#592) 2024-05-20 08:45:48 +00:00
custom-connector Add support for HTTP/2 to the custom connector. (#581) 2024-05-14 15:11:28 +00:00
engine No-op refactor routes related code in engine main.rs (#600) 2024-05-20 15:54:45 +00:00
execute Bump schemars from 0.8.19 to 0.8.20 (#592) 2024-05-20 08:45:48 +00:00
lang-graphql Bump schemars from 0.8.19 to 0.8.20 (#592) 2024-05-20 08:45:48 +00:00
metadata-resolve Deduplicate resolve_model_predicate (#603) 2024-05-21 17:23:50 +00:00
metadata-schema-generator Bump schemars from 0.8.19 to 0.8.20 (#592) 2024-05-20 08:45:48 +00:00
open-dds OpenDD types for new boolean expressions (#599) 2024-05-21 09:28:53 +00:00
schema Internal flags for metadata resolve (#589) 2024-05-20 09:12:57 +00:00
utils [opendds-derive]: allow hiding enum variants from JSONSchema (#598) 2024-05-20 13:30:56 +00:00