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

Add an iterator over all the required properties of a Vertex #449

Merged
merged 22 commits into from
Aug 21, 2023

Conversation

era
Copy link
Contributor

@era era commented Aug 14, 2023

In order to enable adapters to only fetch the required properties (useful for network calls, such as GraphQL adapters) we need to expose all the required properties of that vertex.

This PR introduces a method to retrieve the information (output, filtered, and tagged properties). It also introduces a new struct to represent those properties.

It also introduces tests for the new feature.

Copy link
Owner

@obi1kenobi obi1kenobi left a comment

Choose a reason for hiding this comment

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

This is headed in a good direction, well done!

era and others added 2 commits August 15, 2023 08:09
…es.graphql.ron

Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
Copy link
Owner

@obi1kenobi obi1kenobi left a comment

Choose a reason for hiding this comment

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

Doing great! 🎉 I think just docs and tests left at this point.

trustfall_core/src/interpreter/hints/tests/mod.rs Outdated Show resolved Hide resolved
@era era changed the title [WIP] Add an iterator over all the required properties of a Vertex Add an iterator over all the required properties of a Vertex Aug 18, 2023
@era era marked this pull request as ready for review August 18, 2023 14:59
Copy link
Owner

@obi1kenobi obi1kenobi left a comment

Choose a reason for hiding this comment

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

Nicely done!

@obi1kenobi obi1kenobi enabled auto-merge (squash) August 21, 2023 00:12
@obi1kenobi obi1kenobi merged commit f1b81aa into obi1kenobi:main Aug 21, 2023
11 checks passed
@obi1kenobi obi1kenobi added A-adapter Area: plugging data sources into the interpreter L-rust Language: affects use cases in the Rust programming language R-relnotes Release: document this in the release notes of the next release labels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-adapter Area: plugging data sources into the interpreter L-rust Language: affects use cases in the Rust programming language R-relnotes Release: document this in the release notes of the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants