Skip to content

Commit

Permalink
Bug/Docusign Golang Integration
Browse files Browse the repository at this point in the history
- Fetched account id
- Removed session call for github oauth token
- Refactored document attachment on envelope creation

Signed-off-by: Harold Wanyama <[email protected]>
  • Loading branch information
nickmango committed Nov 6, 2023
1 parent efb881a commit 2d03696
Show file tree
Hide file tree
Showing 8 changed files with 422 additions and 152 deletions.
2 changes: 1 addition & 1 deletion cla-backend-go/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func server(localMode bool) http.Handler {
v2Company.Configure(v2API, v2CompanyService, v1ProjectClaGroupRepo, configFile.LFXPortalURL, configFile.CorporateConsoleV1URL)
cla_manager.Configure(api, v1ClaManagerService, v1CompanyService, v1ProjectService, usersService, v1SignaturesService, eventsService, emailTemplateService)
v2ClaManager.Configure(v2API, v2ClaManagerService, v1CompanyService, configFile.LFXPortalURL, configFile.CorporateConsoleV2URL, v1ProjectClaGroupRepo, userRepo)
sign.Configure(v2API, v2SignService)
sign.Configure(v2API, v2SignService, usersService)
cla_groups.Configure(v2API, v2ClaGroupService, v1ProjectService, v1ProjectClaGroupRepo, eventsService)
v2GithubActivity.Configure(v2API, v2GithubActivityService)

Expand Down
1 change: 1 addition & 0 deletions cla-backend-go/project/common/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func BuildCLAGroupDocumentModels(dbDocumentModels []models2.DBProjectDocumentMod
DocumentMajorVersion: dbDocumentModel.DocumentMajorVersion,
DocumentMinorVersion: dbDocumentModel.DocumentMinorVersion,
DocumentCreationDate: dbDocumentModel.DocumentCreationDate,
DocumentTabs: dbDocumentModel.DocumentTabs,
})
}

Expand Down
25 changes: 15 additions & 10 deletions cla-backend-go/project/models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

package models

import (
v1Models "github.com/communitybridge/easycla/cla-backend-go/gen/v1/models"
)

// DBProjectModel data model
type DBProjectModel struct {
DateCreated string `dynamodbav:"date_created"`
Expand All @@ -28,14 +32,15 @@ type DBProjectModel struct {

// DBProjectDocumentModel is a data model for the CLA Group Project documents
type DBProjectDocumentModel struct {
DocumentName string `dynamodbav:"document_name"`
DocumentFileID string `dynamodbav:"document_file_id"`
DocumentPreamble string `dynamodbav:"document_preamble"`
DocumentLegalEntityName string `dynamodbav:"document_legal_entity_name"`
DocumentAuthorName string `dynamodbav:"document_author_name"`
DocumentContentType string `dynamodbav:"document_content_type"`
DocumentS3URL string `dynamodbav:"document_s3_url"`
DocumentMajorVersion string `dynamodbav:"document_major_version"`
DocumentMinorVersion string `dynamodbav:"document_minor_version"`
DocumentCreationDate string `dynamodbav:"document_creation_date"`
DocumentName string `dynamodbav:"document_name"`
DocumentFileID string `dynamodbav:"document_file_id"`
DocumentPreamble string `dynamodbav:"document_preamble"`
DocumentLegalEntityName string `dynamodbav:"document_legal_entity_name"`
DocumentAuthorName string `dynamodbav:"document_author_name"`
DocumentContentType string `dynamodbav:"document_content_type"`
DocumentS3URL string `dynamodbav:"document_s3_url"`
DocumentMajorVersion string `dynamodbav:"document_major_version"`
DocumentMinorVersion string `dynamodbav:"document_minor_version"`
DocumentCreationDate string `dynamodbav:"document_creation_date"`
DocumentTabs []v1Models.DocumentTab `dynamodbav:"document_tabs"`
}
Loading

0 comments on commit 2d03696

Please sign in to comment.