-
Notifications
You must be signed in to change notification settings - Fork 35
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
Standard naming for endPointUrl and configPlaneUrl #16
Conversation
Rudder/Classes/EventRepository.m
Outdated
@@ -289,10 +289,10 @@ - (NSString* _Nullable) __flushEventsToServer: (NSString*) payload { | |||
dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); | |||
|
|||
__block NSString *responseStr = nil; | |||
NSString *endPointUrl = [self->config.endPointUrl stringByAppendingString:@"/v1/batch"]; | |||
[RudderLogger logDebug:[[NSString alloc] initWithFormat:@"endPointToFlush %@", endPointUrl]]; | |||
NSString *dataPlaneUrl = [self->config.dataPlaneUrl stringByAppendingString:@"/v1/batch"]; |
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.
dataPlaneEndPoint seems more readable
Rudder/Classes/RudderConfig.m
Outdated
@@ -15,41 +15,41 @@ - (instancetype)init | |||
{ | |||
self = [super init]; | |||
if (self) { | |||
_endPointUrl = RudderBaseUrl; | |||
_dataPlaneUrl = RudderBaseUrl; |
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.
Can we change the name RudderBaseUrl to RudderDataPlaneUrl for better readability. Needs change in Constants.m
file as well
@@ -154,7 +154,7 @@ - (NSString *)_networkRequest { | |||
dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); | |||
|
|||
__block NSString *responseStr = nil; | |||
NSString *configUrl = [NSString stringWithFormat:@"%@/sourceConfig", _rudderConfig.configPlaneUrl]; | |||
NSString *configUrl = [NSString stringWithFormat:@"%@/sourceConfig", _rudderConfig.controlPlaneUrl]; |
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.
controlPlaneEndPoint
?
* renamed endPointUrl and configPlaneUrl to dataPlaneUrl and controlPlaneUrl * added deprecated functions withEndPointUrl and withConfigPlaneUrl * minor change * refactored code * Update Constants.m Co-authored-by: Arnab <arnab@rudderlabs.com>
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)