Skip to content

Commit

Permalink
feat(server): Support reorder layer (#1321)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomokazu Tantaka <[email protected]>
  • Loading branch information
hexaforce and hexaforce authored Dec 20, 2024
1 parent ce9c9f1 commit 769a278
Show file tree
Hide file tree
Showing 23 changed files with 700 additions and 245 deletions.
2 changes: 1 addition & 1 deletion server/e2e/gql_featureCollection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func TestFeatureCollectionCRUD(t *testing.T) {
Value("newLayers").Array().
Length().Equal(0)

_, _, layerId := addNLSLayerSimple(e, sId)
_, _, layerId := addNLSLayerSimple(e, sId, "someTitle", 1)

_, res2 := fetchSceneForNewLayers(e, sId)
res2.Object().
Expand Down
11 changes: 1 addition & 10 deletions server/e2e/gql_layer_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package e2e

import (
"net/http"

"github.com/gavv/httpexpect/v2"
)

Expand Down Expand Up @@ -31,14 +29,7 @@ func addLayerItemFromPrimitive(e *httpexpect.Expect, rootLayerId string) (GraphQ
},
}

res := e.POST("/api/graphql").
WithHeader("Origin", "https://example.com").
WithHeader("X-Reearth-Debug-User", uID.String()).
WithHeader("Content-Type", "application/json").
WithJSON(requestBody).
Expect().
Status(http.StatusOK).
JSON()
res := Request(e, uID.String(), requestBody)

return requestBody, res, res.Path("$.data.addLayerItem.layer.id").Raw().(string)
}
Loading

0 comments on commit 769a278

Please sign in to comment.