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

Standard naming for endPointUrl and configPlaneUrl #16

Merged
merged 5 commits into from
Apr 1, 2020

Conversation

dhawal-rudder
Copy link
Contributor

@dhawal-rudder dhawal-rudder commented Apr 1, 2020

This change is Reviewable

@@ -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"];
Copy link
Contributor

Choose a reason for hiding this comment

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

dataPlaneEndPoint seems more readable

@@ -15,41 +15,41 @@ - (instancetype)init
{
self = [super init];
if (self) {
_endPointUrl = RudderBaseUrl;
_dataPlaneUrl = RudderBaseUrl;
Copy link
Contributor

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];
Copy link
Contributor

Choose a reason for hiding this comment

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

controlPlaneEndPoint ?

@arnabp92 arnabp92 changed the title [WIP] Standard naming for endPointUrl and configPlaneUrl Standard naming for endPointUrl and configPlaneUrl Apr 1, 2020
@arnabp92 arnabp92 merged commit 9704fc4 into v1.0.1 Apr 1, 2020
@pallabmaiti pallabmaiti deleted the standard_naming branch August 23, 2021 10:28
pallabmaiti pushed a commit that referenced this pull request Oct 28, 2021
* 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>
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.

None yet

2 participants