Skip to content

Commit

Permalink
Enable CreateDataSource and UpdateDataSource API calls to complete (#…
Browse files Browse the repository at this point in the history
…5101)

* proto: Make datasource id IGNORE_IF_DEFAULT_VALUE

This adds the IGNORE_IF_DEFAULT_VALUE ignore flag to the data source
definition to avoid it to fail in create requests.

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>

* Implement HasProtoContextV2 in DS reqs

This commit adds methods to implement HasProtoContextV2 in the data
source create and update request types.

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>

* make gen

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>

---------

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
  • Loading branch information
puerco authored Dec 2, 2024
1 parent b41a723 commit c7b6f8d
Show file tree
Hide file tree
Showing 3 changed files with 900 additions and 884 deletions.
15 changes: 15 additions & 0 deletions pkg/api/protobuf/go/minder/v1/datasources.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-FileCopyrightText: Copyright 2024 The Minder Authors
// SPDX-License-Identifier: Apache-2.0

package v1

// GetContext returns the v2 context from the CreateDataSourceRequest data source.
func (r *CreateDataSourceRequest) GetContext() *ContextV2 {
return r.DataSource.GetContext()
}

// GetContext returns the v2 context embedded in the UpdateDataSourceRequest
// data source.
func (r *UpdateDataSourceRequest) GetContext() *ContextV2 {
return r.DataSource.GetContext()
}
Loading

0 comments on commit c7b6f8d

Please sign in to comment.