File tree Expand file tree Collapse file tree 7 files changed +11
-18
lines changed
lib/work-provider/message-functions/message-store Expand file tree Collapse file tree 7 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ REACT_APP_ENABLE_TCA_CERT_MONETIZATION=false
6
6
REACT_APP_STRIPE_API_KEY = pk_test_rfcS49MHRVUKomQ9JgSH7Xqz
7
7
REACT_APP_STRIPE_API_VERSION = 2020-08-27
8
8
9
- # Vanilla Forums
10
- REACT_APP_VANILLA_ACCESS_TOKEN = va.JApNvUOx3549h20I6tnl1kOQDc75NDIp.0jG3dA.EE3gZgV
11
-
12
9
# DataDogLogging
13
10
REACT_APP_DATADOG_PUBLIC_TOKEN = puba0825671e469d16f940c5a30dc738f11
14
11
Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ REACT_APP_ENABLE_TCA_CERT_MONETIZATION=false
6
6
REACT_APP_STRIPE_API_KEY = pk_live_m3bCBVSfkfMOEp3unZFRsHXi
7
7
REACT_APP_STRIPE_API_VERSION = 2020-08-27
8
8
9
- # Vanilla Forums
10
- REACT_APP_VANILLA_ACCESS_TOKEN = va.JApNvUOx3549h20I6tnl1kOQDc75NDIp.0jG3dA.EE3gZgV
11
-
12
9
# DataDogLogging
13
10
REACT_APP_DATADOG_PUBLIC_TOKEN = puba0825671e469d16f940c5a30dc738f11
14
11
Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ REACT_APP_ENABLE_TCA_CERT_MONETIZATION=false
6
6
REACT_APP_STRIPE_API_KEY=pk_test_rfcS49MHRVUKomQ9JgSH7Xqz
7
7
REACT_APP_STRIPE_API_VERSION=2020-08-27
8
8
9
- # Vanilla Forums
10
- REACT_APP_VANILLA_ACCESS_TOKEN=va.JApNvUOx3549h20I6tnl1kOQDc75NDIp.0jG3dA.EE3gZgV
11
-
12
9
# DataDogLogging
13
10
REACT_APP_DATADOG_PUBLIC_TOKEN=puba0825671e469d16f940c5a30dc738f11
14
11
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ export const VANILLA_EMBED_JS = EnvironmentConfig.ENV === 'prod'
42
42
: 'https://vanilla.topcoder-dev.com/js/embed.js' ;
43
43
export const VANILLA_EMBED_TYPE = 'mfe' ;
44
44
export const VANILLA_FORUM_API = EnvironmentConfig . VANILLA_FORUM . V2_URL ;
45
- export const VANILLA_ACCESS_TOKEN = EnvironmentConfig . VANILLA_FORUM . ACCESS_TOKEN ;
46
45
47
46
/**
48
47
* Expire time period of auto saved intake form: 24 hours
Original file line number Diff line number Diff line change @@ -5,15 +5,20 @@ import { GetUnreadMessageCountResponse } from './get-unread-message-count-respon
5
5
6
6
export async function getUnreadCountAsync ( workId : string , handle : string ) : Promise < GetUnreadMessageCountResponse > {
7
7
8
- const url : string = [
9
- `${ EnvironmentConfig . VANILLA_FORUM . V2_URL } /groups/${ workId } /member/${ handle } ` ,
10
- `access_token=${ EnvironmentConfig . VANILLA_FORUM . ACCESS_TOKEN } ` ,
11
- ] . join ( '?' )
8
+ // Removing this because it's no longer needed and showed up in a pen test failure (PM-324)
9
+ // const url: string = [
10
+ // `${EnvironmentConfig.VANILLA_FORUM.V2_URL}/groups/${workId}/member/${handle}`,
11
+ // `access_token=${EnvironmentConfig.VANILLA_FORUM.ACCESS_TOKEN}`,
12
+ // ].join('?')
12
13
13
- const response : { unreadNotifications : number } = await xhrGetAsync ( url )
14
+ // const response: { unreadNotifications: number } = await xhrGetAsync(url)
14
15
16
+ // return {
17
+ // messageCount: response.unreadNotifications,
18
+ // workId,
19
+ // }
15
20
return {
16
- messageCount : response . unreadNotifications ,
21
+ messageCount : 0 ,
17
22
workId,
18
23
}
19
24
}
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ export const REAUTH_OFFSET = 55
39
39
export const SPRIG = { ENVIRONMENT_ID : getReactEnv < string | undefined > ( 'SPRIG_ENV_ID' , undefined ) }
40
40
41
41
export const VANILLA_FORUM = {
42
- ACCESS_TOKEN : getReactEnv < string > ( 'VANILLA_ACCESS_TOKEN' , '' ) ,
43
42
V2_URL : 'https://vanilla.topcoder-dev.com/api/v2' ,
44
43
}
45
44
Original file line number Diff line number Diff line change @@ -6,6 +6,5 @@ export * from './default.env'
6
6
export const TERMS_URL = 'https://www.topcoder.com/challenges/terms/detail/564a981e-6840-4a5c-894e-d5ad22e9cd6f'
7
7
8
8
export const VANILLA_FORUM = {
9
- ACCESS_TOKEN : getReactEnv < string > ( 'VANILLA_ACCESS_TOKEN' , '' ) ,
10
9
V2_URL : 'https://vanilla.topcoder.com/api/v2' ,
11
10
}
You can’t perform that action at this time.
0 commit comments