-
Notifications
You must be signed in to change notification settings - Fork 21
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
runfix: remove slashes from conversation and user api constants #6727
Conversation
@@ -171,7 +171,7 @@ export class UserAPI { | |||
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/getUserClient | |||
*/ | |||
public async getClient(userId: QualifiedId, clientId: string): Promise<PublicClient> { | |||
const url = `${UserAPI.URL.USERS}/${userId.domain}/${userId.id}/${UserAPI.URL.CLIENTS}/${clientId}`; | |||
const url = `//${UserAPI.URL.USERS}/${userId.domain}/${userId.id}/${UserAPI.URL.CLIENTS}/${clientId}`; |
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.
Double slash?
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.
Ohh.. I missed this one :o
@@ -190,7 +190,7 @@ export class UserAPI { | |||
*/ | |||
public async getClientPreKey(userId: QualifiedId, clientId: string): Promise<ClientPreKey> { | |||
const {id, domain} = userId; | |||
const url = `${UserAPI.URL.USERS}/${domain}/${id}/${UserAPI.URL.PRE_KEYS}/${clientId}`; | |||
const url = `//${UserAPI.URL.USERS}/${domain}/${id}/${UserAPI.URL.PRE_KEYS}/${clientId}`; |
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.
Double ?
@@ -206,7 +206,7 @@ export class UserAPI { | |||
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/getUserClients | |||
*/ | |||
public async getClients(userId: QualifiedId): Promise<PublicClient[]> { | |||
const url = `${UserAPI.URL.USERS}/${userId.domain}/${userId.id}/${UserAPI.URL.CLIENTS}`; | |||
const url = `//${UserAPI.URL.USERS}/${userId.domain}/${userId.id}/${UserAPI.URL.CLIENTS}`; |
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.
Double? :D
@@ -723,7 +723,7 @@ export class UserAPI { | |||
const config: AxiosRequestConfig = { | |||
data: {email}, | |||
method: 'put', | |||
url: `${UserAPI.URL.USERS}/${userId}/${UserAPI.URL.EMAIL}`, | |||
url: `//${UserAPI.URL.USERS}/${userId}/${UserAPI.URL.EMAIL}`, |
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.
Double?
Quality Gate passedIssues Measures |
Description
Slashes are hardcoded into some of the url constants in the conversation and user api;
This remove those slashes, allowing us to use those constant where the API endpoints change the order around, as is the case for V&, see https://wearezeta.atlassian.net/wiki/spaces/ENGINEERIN/pages/1309868033/API+changes+v6+v7
Checklist