Skip to content
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

[controller] use Utils::getRealTimeTopicName in tests #1349

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arjun4084346
Copy link
Contributor

@arjun4084346 arjun4084346 commented Nov 26, 2024

Change references for Version::composeRealTimeTopic to Utils::getRealTimeTopicName

This is the continuation work of #1345
Changing references for Version::composeRealTimeTopic to Utils::getRealTimeTopicName. Because there are too many references to review easily, only references in test files are changed in this PR.

Resolves #XXX

How was this PR tested?

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

@@ -86,7 +86,6 @@ public Route requestTopicForPushing(Admin admin) {
&& (!hasWriteAccessToTopic(request) || (this.checkReadMethodForKafka && !hasReadAccessToTopic(request)))) {
response.status(HttpStatus.SC_FORBIDDEN);
String userId = getPrincipalId(request);
String storeName = request.queryParams(NAME);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed unused string

@@ -282,13 +282,18 @@ private void populateDeprecatedTopicQueue(PriorityQueue<PubSubTopic> topics) {
Map<String, Map<PubSubTopic, Long>> allStoreTopics = getAllVeniceStoreTopicsRetentions(topicsWithRetention);
allStoreTopics.forEach((storeName, topicRetentions) -> {
int minNumOfUnusedVersionTopicsOverride = minNumberOfUnusedKafkaTopicsToPreserve;
PubSubTopic realTimeTopic = pubSubTopicRepository.getTopic(Version.composeRealTimeTopic(storeName));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got rid of composeRealTimeTopic api

@arjun4084346 arjun4084346 changed the title use Utils.getRealTimeTopicName in tests. in the following PR, source … [controller] use Utils.getRealTimeTopicName in tests. in the following PR, source … Nov 26, 2024
@arjun4084346 arjun4084346 changed the title [controller] use Utils.getRealTimeTopicName in tests. in the following PR, source … [controller] use Utils.getRealTimeTopicName in tests Nov 26, 2024
@arjun4084346 arjun4084346 changed the title [controller] use Utils.getRealTimeTopicName in tests [controller] use Utils::getRealTimeTopicName in tests Nov 26, 2024
…code will also use Utils.getRealTimeTopicName

Utils.getRealTimeTopicName returns the same value as Version.composeRealTimeTopic as of now, so we are able to make changes in any order
@arjun4084346 arjun4084346 marked this pull request as draft November 26, 2024 23:18
@arjun4084346 arjun4084346 marked this pull request as ready for review November 26, 2024 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant