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

[ShopifyVM] Add schema analyzer using blue to function-runner #343

Closed
wants to merge 45 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
887d8fc
adds mcok schema for testing (will not merge)
mssalemi Aug 20, 2024
4da8c37
adds bluejay parser
mssalemi Aug 20, 2024
3c7ae1f
creates DefinitionDocument from string path
mssalemi Aug 20, 2024
7f8171e
creates schema definition
mssalemi Aug 20, 2024
09dce95
ready to analyze the schema
mssalemi Aug 21, 2024
0c22b06
add structure for analyzer
mssalemi Aug 21, 2024
896efad
adds ScaleFactorAnalyzer
mssalemi Aug 21, 2024
691f18e
update readme with test instructions
mssalemi Aug 21, 2024
4338276
refactor code into stand alone analyzer
mssalemi Aug 22, 2024
0a3f9ef
separate visitor code from bluejay analyzer
mssalemi Aug 22, 2024
7742cfb
gets number of cart lines on schema and determines scaling rate to use
mssalemi Aug 22, 2024
0db1943
saving progress from pairing
mssalemi Aug 26, 2024
2c07b6e
code review updates
mssalemi Aug 27, 2024
72c1965
cleanup + wip add test + error handling
mssalemi Aug 27, 2024
91e827e
handle errors in BluejaySchemaAnalyzer
mssalemi Aug 28, 2024
0c60208
add tests for bluejay analyzer
mssalemi Aug 28, 2024
a5d5782
Adds output and input to function run result display
mssalemi Aug 28, 2024
a6daa60
code review updates
mssalemi Aug 28, 2024
19c0503
allow no schema or query to passed in, in that case we use defaults
mssalemi Aug 28, 2024
0999c64
mark files with _willnotmerge
mssalemi Aug 28, 2024
770aa16
codereview: nits + cleanup
mssalemi Aug 29, 2024
d11e9f7
collapse bluejay analyzer methods
mssalemi Aug 29, 2024
e4568a7
use anyhow::Result and print errors when they occur, and use default …
mssalemi Aug 29, 2024
4b19fd3
return input as string for error messages
mssalemi Aug 29, 2024
396d43f
cleanup function run result
mssalemi Aug 29, 2024
fdb867f
return None for visit_field when values are not object or null
mssalemi Aug 29, 2024
b2b2d0f
use flat map in rate_for_field_definition
mssalemi Aug 29, 2024
3a90ea0
nit function run result update
mssalemi Aug 29, 2024
962499c
opmit message when error occurs / defauls limits are used
mssalemi Aug 29, 2024
7955a50
add tests for scaling
mssalemi Aug 29, 2024
a3644da
collapse imports
mssalemi Aug 29, 2024
edf3e37
cleanup error message and handling
mssalemi Aug 29, 2024
92ccf2c
show nice message when input parse error
mssalemi Aug 29, 2024
874f23c
use Error::format_errors
mssalemi Aug 29, 2024
81a6e5e
update handle ScaleLimitsAnalyzer analyze to use Error::format_error…
mssalemi Aug 29, 2024
ad4e365
codereview: nits
mssalemi Aug 30, 2024
579a845
update: handle potential duplicate fields in query and update rate ac…
mssalemi Sep 3, 2024
7d0a1b2
code review updates
mssalemi Sep 3, 2024
1918766
code review updates: simplify
mssalemi Sep 4, 2024
6a6b723
return simple anyhow! instad of converting error
mssalemi Sep 4, 2024
c5d4a9c
test from pairing
mssalemi Sep 4, 2024
2850653
Save progreess from pair
mssalemi Sep 4, 2024
316feb8
add test for invalid schema / query
mssalemi Sep 4, 2024
a9f5793
update function run rtesult to include limits and add integration tes…
mssalemi Sep 4, 2024
c8ea84c
Remove testing files
mssalemi Sep 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 158 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ rust-embed = "8.5.0"
rmp-serde = "1.3"
is-terminal = "0.4.12"
wasmprof = "0.7.0"
bluejay-parser = { git = "https://github.com/Shopify/bluejay.git", rev = "c7e7c2bfb73c7b4869aa8569c15cd3c4eb48b8bf", features = ["format-errors"] }
bluejay-core = { git = "https://github.com/Shopify/bluejay.git", rev = "c7e7c2bfb73c7b4869aa8569c15cd3c4eb48b8bf" }
bluejay-validator = { git = "https://github.com/Shopify/bluejay.git", rev = "c7e7c2bfb73c7b4869aa8569c15cd3c4eb48b8bf" }

[dev-dependencies]
assert_cmd = "2.0"
Expand Down
Loading
Loading