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 elementary support for minimal-pull under Pathom 3 #27

Merged
merged 1 commit into from
Nov 18, 2023

Conversation

holyjak
Copy link
Contributor

@holyjak holyjak commented Oct 20, 2023

Limitations: It only compares what the DB can offer against what the user directly asked for. If a resolver needs extra input to compute a derived attribute, these will not be included.

Beware: Not tested under P2.

Limitations: It only compares what the DB can offer against what the user _directly_ asked for. If a resolver needs extra input to compute a derived attribute, these will not be included.
@holyjak holyjak marked this pull request as draft October 20, 2023 23:15
@awkay
Copy link
Member

awkay commented Nov 4, 2023

I can't really merge this until one of us tests it against the demo or something

@holyjak
Copy link
Contributor Author

holyjak commented Nov 4, 2023

You mean demo with Pathom 2, or with Pathom 3? I did test it on my app with Pathom 3.

@awkay
Copy link
Member

awkay commented Nov 4, 2023

2 You said the change wasn't tested

@holyjak
Copy link
Contributor Author

holyjak commented Nov 4, 2023

Ah, right, so you meant test in in Demo with P2. Will do!

@awkay
Copy link
Member

awkay commented Nov 4, 2023

Thanks!

@holyjak
Copy link
Contributor Author

holyjak commented Nov 17, 2023

Tested it now with rad-demo and it does what it should. With a debug log added:

;; invoice/id as-is, i.e. not minimal:
DBG: query (minimal: false) [:invoice/date {:invoice/line-items [:line-item/id]} {:invoice/customer [:account/id]} :invoice/total]

;; ;; invoice/id with do/generate-minimal-pull? true
DBG: query (minimal: true) [:invoice/total]

@holyjak holyjak marked this pull request as ready for review November 17, 2023 15:49
@awkay
Copy link
Member

awkay commented Nov 17, 2023

Where's :invoice/date?

@holyjak
Copy link
Contributor Author

holyjak commented Nov 18, 2023 via email

@awkay awkay merged commit 7a739d4 into fulcrologic:main Nov 18, 2023
holyjak added a commit to holyjak/fulcro-rad-datomic that referenced this pull request Jan 14, 2024
Limitations: It only compares what the DB can offer against what the user _directly_ asked for. If a resolver needs extra input to compute a derived attribute, these will not be included.

Essentially the same as fulcrologic#27 but preserves `prune-query` with the original signature so we do not break any client code that can be relying on it.
awkay pushed a commit that referenced this pull request Jan 15, 2024
Limitations: It only compares what the DB can offer against what the user _directly_ asked for. If a resolver needs extra input to compute a derived attribute, these will not be included.

Essentially the same as #27 but preserves `prune-query` with the original signature so we do not break any client code that can be relying on it.
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