mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 15:29:28 +01:00
feat: remove searchable
This commit is contained in:
parent
5d70cc476a
commit
5757aab5b2
@ -80,7 +80,6 @@ type Integration struct {
|
||||
AuthSecretID *int `db:"auth_secret_id" json:"auth_secret_id"`
|
||||
AuthHeader string `db:"auth_header" json:"auth_header"`
|
||||
AuthSecret AccessKey `db:"-" json:"-"`
|
||||
Searchable bool `db:"searchable" json:"searchable"`
|
||||
}
|
||||
|
||||
func (env *Integration) Validate() error {
|
||||
|
@ -16,15 +16,14 @@ func (d *SqlDb) CreateIntegration(integration db.Integration) (newIntegration db
|
||||
insertID, err := d.insert(
|
||||
"id",
|
||||
"insert into project__integration "+
|
||||
"(project_id, name, template_id, auth_method, auth_secret_id, auth_header, searchable) values "+
|
||||
"(project_id, name, template_id, auth_method, auth_secret_id, auth_header) values "+
|
||||
"(?, ?, ?, ?, ?, ?, ?)",
|
||||
integration.ProjectID,
|
||||
integration.Name,
|
||||
integration.TemplateID,
|
||||
integration.AuthMethod,
|
||||
integration.AuthSecretID,
|
||||
integration.AuthHeader,
|
||||
integration.Searchable)
|
||||
integration.AuthHeader)
|
||||
|
||||
if err != nil {
|
||||
return
|
||||
@ -83,13 +82,12 @@ func (d *SqlDb) UpdateIntegration(integration db.Integration) error {
|
||||
}
|
||||
|
||||
_, err = d.exec(
|
||||
"update project__integration set `name`=?, template_id=?, auth_method=?, auth_secret_id=?, auth_header=?, searchable=? where `id`=?",
|
||||
"update project__integration set `name`=?, template_id=?, auth_method=?, auth_secret_id=?, auth_header=? where `id`=?",
|
||||
integration.Name,
|
||||
integration.TemplateID,
|
||||
integration.AuthMethod,
|
||||
integration.AuthSecretID,
|
||||
integration.AuthHeader,
|
||||
integration.Searchable,
|
||||
integration.ID)
|
||||
|
||||
return err
|
||||
|
@ -16,7 +16,7 @@
|
||||
</div>
|
||||
|
||||
<v-btn color="primary" @click="addAlias()" :disabled="aliases == null">
|
||||
{{ aliases == null ? 'Loading aliases...' : 'Add Alias' }}
|
||||
{{ aliases == null ? 'Loading aliases...' : 'Add Public Alias' }}
|
||||
</v-btn>
|
||||
</div>
|
||||
|
||||
|
@ -59,7 +59,7 @@
|
||||
</div>
|
||||
|
||||
<v-btn color="primary" @click="addAlias()" :disabled="aliases == null">
|
||||
{{ aliases == null ? 'Loading aliases...' : 'Add Alias' }}
|
||||
{{ aliases == null ? 'Loading aliases...' : 'Add Public Alias' }}
|
||||
</v-btn>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user