Skip to content

Commit

Permalink
feat(pkg/oomstore): add Revision to API ImportBatchFeatures
Browse files Browse the repository at this point in the history
  • Loading branch information
jinghancc committed Nov 8, 2021
1 parent 1a44029 commit 76e7e3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/oomstore/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func (s *OomStore) ImportBatchFeatures(ctx context.Context, opt types.ImportBatc
Entity: entity,
Features: features,
Header: header,
Revision: opt.Revision,
CsvReader: csvReader,
})
if err != nil {
Expand All @@ -90,5 +91,6 @@ func (s *OomStore) ImportBatchFeatures(ctx context.Context, opt types.ImportBatc
GroupName: opt.GroupName,
DataTable: dataTable,
Description: opt.Description,
Anchored: opt.Revision != nil,
})
}
1 change: 1 addition & 0 deletions pkg/oomstore/types/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type ImportBatchFeaturesOpt struct {
GroupName string
Description string
DataSource CsvDataSource
Revision *int64
}

type CsvDataSource struct {
Expand Down

0 comments on commit 76e7e3c

Please sign in to comment.