-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notify producer and consumer clients when schemas are uploaded on topic #2060
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
import io.aiven.klaw.dao.AclRequests; | ||
import io.aiven.klaw.dao.ActivityLog; | ||
import io.aiven.klaw.dao.Env; | ||
import io.aiven.klaw.dao.EnvTag; | ||
import io.aiven.klaw.dao.KwClusters; | ||
import io.aiven.klaw.dao.KwKafkaConnector; | ||
import io.aiven.klaw.dao.KwTenants; | ||
|
@@ -271,6 +272,23 @@ public List<Acl> getAcls() { | |
return allTopicReqs; | ||
} | ||
|
||
public List<Acl> getSyncAcls() { | ||
List<Acl> allTopicReqs = new ArrayList<>(); | ||
Acl acl1 = new Acl(); | ||
acl1.setTeamId(102); | ||
acl1.setAclType(AclType.PRODUCER.value); | ||
acl1.setTenantId(101); | ||
allTopicReqs.add(acl1); | ||
|
||
Acl acl2 = new Acl(); | ||
acl2.setTeamId(103); | ||
acl2.setAclType(AclType.CONSUMER.value); | ||
acl2.setTenantId(101); | ||
allTopicReqs.add(acl2); | ||
|
||
return allTopicReqs; | ||
} | ||
|
||
public List<AclInfo> getAclInfoList() { | ||
List<AclInfo> allTopicReqs = new ArrayList<>(); | ||
AclInfo topicRequest = new AclInfo(); | ||
|
@@ -469,6 +487,39 @@ public List<Team> getTeams() { | |
return allTopicReqs; | ||
} | ||
|
||
public List<Team> getTeamsForTenant() { | ||
List<Team> teams = new ArrayList<>(); | ||
Team team1 = new Team(); | ||
team1.setTeamname("Seahorses"); | ||
team1.setTeamId(101); | ||
team1.setContactperson("Contact Person1"); | ||
team1.setTenantId(101); | ||
team1.setTeamphone("3142342343242"); | ||
team1.setTeammail("[email protected]"); | ||
|
||
Team team2 = new Team(); | ||
team2.setTeamname("Octopus"); | ||
team2.setTeamId(102); | ||
team2.setContactperson("Contact Person2"); | ||
team2.setTenantId(101); | ||
team2.setTeamphone("3142342343242"); | ||
team2.setTeammail("[email protected]"); | ||
|
||
Team team3 = new Team(); | ||
team3.setTeamname("Dragons"); | ||
team3.setTeamId(103); | ||
team3.setContactperson("Contact Person3"); | ||
team3.setTenantId(101); | ||
team3.setTeamphone("3142342343242"); | ||
team3.setTeammail("[email protected]"); | ||
|
||
teams.add(team1); | ||
teams.add(team2); | ||
teams.add(team3); | ||
|
||
return teams; | ||
} | ||
|
||
public List<TeamModelResponse> getTeamsModel() { | ||
List<TeamModelResponse> allTopicReqs = new ArrayList<>(); | ||
TeamModelResponse team = new TeamModelResponse(); | ||
|
@@ -703,6 +754,29 @@ public List<Env> getEnvLists() { | |
return envList; | ||
} | ||
|
||
public List<Env> getKafkaEnvs() { | ||
List<Env> envList = new ArrayList<>(); | ||
Env env = new Env(); | ||
env.setId("1"); | ||
env.setName("DEV"); | ||
envList.add(env); | ||
env.setClusterId(1); | ||
env.setTenantId(101); | ||
env.setAssociatedEnv(new EnvTag("3", "DEV")); | ||
return envList; | ||
} | ||
|
||
public Env getSchemaEnv() { | ||
Env env = new Env(); | ||
env.setId("3"); | ||
env.setName("DEV"); | ||
env.setClusterId(3); | ||
env.setTenantId(101); | ||
env.setAssociatedEnv(new EnvTag("1", "DEV")); | ||
|
||
return env; | ||
} | ||
|
||
public List<Env> getEnvListsIncorrect1() { | ||
List<Env> envList = new ArrayList<>(); | ||
Env env = new Env(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these OptionalEnv and the OptionalKafkaEnv the same object?