Skip to content

Commit e35ecb7

Browse files
committed
chore: remove not used tenantId prop
1 parent 213702d commit e35ecb7

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

src/main/java/io/kestra/plugin/git/AbstractKestraTask.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ public abstract class AbstractKestraTask extends AbstractGitTask {
2727
@NotNull
2828
private Auth auth;
2929

30-
@Schema(title = "The tenant ID to use for the request, defaults to the current tenant.")
31-
@Setter
32-
protected Property<String> tenantId;
33-
3430
protected KestraClient kestraClient(RunContext runContext) throws IllegalVariableEvaluationException {
3531
// use the kestraUrl property if set, otherwise the config value, or else the default
3632
String rKestraUrl = runContext.render(kestraUrl).as(String.class)

src/main/java/io/kestra/plugin/git/NamespaceSync.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ public enum WhenMissingInSource {DELETE, KEEP, FAIL}
114114

115115
public enum OnInvalidSyntax {SKIP, WARN, FAIL}
116116

117-
@Schema(title = "The branch to read from / write to (required).")
117+
@Schema(
118+
title = "The branch to read from / write to (required).",
119+
description = "Branch prefixed with `origin/` or `refs/heads/` are not supported."
120+
)
118121
@NotNull
119122
private Property<String> branch;
120123

src/main/java/io/kestra/plugin/git/SyncDashboards.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected SyncResult wrapper(RunContext runContext, String renderedGitDirectory,
170170
}
171171

172172
@Override
173-
protected List<Dashboard> fetchResources(RunContext runContext, String renderedNamespace) throws IllegalVariableEvaluationException {
173+
protected List<Dashboard> fetchResources(RunContext runContext, String renderedNamespace) {
174174
return repository(runContext).findAll(runContext.flowInfo().tenantId());
175175
}
176176

src/main/java/io/kestra/plugin/git/TenantSync.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ public enum WhenMissingInSource {DELETE, KEEP, FAIL}
106106

107107
public enum OnInvalidSyntax {SKIP, WARN, FAIL}
108108

109-
@Schema(title = "The branch to read from / write to (required).")
109+
@Schema(
110+
title = "The branch to read from / write to (required).",
111+
description = "Branch prefixed with `origin/` or `refs/heads/` are not supported."
112+
)
110113
@NotNull
111114
private Property<String> branch;
112115

0 commit comments

Comments
 (0)