Skip to content

Commit 039fe04

Browse files
author
James Cori
committed
Backing out Forums Integration
1 parent ec9dfd3 commit 039fe04

14 files changed

+93
-1306
lines changed

README.md

+40-42
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
[![CircleCI](https://circleci.com/gh/topcoder-platform/admin-app.svg?style=svg)](https://circleci.com/gh/topcoder-platform/admin-app)
2-
32
# support-admin-app
4-
53
Support application
64

75
Internal application used to administer specific support tasks related to the Topcoder platform.
@@ -14,7 +12,7 @@ Internal application used to administer specific support tasks related to the To
1412

1513
## Installation
1614

17-
To install npm dependencies run:
15+
To install npm dependencies run:
1816

1917
> npm install
2018
@@ -26,61 +24,60 @@ it defaults to the `dev` environment if BUILD_ENV is empty.
2624

2725
The following configuration parameters are available:
2826

29-
| Name | Description |
30-
| ------------------------------- | ---------------------------------------------------------------------------------------------- |
31-
| API_URL | URL of the topcoder API |
32-
| ADMIN_TOOL_URL | URL of the admin tool API |
33-
| API_VERSION_PATH | Version of the API |
34-
| COOKIES_SECURE | If true the cookies set by this App will only be transmitted over secure protocols like https. |
35-
| AUTH_URL | Url of Topcoder auth form |
36-
| ACCOUNTS_CONNECTOR_URL | Url to TC account connector |
37-
| JWT_V3_NAME | jwt V3 cookie name |
38-
| JWT_V2_NAME | jwt V2 cookie name |
39-
| OAUTH2_TOKEN_NAME | OAuth2 token name |
40-
| OAUTH2_TOKEN_EXPIRETIME_TAGNAME | OAuth2 token expire time tag name |
41-
| SPIGIT_API_URL | SPIGIT api base url |
42-
| SPIGIT_API_VERSION_PATH | SPIGIT api version path |
43-
| GROUP_V5_API_URL | URL of the v5 Groups API |
44-
| LOOKUP_V5_API_URL | URL of the v5 Devices API |
45-
| TERMS_V5_API_URL | URL of the v5 Terms API |
46-
| CHALLENGES_V5_API_URL | URL of the v5 Challenges API |
47-
| RESOURCE_V5_API_URL | URL of the v5 Resources API |
48-
| AGREE_FOR_DOCUSIGN_TEMPLATE | UUID from Database of the `"DocuSign Template"` Agreeable type |
49-
| AGREE_ELECTRONICALLY | UUID from Database of the `Electronically` Agreeable Type |
50-
| DEFAULT_TERMS_TYPE_ID | The default terms type id |
51-
| CONNECT_URL | URL of Topcoder Connect |
52-
| DIRECT_URL | URL of Topcoder Direct |
53-
| WORK_MANAGER_URL | URL of Topcoder Work Manager |
54-
| ONLINE_REVIEW_URL | URL of Topcoder Online Review |
55-
| FORUMS_API_ENDPOINT | URL of Vanilla Forum |
56-
| FORUMS_API_TOKEN | Vanilla Forum API Access Token |
27+
| Name | Description |
28+
|--------------------------|---------------------------------|
29+
| API_URL | URL of the topcoder API |
30+
| ADMIN_TOOL_URL | URL of the admin tool API |
31+
| API_VERSION_PATH | Version of the API |
32+
| COOKIES_SECURE | If true the cookies set by this App will only be transmitted over secure protocols like https. |
33+
| AUTH_URL | Url of Topcoder auth form |
34+
| ACCOUNTS_CONNECTOR_URL | Url to TC account connector |
35+
| JWT_V3_NAME | jwt V3 cookie name |
36+
| JWT_V2_NAME | jwt V2 cookie name |
37+
| OAUTH2_TOKEN_NAME | OAuth2 token name |
38+
| OAUTH2_TOKEN_EXPIRETIME_TAGNAME | OAuth2 token expire time tag name |
39+
| SPIGIT_API_URL | SPIGIT api base url |
40+
| SPIGIT_API_VERSION_PATH | SPIGIT api version path |
41+
| GROUP_V5_API_URL | URL of the v5 Groups API |
42+
| LOOKUP_V5_API_URL | URL of the v5 Devices API |
43+
| TERMS_V5_API_URL | URL of the v5 Terms API |
44+
| CHALLENGES_V5_API_URL | URL of the v5 Challenges API |
45+
| RESOURCE_V5_API_URL | URL of the v5 Resources API |
46+
| MEMBER_V5_API_URL | URL of the v5 Member API |
47+
| AGREE_FOR_DOCUSIGN_TEMPLATE | UUID from Database of the `"DocuSign Template"` Agreeable type |
48+
| AGREE_ELECTRONICALLY | UUID from Database of the `Electronically` Agreeable Type |
49+
| DEFAULT_TERMS_TYPE_ID | The default terms type id |
50+
| CONNECT_URL | URL of Topcoder Connect |
51+
| DIRECT_URL | URL of Topcoder Direct |
52+
| WORK_MANAGER_URL | URL of Topcoder Work Manager |
53+
| ONLINE_REVIEW_URL | URL of Topcoder Online Review |
54+
5755

5856
## Start the Application
5957

6058
Simply execute the following command to start the app in development mode (with browsersync)
61-
6259
```
6360
npm install
6461
npm run dev
65-
66-
Application will be hosted and running at http://local.topcoder-dev.com:3000.
62+
```
63+
Application will be hosted and running at http://localhost:3000.
6764

6865
## Execute E2E Tests
6966

7067
Before executing the end-to-end (e2e) protractor tests, these environment variables should be set:
7168

72-
| Name | Description | Default Value |
73-
| --------- | --------------------------------------------------- | --------------------------------------------------------------------------- |
69+
| Name | Description | Default Value |
70+
| --- | --- | --- |
7471
| BUILD_ENV | Deployment configuration to be tested by e2e tests. | See [Configuration](#configuration) for possible values. Defaults to `dev`. |
75-
| TEST_PORT | Port from which to serve the app for e2e tests. | Defaults to `3000`. |
72+
| TEST_PORT | Port from which to serve the app for e2e tests. | Defaults to `3000`. |
7673

77-
`npm test`
74+
```npm test```
7875

7976
## Fallback instruction in case the npm scripts fail
8077

8178
### Install global dependencies
8279

83-
`npm install -g [email protected]`
80+
```npm install -g [email protected]```
8481

8582
### Install project dependencies
8683

@@ -90,14 +87,15 @@ npm install
9087

9188
### Start the Application
9289

93-
`gulp serve`
90+
```gulp serve```
9491

9592
### Build the Application
9693

97-
`gulp build`
94+
```gulp build```
9895

9996
### Execute E2E Tests
10097

101-
`gulp protractor`
98+
```gulp protractor```
99+
102100

103101
Update to Push CI

config.json

+6-14
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
"CONNECT_URL": "https://connect.topcoder-dev.com",
2525
"DIRECT_URL": "https://www.topcoder-dev.com/direct",
2626
"WORK_MANAGER_URL": "https://challenges.topcoder-dev.com",
27-
"ONLINE_REVIEW_URL": "https://software.topcoder-dev.com/review",
28-
"FORUMS_API_ENDPOINT": "https://vanilla.topcoder-dev.com/api/v2",
29-
"FORUMS_API_TOKEN": "va.HNbQh52LEsnvn6KQgJCmS10Zv_-jAJ9M.xzFBcg.3yMpRqr"
27+
"ONLINE_REVIEW_URL": "https://software.topcoder-dev.com/review"
3028
},
3129
"dev": {
3230
"API_URL": "https://api.topcoder-dev.com",
@@ -53,9 +51,7 @@
5351
"CONNECT_URL": "https://connect.topcoder-dev.com",
5452
"DIRECT_URL": "https://www.topcoder-dev.com/direct",
5553
"WORK_MANAGER_URL": "https://challenges.topcoder-dev.com",
56-
"ONLINE_REVIEW_URL": "https://software.topcoder-dev.com/review",
57-
"FORUMS_API_ENDPOINT": "https://vanilla.topcoder-dev.com/api/v2",
58-
"FORUMS_API_TOKEN": "va.HNbQh52LEsnvn6KQgJCmS10Zv_-jAJ9M.xzFBcg.3yMpRqr"
54+
"ONLINE_REVIEW_URL": "https://software.topcoder-dev.com/review"
5955
},
6056
"qa": {
6157
"API_URL": "https://api.topcoder-qa.com",
@@ -82,9 +78,7 @@
8278
"CONNECT_URL": "https://connect.topcoder-dev.com",
8379
"DIRECT_URL": "https://www.topcoder-dev.com/direct",
8480
"WORK_MANAGER_URL": "https://challenges.topcoder-dev.com",
85-
"ONLINE_REVIEW_URL": "https://software.topcoder-dev.com/review",
86-
"FORUMS_API_ENDPOINT": "https://vanilla.topcoder-dev.com/api/v2",
87-
"FORUMS_API_TOKEN": "va.HNbQh52LEsnvn6KQgJCmS10Zv_-jAJ9M.xzFBcg.3yMpRqr"
81+
"ONLINE_REVIEW_URL": "https://software.topcoder-dev.com/review"
8882
},
8983
"prod": {
9084
"API_URL": "https://api.topcoder.com",
@@ -102,17 +96,15 @@
10296
"GROUP_V5_API_URL": "https://api.topcoder.com/v5",
10397
"LOOKUP_V5_API_URL": "https://api.topcoder.com/v5",
10498
"TERMS_V5_API_URL": "https://api.topcoder.com/v5",
105-
"CHALLENGES_V5_API_URL": "https://api.topcoder-dev.com/v5",
106-
"RESOURCE_V5_API_URL": "https://api.topcoder-dev.com/v5",
99+
"CHALLENGES_V5_API_URL": "https://api.topcoder.com/v5",
100+
"RESOURCE_V5_API_URL": "https://api.topcoder.com/v5",
107101
"MEMBER_V5_API_URL": "https://api.topcoder.com/v5",
108102
"AGREE_FOR_DOCUSIGN_TEMPLATE": "1363a7ab-fd3e-4d7c-abbb-2f7440b8b355",
109103
"AGREE_ELECTRONICALLY": "2db6c920-4089-4755-9cd1-99b0df0af961",
110104
"DEFAULT_TERMS_TYPE_ID": 5,
111105
"CONNECT_URL": "https://connect.topcoder.com",
112106
"DIRECT_URL": "https://www.topcoder.com/direct",
113107
"WORK_MANAGER_URL": "https://challenges.topcoder.com",
114-
"ONLINE_REVIEW_URL": "https://software.topcoder.com/review",
115-
"FORUMS_API_ENDPOINT": "https://vanilla.topcoder-dev.com/api/v2",
116-
"FORUMS_API_TOKEN": "va.HNbQh52LEsnvn6KQgJCmS10Zv_-jAJ9M.xzFBcg.3yMpRqr"
108+
"ONLINE_REVIEW_URL": "https://software.topcoder.com/review"
117109
}
118110
}

src/app/app.js

-12
Original file line numberDiff line numberDiff line change
@@ -430,18 +430,6 @@ angular.module('supportAdminApp', [
430430
data: { pageTitle: 'Challenge Detail' },
431431
resolve: { auth: authenticate }
432432
})
433-
.state('index.v5ChallengeForums', {
434-
url: '/v5-challenge-details/:id/forums',
435-
templateUrl: 'app/forums/forums.html',
436-
data: { pageTitle: 'Forums' },
437-
resolve: { auth: authenticate }
438-
})
439-
.state('index.v5ChallengeForumsComment', {
440-
url: '/user/:id/comments',
441-
templateUrl: 'app/forums/comments.html',
442-
data: { pageTitle: 'Comments' },
443-
resolve: { auth: authenticate }
444-
})
445433
.state('index.v5ChallengeManageUser', {
446434
url: '/v5-challenge-manage-users/:id',
447435
templateUrl: 'app/v5_challenges/challenge.manage.user.html',

src/app/forums/add-member.controller.js

-110
This file was deleted.

src/app/forums/add-member.html

-53
This file was deleted.

0 commit comments

Comments
 (0)