Fieldguide/action-hasura-change-summary

Support config v3

Closed this issue ยท 4 comments

Hey this Action is awesome!

Need to update Metadata SDK to v3

@GavinRay97, yeah that would certainly be helpful!

I started poking at this a bit and asked in Discord: Do you all have recommendations to programmatically interact with config v3 (i.e. resolving the !include syntax, making updates / writing back to the new directory structure, etc)?

Nick, sorry this got buried in my inbox I think =/

So that !include syntax is something we have built in-house, and to further muddy things a bit it isn't a universal directive. And by that I mean, for whatever reason it only works for tables and functions at the moment.

There's likely not a better way than manually traversing the JSON, and using a file read + parse on every item that contains !include =/

We may write some tooling around this at some point, though it'll wind up being the same thing I imagine (just that we've done the work already)


On another note, I've scheduled end of this week to try to update the Metadata SDK (time permitting) ๐Ÿ™‚

There's likely not a better way than manually traversing the JSON, and using a file read + parse on every item that contains !include =/

No worries! And yeah, it wasn't bad to handle this in a file system context.