Skip to content

Commit

Permalink
fix: Embedded datasource persistence changes for git. (appsmithorg#36109
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sondermanish authored and Shivam-z committed Sep 26, 2024
1 parent 791477d commit 3a17fb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class Datasource extends GitSyncedDomain {
String templateName;

// This is only kept public for embedded datasource
@JsonView({Views.Public.class, FromRequest.class})
@JsonView({Views.Public.class, FromRequest.class, Git.class})
DatasourceConfiguration datasourceConfiguration;

@Transient
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.appsmith.external.models;

import com.appsmith.external.views.FromRequest;
import com.appsmith.external.views.Git;
import com.appsmith.external.views.Views;
import com.fasterxml.jackson.annotation.JsonView;
import lombok.AllArgsConstructor;
Expand Down Expand Up @@ -37,17 +38,17 @@ public class DatasourceConfiguration implements AppsmithDomain {

Boolean sshProxyEnabled;

@JsonView({Views.Public.class, FromRequest.class})
@JsonView({Views.Public.class, FromRequest.class, Git.class})
List<Property> properties;

// For REST API.
@JsonView({Views.Public.class, FromRequest.class})
@JsonView({Views.Public.class, FromRequest.class, Git.class})
String url;

@JsonView({Views.Public.class, FromRequest.class})
@JsonView({Views.Public.class, FromRequest.class, Git.class})
List<Property> headers;

@JsonView({Views.Public.class, FromRequest.class})
@JsonView({Views.Public.class, FromRequest.class, Git.class})
List<Property> queryParameters;

public boolean isSshProxyEnabled() {
Expand Down

0 comments on commit 3a17fb9

Please sign in to comment.