From 8ea6a525e450aa2fca297a92ee000050e936a62e Mon Sep 17 00:00:00 2001 From: yk-eukarya <81808708+yk-eukarya@users.noreply.github.com> Date: Fri, 23 Aug 2024 08:32:52 +0200 Subject: [PATCH] feat(server): add workspace id to project in integration api (#1209) imp --- server/e2e/integration_project_test.go | 9 +- .../adapter/integration/server.gen.go | 128 +++++++++--------- server/pkg/integrationapi/project.go | 7 +- server/pkg/integrationapi/types.gen.go | 13 +- server/schemas/integration.yml | 3 + 5 files changed, 84 insertions(+), 76 deletions(-) diff --git a/server/e2e/integration_project_test.go b/server/e2e/integration_project_test.go index 6876dcac1f..c7a60e554e 100644 --- a/server/e2e/integration_project_test.go +++ b/server/e2e/integration_project_test.go @@ -32,14 +32,17 @@ func TestIntegrationProjectGetAPI(t *testing.T) { Expect(). Status(http.StatusNotFound) - e.GET(endpoint, wId0). + res := e.GET(endpoint, wId0). WithHeader("authorization", "Bearer "+secret). Expect(). Status(http.StatusOK). JSON(). - Object(). - HasValue("page", 1). + Object() + + res.HasValue("page", 1). HasValue("perPage", 50). HasValue("totalCount", 1). Path("$.projects[:].id").Array().IsEqual([]string{pid.String()}) + + res.Path("$.projects[:].workspaceId").Array().IsEqual([]string{wId0.String()}) } diff --git a/server/internal/adapter/integration/server.gen.go b/server/internal/adapter/integration/server.gen.go index a9ddc4a588..1ce1e55ed9 100644 --- a/server/internal/adapter/integration/server.gen.go +++ b/server/internal/adapter/integration/server.gen.go @@ -4324,70 +4324,70 @@ func (sh *strictHandler) ProjectFilter(ctx echo.Context, workspaceId WorkspaceId // Base64 encoded, gzipped, json marshaled Swagger object var swaggerSpec = []string{ - "H4sIAAAAAAAC/+w92W/buJv/iqDdRzfO/Drzkrds0hSZbZtgkk6xKIqCkT7bnEikSlI5JvD/vuAlURZ1", - "2XJOv7SxRFIfv/sS9RBGNM0oASJ4ePAQZoihFAQw9QtxDuI0PpcX5e8YeMRwJjAl4UF4ehzQWSAWEHBI", - "IBIQB2pCOAmxvJ8hsQgnIUEph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", - "Y1UddQVDzdEHEgvvDe738H1702n8+uaG+6OVvOfDmv5qUZxr5uQEcfFZURni/tBJmsdIoIteRX6TYa7N", - "68XTZemiNXJcM4QzpRyPf9i3g6HcHF9vU4PjRB/j2ZJbPfBQhbyRgqRRmLKC/0aKjoKVkoJVpFxikcCJ", - "tSz9lepaiRRI4v5JJ/2/Bs2j3PBQ5lpTMJqReeK3x2MZVjeuqktk6Vn47g40yr49lrcd0yngTkjSwp04", - "ZIDCSchwtLjUV1PErmN6Kz2saAHR9RW9CydFE1SszaiKhiehrtfZ3IaypgxmwICoyp3O42jPZhIKZPJc", - "KkF9dmUq6vbChxhLZ8HrrwHjmBKIpfMzijEayMSzjdi3rJ9h/tnYCz/BrTU5GQk82w7j9w6Y7fqr56nz", - "XLlXDW5i+YCC2vHpoFR0laL+haurdYKyRnbSQNFj50ufa88hyhkW90o9aVa8AsSAHeba8VK7VSRWl8tl", - "F0JkuuyMyYzWq8J/wQfExOLd0eeL4FSlDZXDGhyen8pFpLLvHFVsLvxtb39v38RbBGU4PAjf7+3vvQ+1", - "i6gA132LfPpg+jSXGqgEhNIcOtbBlEhmClXq+1jfXKmc/2d/X1cTi1wmyrLEONzTf7jGdpMZG5Z49xBl", - "1aRrvcV158NyEv6uwVvpP9CFdlvSD4om2EAHOWreb00sXWx/Wi/3q5m/15/4pewSWCrFyKVaVhvjoS45", - "iga0f1RqeCOcd7avviJEug3NDcXscsi00vCsar81uZiaWoFpuWgik0msf9IdNyOKiPv4nqkuXdvwZUb7", - "iY/tRn7m1LfqWBHaVcTffyx/rDJHsafNuWQSZpR38MGRclFMrxJw8T80vt+ICZpKRX6iVjukllvUHwW3", - "1Xnp9TFOq36YPhR9+t3G1LDJk9nU1jpgnZR6LwEiQUVB7FRDVTVMOsevvBqilAkS0aKdTb5m8ZvXJhoH", - "weErYUGepyli987GHHqHXUpIOQLTB/3qSqu2kfHWk2kZ58WYASoGmxDxZZN1ZT8lRXXg7Dj9q6GgyBnh", - "duJeUXh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sFpaLNWetufG7HTw69TBuXVYRtbBj9qrU2X4XdvOdt953DW+7NIBfRtfikLr02cHOtpntmE0d500b6KT", + "ponjN7Ccj9NX4/D8rsVm12LzvFpsRtX/m4jio3bwVERy18yza+bZWjOPI6DrN/U8hpAuzbFkA6JJc77j", + "oHBSHUb05t798Lyh8UShoTms84WFhC/hJNENojq9vb36mV0jxHX12Ky6iSNbHiBwa85FkxLMFJAqV2/O", + "ytY3GyR65L4mfo0XxyB3xoDb85aLzxSrj7u5H2zS3wL2pD7pNfjrwY0fq6sf2axzr4iJifRS39mTuFve", + "moJeXnHUb5eeT3+N/pLVBqf7vnxxPCreyygkoFUSO+znJF+kFJkislfiTjnPpcB9/euTEjVkPgktaKDn", + "FodkNgjbVzWqELmNFcOoZ0R8AjKrfIvGMQpxzrj+SNAmjRjLkU9I6ga766s8cOf/lOMI+qfheGXNKK/h", + "LIsaw7cKnqaiQJMH+8Ga9Zs27AoD+i52hb5doW+EZotmLm5tp2hslHj+3REvkZZJpbNhjMaGFY2zvd6E", + "nZ7a6akRGhIenK+SLQund0CGqJiy6sea5Os2XhwbOZHh7rpXhsU6LJ4cy3br5AWkT+kVts/8QsWJdBKL", + "WY9XObfYcV3Mc4ux4arckYxHeatsuVz+fwAAAP//Xztec8GTAAA=", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/server/pkg/integrationapi/project.go b/server/pkg/integrationapi/project.go index c338f54ec1..65eb09853e 100644 --- a/server/pkg/integrationapi/project.go +++ b/server/pkg/integrationapi/project.go @@ -7,11 +7,12 @@ import ( func NewProject(p *project.Project) Project { return Project{ - Alias: lo.ToPtr(p.Alias()), - CreatedAt: lo.ToPtr(p.CreatedAt()), - Description: lo.ToPtr(p.Description()), Id: p.ID().Ref(), + WorkspaceId: p.Workspace().Ref(), Name: lo.ToPtr(p.Name()), + Description: lo.ToPtr(p.Description()), + Alias: lo.ToPtr(p.Alias()), + CreatedAt: lo.ToPtr(p.CreatedAt()), UpdatedAt: lo.ToPtr(p.UpdatedAt()), } } diff --git a/server/pkg/integrationapi/types.gen.go b/server/pkg/integrationapi/types.gen.go index af85a7fc2d..fe8e7ad741 100644 --- a/server/pkg/integrationapi/types.gen.go +++ b/server/pkg/integrationapi/types.gen.go @@ -488,12 +488,13 @@ type Model struct { // Project defines model for project. type Project struct { - Alias *string `json:"alias,omitempty"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - Description *string `json:"description,omitempty"` - Id *id.ProjectID `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` + Alias *string `json:"alias,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + Description *string `json:"description,omitempty"` + Id *id.ProjectID `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + WorkspaceId *accountdomain.WorkspaceID `json:"workspaceId,omitempty"` } // RefOrVersion defines model for refOrVersion. diff --git a/server/schemas/integration.yml b/server/schemas/integration.yml index b3f25d3c95..f0d23e5e8b 100644 --- a/server/schemas/integration.yml +++ b/server/schemas/integration.yml @@ -1441,6 +1441,9 @@ components: id: x-go-type: id.ProjectID type: string + workspaceId: + x-go-type: accountdomain.WorkspaceID + type: string name: type: string description: