#introspection Keep user-defined order f...

1 messages ยท Page 1 of 1 (latest)

potent sage
#

So I think hearing back would even be somewhat surprising

#

๐Ÿ˜ž

cursive wren
#

Especially, if we hear back, chances are it's a fat no

#

The problem is rooted in the API: you have to declare args as maps in the API

potent sage
#

Given the seeming lack of maintenance, fork may be something we have to do anyways, so that's my first impression vote

cursive wren
#

Yeah. It's a fat patch though, just because it changes something deep down in the API, all tests had to be updated, annoying to maintain

#

Also requires maintaining a fork of graphql-go-tools

#

But yeah. Easy peasy

potent sage
cursive wren
#

_sdl works too, just annoying re-work of codegen, but probably half day or so of work

#

(I figured since "hide IDs" is going to break the whole API, we might as well do both breaking changes before releasing again)

potent sage
#

Yeah I mean I'm totally fine with either obviously, I just wouldn't be surprised if we end up needing to fork again anyways in the future

cursive wren
#

On the bright side -- the ordering thingie is fixed with this:

func (r *Container) WithMountedCache(path string, cache *CacheVolume, opts ...ContainerWithMountedCacheOpts) *Container {

func (r *Container) WithMountedDirectory(path string, source *Directory) *Container {
#
@@ -354,10 +351,10 @@ type ContainerWithMountedCacheOpts struct {
 }
 
 // This container plus a cache volume mounted at the given path
-func (r *Container) WithMountedCache(cache *CacheVolume, path string, opts ...ContainerWithMountedCacheOpts) *Container {
+func (r *Container) WithMountedCache(path string, cache *CacheVolume, opts ...ContainerWithMountedCacheOpts) *Container {
#

I think it's the better approach -- instead of trying to sort ourselves with heuristics

cursive wren
potent sage
#

But yeah no biggie now

#

jk, but please take a look on monday when you have time ๐Ÿ™‚

cursive wren
#

in all seriousness, i'm mentally done for the day

#

The changes over the last few days are starting to look awesome together. Happy to see multiplatform coming together without having to destroy the API ๐Ÿ™‚

potent sage
#

Just glad to see the end is near and I/we can move onto all the other fun stuff

#

It is cool to see it all working in the new codegen client I agree

cursive wren
#

All those great changes (multi platform, the new host directory API, ...) make me realize that there's a slim chance an SDK would work with a random engine binary (thinking about API over stdio binary)

I think for python/node we have to distribute the two in lockstep, somehow. At least until the API is stable

potent sage
#

Especially how to distribute multiple platform binaries

cursive wren
#

Yeah. I was thinking that (bundle with package) OR, a bit disgusting but: distribute as an OCI image, have SDKs pull/cp to local machine (or fetch a binary on S3 or whatever)

#

not unheard of, I believe terraform providers work that way (stashes provider binaries in ~/.terraform or something)

but, unheard of for an SDK I think

potent sage
#

(i didn't RTFA, I just am surprised at how much the title seems to match what we want)

hard roost
#

I've used graphql-go before and the UI docs always moved around. Is this why? ๐Ÿ˜‚