compute: move logic to enterprise directory
Created by: rvantonder
I started prototyping compute
and logic outside the enterprise directories. It should probably live as part of the enterprise layer unless we decide otherwise.
I tested locally that the endpoint works against enterprise, etc. @coury-clark any chance you can provide some step-by-step procedure to just test this works against code insights still?
Details:
- This moves
internal/compute
=>enterprise/internal/compute
(main logic) - Adds
enterprise/cmd/frontend/internal/compute/resolvers/resolvers.go
in enterprise that NO JOKE took me like 45 minutes just to update the types so I can references the abstractedinterface
types ingraphqlbackend
packages and keep the private resolvers by obnoxiously balancing interface/pointers. i dislike all of this fragmented referencing. - Hooks compute schema into the enterprise checking code
If you're aware of any "gotchas" as far as enterprise and GQL resolvers go, please have a look out for those in this PR. Like I said I tested things and I think I followed all the boiler conventions we do elsewhere, but it was pretty fatiguing.