Skip to content

Commit

Permalink
Addresses Review Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gbdubs committed Nov 17, 2023
1 parent ce7278f commit ce3836c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
3 changes: 1 addition & 2 deletions cmd/server/pactasrv/portfolio.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package pactasrv

import (
"context"
"fmt"

"github.com/RMI/pacta/blob"
"github.com/RMI/pacta/oapierr"
Expand Down Expand Up @@ -44,5 +43,5 @@ func (s *Server) ParsePortfolio(ctx context.Context, req api.ParsePortfolioReque
// (GET /portfolios)

func (s *Server) ListPortfolios(ctx context.Context, request api.ListPortfoliosRequestObject) (api.ListPortfoliosResponseObject, error) {
return nil, fmt.Errorf("not implemented")
return nil, oapierr.NotImplemented("not implemented")
}
8 changes: 4 additions & 4 deletions cmd/server/pactasrv/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ package pactasrv

import (
"context"
"fmt"

"github.com/RMI/pacta/oapierr"
api "github.com/RMI/pacta/openapi/pacta"
)

// Starts the process of uploading one or more portfolio files
// (POST /portfolio-upload)
func (s *Server) StartPortfolioUpload(ctx context.Context, request api.StartPortfolioUploadRequestObject) (api.StartPortfolioUploadResponseObject, error) {
return nil, fmt.Errorf("not implemented")
return nil, oapierr.NotImplemented("not implemented")
}

// Called after uploads of portfolios to cloud storage are complete.
// (POST /portfolio-upload:complete)
func (s *Server) CompletePortfolioUpload(ctx context.Context, request api.CompletePortfolioUploadRequestObject) (api.CompletePortfolioUploadResponseObject, error) {
return nil, fmt.Errorf("not implemented")
return nil, oapierr.NotImplemented("not implemented")
}

// (GET /incomplete-uploads)
func (s *Server) ListIncompleteUploads(ctx context.Context, request api.ListIncompleteUploadsRequestObject) (api.ListIncompleteUploadsResponseObject, error) {
return nil, fmt.Errorf("not implemented")
return nil, oapierr.NotImplemented("not implemented")
}
26 changes: 16 additions & 10 deletions openapi/pacta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -989,37 +989,43 @@ components:
description: The time at which the holdings are represented at
IncompleteUpload:
type: object
required:
- id
- name
- description
- createdAt
- adminDebugEnabled
properties:
ID:
id:
type: string # Assuming IncompleteUploadID is a string, otherwise define its structure
description: Unique identifier for the incomplete upload
Name:
name:
type: string
description: Name of the upload
Description:
description:
type: string
description: Description of the upload
HoldingsDate:
holdingsDate:
$ref: '#/components/schemas/HoldingsDate'
CreatedAt:
createdAt:
type: string
format: date-time
description: The time when the upload was created
RanAt:
ranAt:
type: string
format: date-time
description: The time when the upload process was run
CompletedAt:
completedAt:
type: string
format: date-time
description: The time when the upload was completed
FailureCode:
failureCode:
type: string
description: Code describing the failure, if any
FailureMessage:
failureMessage:
type: string
description: Message describing the failure, if any
AdminDebugEnabled:
adminDebugEnabled:
type: boolean
description: Flag to indicate whether admin debug mode is enabled
Portfolio:
Expand Down

0 comments on commit ce3836c

Please sign in to comment.