Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Conversation

@eugenkiss
Copy link
Contributor

The https://services.auth.zalando.com will be shut down.

I'm extra careful with the if check.

@eugenkiss
Copy link
Contributor Author

👍

1 similar comment
@danpersa
Copy link
Contributor

👍

private def callApplicationService(applicationName: String, token: String): Future[Result[Team]] = {
val url = applicationServiceUrl + applicationName
val normalizedApplicationName =
if (applicationName.startsWith("stups_")) applicationName.substring("stups_".length) else applicationName
Copy link
Member

Choose a reason for hiding this comment

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

can be replaced with val normalizedApplicationName = applicationName.replaceFirst("^stups_", "")

@DeTeam
Copy link

DeTeam commented Aug 15, 2017

👍

httpClient.callJson(url, Some(token)).map {
case jsObject: JsObject =>
jsObject.getFields("owner").headOption match {
jsObject.getFields("team_id").headOption match {
Copy link
Member

Choose a reason for hiding this comment

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

I think we should keep backwards compatibility.

@eugenkiss
Copy link
Contributor Author

👍

1 similar comment
@NorthFury
Copy link
Member

👍

@eugenkiss eugenkiss merged commit 4b0db63 into master Aug 15, 2017
@eugenkiss eugenkiss deleted the services-api branch August 15, 2017 13:51
@eugenkiss eugenkiss mentioned this pull request Aug 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants