8000 feat: Support partial path in `data` command by traut · Pull Request #275 · blackstork-io/fabric · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: Support partial path in data command #275

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

Merged
merged 10 commits into from
Mar 15, 2025
Merged

feat: Support partial path in data command #275

merged 10 commits into from
Mar 15, 2025

Conversation

traut
Copy link
Member
@traut traut commented Jan 12, 2025

Partial path in data command enables execution of more than a single data block at a time

Possible path options:

  • <document-name>.data -- returns a dict with all data blocks executed
  • <document-name>.data.<data-source> -- returns a dict with all data blocks of a particular type
  • <document-name>.data.<data-source>.<block-name> -- returns a dict with a single matching data block

@traut
Copy link
Member Author
traut commented Jan 12, 2025

this needs to be re-implemented after #273 is merged in

@traut traut force-pushed the partial-path-in-data branch 2 times, most recently from b052f0e to df2aab3 Compare January 26, 2025 12:44
@traut traut force-pushed the partial-path-in-data branch from df2aab3 to 5d52453 Compare March 13, 2025 11:40
@traut traut marked this pull request as ready for review March 13, 2025 11:42
@traut
Copy link
Member Author
traut commented Mar 13, 2025

@dobarx please take a look - there might be a better way to execute data blocks concurrently!

@traut traut requested review from Andrew-Morozko and dobarx and removed request for Andrew-Morozko March 13, 2025 11:43
@@ -280,7 +280,8 @@ func fetchRSSData(ctx context.Context, params *plugin.RetrieveDataParams) (plugi
ctx, cancel := context.WithTimeout(ctx, defaultRequestTimeout)
defer cancel()

log.InfoContext(ctx, "Downloading the feed", "feed_url", url)
log = log.With("feed_url", url)
log.InfoContext(ctx, "Downloading the feed")
Copy link
Member Author

Choose a reason for hiding this comment

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

an unrelated change, just improving logging

grpc.MaxCallRecvMsgSize(defaultMsgSize),
grpc.MaxCallSendMsgSize(defaultMsgSize),
grpc.MaxCallRecvMsgSize(maxMsgSize),
grpc.MaxCallSendMsgSize(maxMsgSize),
Copy link
Member Author

Choose a reason for hiding this comment

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

an unrelated change, bumping a max msg size to 100MB

@traut
Copy link
Member Author
traut commented Mar 13, 2025

no idea why codegen check is failing, the command does not produce any changes locally for me :( I think it's some non-determinism in plugins.json file generation (aka JSON marshaling)

@traut traut requested a review from dobarx March 13, 2025 21:23
@traut traut merged commit 29d4aeb into main Mar 15, 2025
6 checks passed
@traut traut deleted the partial-path-in-data branch March 15, 2025 22:42
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
0