Skip to content

Commit 4f8f0fc

Browse files
authored
feat(server): add photoOverlay property [VIZ-1340] (#1508)
1 parent 1bb86be commit 4f8f0fc

34 files changed

+2319
-326
lines changed

server/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ dev: dev-install
7979
run-app:
8080
go run ./cmd/reearth
8181

82+
run-clean-start:
83+
go clean -modcache
84+
go clean -cache
85+
go clean -testcache
86+
go run ./cmd/reearth
87+
8288
run-db:
8389
docker compose -f ../docker-compose.yml up -d reearth-mongo
8490

server/e2e/common.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func initRepos(t *testing.T, useMongo bool, seeder Seeder) (repos *repo.Containe
5353

5454
if useMongo {
5555
db := mongotest.Connect(t)(t)
56+
fmt.Println("db.Name():", db.Name())
5657
accountRepos := lo.Must(accountmongo.New(ctx, db.Client(), db.Name(), false, false, nil))
5758
repos = lo.Must(mongo.New(ctx, db, accountRepos, false))
5859
} else {
@@ -189,6 +190,7 @@ type GraphQLRequest struct {
189190
}
190191

191192
func Request(e *httpexpect.Expect, user string, requestBody GraphQLRequest) *httpexpect.Value {
193+
// RequestDump(requestBody)
192194
return e.POST("/api/graphql").
193195
WithHeader("Origin", "https://example.com").
194196
WithHeader("authorization", "Bearer test").
@@ -275,6 +277,12 @@ func aligningJSON(t *testing.T, str string) string {
275277
return string(strBytes)
276278
}
277279

280+
func RequestDump(requestBody GraphQLRequest) {
281+
if jsonData, err := json.MarshalIndent(requestBody, "", " "); err == nil {
282+
fmt.Println(string(jsonData))
283+
}
284+
}
285+
278286
func ValueDump(val *httpexpect.Value) {
279287
raw := val.Raw()
280288
switch data := raw.(type) {

0 commit comments

Comments
 (0)