Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/apps/review/src/lib/hooks/useFetchChallengeResults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function useFetchChallengeResults(
Error
>(`reviewBaseUrl/projectResult/${challengeInfo?.legacyId}`, {
fetcher: async () => {
const results = await fetchProjectResults(1, 5000, `${challengeInfo?.legacyId}`)
const results = await fetchProjectResults(1, 50, `${challengeInfo?.legacyId}`)
return results.data
},
isPaused: () => !challengeInfo?.legacyId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function useFetchChallengeSubmissions(
Error
>(`reviewBaseUrl/submissions/${challengeId}`, {
fetcher: async () => {
const results = await fetchSubmissions(1, 5000, challengeId ?? '')
const results = await fetchSubmissions(1, 50, challengeId ?? '')
return results.data
},
isPaused: () => !challengeId,
Expand Down
8 changes: 4 additions & 4 deletions src/apps/review/src/lib/services/reviews.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const createContactRequest = async (
message: string
},
BackendContactRequest
>(`${EnvironmentConfig.REVIEW.REVIEW_API}/contact-requests`, {
>(`${EnvironmentConfig.API.V6}/review/contact-requests`, {
challengeId,
message: data.category
? `${data.category}:${data.message}`
Expand Down Expand Up @@ -135,7 +135,7 @@ export const fetchSubmissions = async (
const results = await xhrGetAsync<
BackendResponseWithMeta<BackendSubmission[]>
>(
`${EnvironmentConfig.REVIEW.REVIEW_API}/submissions?${qs.stringify({
`${EnvironmentConfig.API.V6}/submissions?${qs.stringify({
challengeId,
page,
perPage,
Expand All @@ -157,7 +157,7 @@ export const downloadSubmissionFile = async (
submissionId: string,
): Promise<Blob> => {
const results = await xhrGetBlobAsync<Blob>(
`${EnvironmentConfig.REVIEW.REVIEW_API}/submissions/${submissionId}/download`,
`${EnvironmentConfig.API.V6}/submissions/${submissionId}/download`,
)
return results
}
Expand All @@ -181,7 +181,7 @@ export const fetchProjectResults = async (
const results = await xhrGetAsync<
BackendResponseWithMeta<BackendProjectResult[]>
>(
`${EnvironmentConfig.REVIEW.REVIEW_API}/projectResult?${qs.stringify({
`${EnvironmentConfig.API.V6}/review/projectResult?${qs.stringify({
challengeId,
page,
perPage,
Expand Down
1 change: 0 additions & 1 deletion src/config/environments/default.env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,4 @@ export const ADMIN = {
export const REVIEW = {
CHALLENGE_PAGE_URL: 'https://www.topcoder-dev.com/challenges',
PROFILE_PAGE_URL: 'https://profiles.topcoder-dev.com',
REVIEW_API: 'https://api.topcoder-dev.com/v6',
}
1 change: 0 additions & 1 deletion src/config/environments/global-config.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,5 @@ export interface GlobalConfig {
REVIEW: {
CHALLENGE_PAGE_URL: string
PROFILE_PAGE_URL: string
REVIEW_API: string
},
}
1 change: 0 additions & 1 deletion src/config/environments/prod.env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ export const ADMIN = {
export const REVIEW = {
CHALLENGE_PAGE_URL: 'https://www.topcoder.com/challenges',
PROFILE_PAGE_URL: 'https://profiles.topcoder.com',
REVIEW_API: 'https://api.topcoder.com/v6',
}
46,953 changes: 27,297 additions & 19,656 deletions yarn.lock

Large diffs are not rendered by default.