Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Sync develop with master #629

Merged
merged 318 commits into from
Aug 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
318 commits
Select commit Hold shift + click to select a range
d45a2e2
Merge pull request #12 from topcoder-platform/dev-circleci
Gunasekar-K Jul 6, 2020
7deaa03
Add build command when installing client
callmekatootie Jul 6, 2020
1e4fb72
build changes
Gunasekar-K Jul 7, 2020
4a192e0
Merge pull request #13 from topcoder-platform/develop
Gunasekar-K Jul 7, 2020
c068ef5
Merge pull request #14 from topcoder-platform/dev-circleci
Gunasekar-K Jul 7, 2020
7b0e7cf
Update README.md
Gunasekar-K Jul 7, 2020
a4df0f7
Update static locations to match mock data
callmekatootie Jul 10, 2020
fadbf59
Debug kafka payload
callmekatootie Jul 16, 2020
8dc558d
Bump lodash from 4.17.15 to 4.17.19
dependabot[bot] Jul 16, 2020
fde4e02
#537 - Pass org to associate new users with during bulk upload
callmekatootie Jul 19, 2020
de41af4
fix issue 29
Vips19 Jul 21, 2020
b512e7e
added title
Vips19 Jul 21, 2020
369803b
fix issue #27
Vips19 Jul 21, 2020
ecf3fc4
fix issue #88
Vips19 Jul 21, 2020
17faff3
#72 - Update tooltip to indicate support for XLSX files too
callmekatootie Jul 22, 2020
a8dc0bd
#111 - Plural form text
callmekatootie Jul 22, 2020
3102578
#178 Plural form for filter
callmekatootie Jul 22, 2020
5d72a10
#184 - Update template format tooltip
callmekatootie Jul 22, 2020
83747c2
#211 - Update text displayed when searching
callmekatootie Jul 22, 2020
0d386c6
#243 - Update placeholder text to match icon
callmekatootie Jul 22, 2020
5fe9f79
#470 - Rename filter text
callmekatootie Jul 22, 2020
8d0f119
#21 - Prompt user to enter group name
callmekatootie Jul 22, 2020
3cff9ad
#34 - Trim group name before creation and #60 - Prompt to enter group…
callmekatootie Jul 22, 2020
8368f11
#39 - Match Add filter modal background with other modals
callmekatootie Jul 22, 2020
c4b1f71
#110 - Trim search text before search to prevent empty string search
callmekatootie Jul 22, 2020
8ee5c08
#138 - Hide clear text button if there is no text to clear
callmekatootie Jul 22, 2020
876bf03
#188 - Highlight manage filters button on hover
callmekatootie Jul 22, 2020
ad8501f
#55 - Provide tooltips for the three tabs
callmekatootie Jul 22, 2020
6d80298
Change style of cursor for disabled pagination button
callmekatootie Jul 22, 2020
c1660e5
#136 - Fix issue where availability filters would indicate they are a…
callmekatootie Jul 22, 2020
7a14015
fix issue #118
Vips19 Jul 23, 2020
7c22743
Merge pull request #541 from topcoder-platform/issue-88
callmekatootie Jul 23, 2020
28060a5
Merge pull request #542 from topcoder-platform/issue-118-new
callmekatootie Jul 23, 2020
9547065
Merge pull request #536 from topcoder-platform/dependabot/npm_and_yar…
callmekatootie Jul 23, 2020
a73f3a1
Update filters.js
rashmi73 Jul 23, 2020
80e0c89
fix feedback
Vips19 Jul 23, 2020
abbfa14
fix issue #65
Vips19 Jul 23, 2020
b0dda13
fixes issue#305
romitrivigo Jul 23, 2020
1743f46
Update package.json
rashmi73 Jul 23, 2020
3c62787
Update Global.jsx
rashmi73 Jul 23, 2020
a618ddd
Update style.module.scss
rashmi73 Jul 23, 2020
c8fcdbb
fixes issue#81
romitrivigo Jul 23, 2020
e93c49c
fix feedback
Vips19 Jul 23, 2020
6699d05
fix styles changes
Vips19 Jul 23, 2020
d08e8c1
Update filters.js
rashmi73 Jul 23, 2020
260c38a
fixes issue#93
romitrivigo Jul 23, 2020
3a8f449
Merge pull request #539 from topcoder-platform/issue-27
callmekatootie Jul 23, 2020
d201f57
Merge pull request #540 from topcoder-platform/issue-29
callmekatootie Jul 23, 2020
5e91464
Merge pull request #545 from topcoder-platform/issues/timor/305
callmekatootie Jul 23, 2020
efb7829
Merge pull request #546 from topcoder-platform/issue_168
callmekatootie Jul 23, 2020
09df13c
Merge pull request #547 from topcoder-platform/issues/timor/81
callmekatootie Jul 23, 2020
b848bf0
fix feedback
Vips19 Jul 23, 2020
87db653
Merge pull request #548 from topcoder-platform/issues/timor/93
callmekatootie Jul 23, 2020
1046515
Merge branch 'develop' into issue_165
callmekatootie Jul 23, 2020
73c664c
git push origin developMerge branch 'issue_165' into develop
callmekatootie Jul 23, 2020
da78a32
fix class name
Vips19 Jul 23, 2020
974f0ca
Merge pull request #544 from topcoder-platform/issue-65
callmekatootie Jul 23, 2020
680f98a
changes for #484
phongnt Jul 23, 2020
ab9f910
changes for #173
phongnt Jul 23, 2020
11ac882
Update style.module.scss
rashmi73 Jul 23, 2020
2b237c6
Update filters.module.css
PrakashDurlabhji Jul 23, 2020
0d1c51a
fix changes for issue 27 in ie
Vips19 Jul 23, 2020
b512166
changes for #91
Vips19 Jul 23, 2020
e428e21
changes for #151
Vips19 Jul 23, 2020
dc155a9
Update Global.jsx
PrakashDurlabhji Jul 23, 2020
7d73560
Update filters.js
PrakashDurlabhji Jul 23, 2020
77b0ae2
Update filters.module.css
PrakashDurlabhji Jul 23, 2020
bb0398f
fixes issue#93
romitrivigo Jul 24, 2020
f64eadf
Merge pull request #549 from topcoder-platform/issue-484
callmekatootie Jul 24, 2020
08c4bbd
Fix warning
callmekatootie Jul 24, 2020
948c140
Merge pull request #553 from topcoder-platform/issue_168
callmekatootie Jul 24, 2020
2c174af
Merge pull request #555 from topcoder-platform/issue-27-new
callmekatootie Jul 24, 2020
be03e95
Merge pull request #557 from topcoder-platform/issue-91-new
callmekatootie Jul 24, 2020
7bb9cee
Merge pull request #558 from topcoder-platform/issue-151
callmekatootie Jul 24, 2020
c12308b
Merge pull request #563 from topcoder-platform/issues/timor/93
callmekatootie Jul 24, 2020
82f2d8d
Merge pull request #551 from topcoder-platform/issue-173
callmekatootie Jul 24, 2020
3895574
fix overflow issue
akumar1503 Jul 24, 2020
8efad3b
Fix logout dropdown hide on outside click
Jul 24, 2020
038ccd1
fixes issue#89
romitrivigo Jul 24, 2020
c88c6c6
fixes issue#281
romitrivigo Jul 24, 2020
6951420
fixes issue#66
romitrivigo Jul 24, 2020
58a9104
Update filters.module.css
PrakashDurlabhji Jul 24, 2020
6e51c4d
fix changes for 128
Vips19 Jul 24, 2020
2cd0cb4
show no results found on empty suggestion
akumar1503 Jul 24, 2020
657501e
fixes issue#200
romitrivigo Jul 24, 2020
33975c4
fix changes for #455
Vips19 Jul 24, 2020
ff77619
Update Global.jsx
PrakashDurlabhji Jul 24, 2020
b613c6e
fixes issue#319
romitrivigo Jul 24, 2020
15d78fd
changes for #41
phongnt Jul 24, 2020
d81be8f
changes for #245
phongnt Jul 24, 2020
512e6a9
Merge pull request #554 from topcoder-platform/issue_82
callmekatootie Jul 24, 2020
120fad5
Merge pull request #560 from topcoder-platform/issue_102
callmekatootie Jul 24, 2020
3cb621c
Merge pull request #564 from topcoder-platform/issue-62
callmekatootie Jul 24, 2020
a360c67
Merge branch 'develop' into issues/timor/281
callmekatootie Jul 24, 2020
28377e5
git push origin developMerge branch 'issues/timor/281' into develop
callmekatootie Jul 24, 2020
5c8e9d1
changes for #116
phongnt Jul 24, 2020
f2c005e
Merge branch 'develop' into issue128
callmekatootie Jul 24, 2020
9a786af
#128 - remove duplicate titles
callmekatootie Jul 24, 2020
ebffc77
Merge branch 'issue128' into develop
callmekatootie Jul 24, 2020
c121c2b
Merge pull request #570 from topcoder-platform/issue-123
callmekatootie Jul 24, 2020
b9d5bfb
Merge pull request #571 from topcoder-platform/issues/timor/200
callmekatootie Jul 24, 2020
c41c92f
Merge pull request #572 from topcoder-platform/issue-455-new
callmekatootie Jul 24, 2020
7dac2b8
Merge branch 'develop' into issue-45-fix
Jul 24, 2020
19e1ac8
Update css to remove outline on focus
Jul 24, 2020
2398a57
Merge pull request #573 from topcoder-platform/issues/timor/319
callmekatootie Jul 24, 2020
e042f74
fixes issue#66
romitrivigo Jul 24, 2020
5109e16
Merge pull request #574 from topcoder-platform/issue-41
callmekatootie Jul 24, 2020
1dd39cd
Deal with warnings
callmekatootie Jul 24, 2020
1894636
Merge pull request #575 from topcoder-platform/issue-245
callmekatootie Jul 24, 2020
c5b1227
changes for #116
phongnt Jul 24, 2020
4646599
Fix input clear cursor on IE
marioskranitsas Jul 24, 2020
8106667
Merge branch 'develop' of github.com:topcoder-platform/u-bahn-app int…
callmekatootie Jul 24, 2020
d016f31
Merge pull request #565 from topcoder-platform/issue-45-fix
callmekatootie Jul 24, 2020
de98b19
fixes issue#689
romitrivigo Jul 24, 2020
6cf9adb
Merge pull request #576 from topcoder-platform/issue-116
callmekatootie Jul 24, 2020
f78da6e
hide input clear icon on ie
marioskranitsas Jul 24, 2020
83ce14d
Merge branch 'develop' into issues/timor/89
callmekatootie Jul 24, 2020
c19e503
fixes issue#66
romitrivigo Jul 24, 2020
a51087c
#89 - Log error only if not a cancelled request
callmekatootie Jul 24, 2020
3baddbf
Merge branch 'issues/timor/89' into develop
callmekatootie Jul 24, 2020
a0378fc
fixes issue#66
romitrivigo Jul 24, 2020
6bce5c8
Merge pull request #577 from topcoder-platform/issue-285
callmekatootie Jul 24, 2020
cc4b75c
Fix issue 17, 'Add to Group', 'Manage Filters' and 'Edit Profile' mod…
narekcat Jul 24, 2020
fcb88c0
Merge pull request #568 from topcoder-platform/issues/timor/66
callmekatootie Jul 24, 2020
860e750
housekeeping
callmekatootie Jul 24, 2020
9f45be3
fixes issue#46
romitrivigo Jul 24, 2020
4ad34be
fixes issue#281
romitrivigo Jul 24, 2020
7cb2675
changes for #152
Vips19 Jul 24, 2020
f49ecdf
Fix: blur click conflict on name and chevron click
Jul 24, 2020
1659a61
Issue #473 fixes.
venkygot Jul 24, 2020
91eb772
issue 386 fix
PrakashDurlabhji Jul 24, 2020
1d9b6bd
Update index.jsx
PrakashDurlabhji Jul 24, 2020
9e9b77a
Update Router.jsx
PrakashDurlabhji Jul 24, 2020
d0c6111
fixes issue#163
romitrivigo Jul 25, 2020
8747dbd
Fix issue where if template did not exist, the app would crash
callmekatootie Jul 25, 2020
b9cf390
changes for #524
phongnt Jul 25, 2020
94a8210
#439 - Support CSV
callmekatootie Jul 25, 2020
f450db4
#338 - Update company logo
callmekatootie Jul 25, 2020
88003c4
fixes issue#150
romitrivigo Jul 25, 2020
a040b89
changes for #141
phongnt Jul 25, 2020
41e0fe3
changes for #141
phongnt Jul 25, 2020
0318b7f
misc
callmekatootie Jul 25, 2020
9d3767d
Merge branch 'develop' into issue_315
callmekatootie Jul 25, 2020
d87e53a
housekeeping
callmekatootie Jul 25, 2020
9efd0bd
Merge branch 'issue_315' into develop
callmekatootie Jul 25, 2020
22a2e09
Merge branch 'develop' into issue-17
callmekatootie Jul 25, 2020
a1c21cc
#17 - Fix issue where no results found when searching groups was not …
callmekatootie Jul 25, 2020
8ff883f
Merge branch 'develop' into issue-17
narekcat Jul 25, 2020
0103459
Merge branch 'issue-17' of github.com:topcoder-platform/u-bahn-app in…
narekcat Jul 25, 2020
dae2919
Merge pull request #580 from topcoder-platform/issues/timor/46
callmekatootie Jul 25, 2020
6fbd130
Merge branch 'develop' into issues/timor/281
callmekatootie Jul 25, 2020
3432a23
Merge branch 'issues/timor/281' into develop
callmekatootie Jul 25, 2020
9bb28b0
Merge branch 'develop' into issue-17
narekcat Jul 25, 2020
2908d64
Merge pull request #585 from topcoder-platform/issue-45-fix
callmekatootie Jul 25, 2020
b79be37
fix issue 17, fix left allignment of the right columnm in 'Edit Profi…
narekcat Jul 25, 2020
bded9dc
fix feedback
Vips19 Jul 25, 2020
a2328f0
Merge pull request #587 from topcoder-platform/issue-386
callmekatootie Jul 25, 2020
3aab2b3
Merge pull request #590 from topcoder-platform/issues/timor/163
callmekatootie Jul 25, 2020
0f67320
Merge pull request #593 from topcoder-platform/issues/timor/150
callmekatootie Jul 25, 2020
dc86d5b
Merge pull request #595 from topcoder-platform/issue-141
callmekatootie Jul 25, 2020
d32470e
Merge branch 'develop' into issue-17
callmekatootie Jul 25, 2020
e335881
changes for #524
phongnt Jul 25, 2020
9c405ca
git push origin developMerge branch 'issue-17' into develop
callmekatootie Jul 25, 2020
8cabcb9
Merge pull request #592 from topcoder-platform/issue-524
callmekatootie Jul 25, 2020
3fc782f
Merge branch 'develop' into issue-152
callmekatootie Jul 25, 2020
8ccf4bd
Update warning text
callmekatootie Jul 25, 2020
830c106
Merge branch 'issue-152' into develop
callmekatootie Jul 25, 2020
14d56ab
changes for #359
phongnt Jul 25, 2020
36f247c
changes for #75
phongnt Jul 25, 2020
4df2084
#327 - do not show deactivated users in group based search
callmekatootie Jul 25, 2020
2b406c9
#430 - update favicon
callmekatootie Jul 25, 2020
0e99935
Fix logout, onblur firing first of onclick on logout btn
Jul 25, 2020
ceb0097
Merge pull request #598 from topcoder-platform/issue-45-fix
callmekatootie Jul 25, 2020
61e02ed
changes for #144
phongnt Jul 25, 2020
03d3a99
Update index.jsx
PrakashDurlabhji Jul 25, 2020
061e62b
changes for #292
phongnt Jul 25, 2020
0989a97
feat(search-boxes): add clear button for inputs
cagdas001 Jul 25, 2020
f533004
Update index.jsx
PrakashDurlabhji Jul 25, 2020
1dbb89c
Fixes issue #481 re-adding skill after adding and removing
gets0ul Jul 25, 2020
5863ef4
Update Router.jsx
PrakashDurlabhji Jul 25, 2020
06246e1
Merge pull request #588 from topcoder-platform/issue_196
callmekatootie Jul 26, 2020
45c94a4
Merge pull request #596 from topcoder-platform/issue-359
callmekatootie Jul 26, 2020
9aa18d4
Merge pull request #597 from topcoder-platform/issue-75
callmekatootie Jul 26, 2020
7b5c68c
Merge pull request #599 from topcoder-platform/issue-144
callmekatootie Jul 26, 2020
44ef6bd
Merge pull request #601 from topcoder-platform/issue_507
callmekatootie Jul 26, 2020
ed7a9f7
Merge pull request #602 from topcoder-platform/issue-292
callmekatootie Jul 26, 2020
2e81b6b
Merge remote-tracking branch 'origin/develop' into issue-473
venkygot Jul 26, 2020
5f25049
fix IE11 overflow issue in 'Edit Profile Modal'.
narekcat Jul 26, 2020
43f8f8c
fix(upload): add mime-type check at file uploads
cagdas001 Jul 26, 2020
555312e
Merge pull request #604 from topcoder-platform/gets0ul-issue_481
callmekatootie Jul 26, 2020
503cc12
fix(search-box): fix for alignment of clear button
cagdas001 Jul 26, 2020
f93f616
Issue 552 fixes
venkygot Jul 26, 2020
0798c13
Merge pull request #603 from cagdas001/develop
callmekatootie Jul 26, 2020
0023810
#267 - notify user when there are no results for company attribute fi…
callmekatootie Jul 26, 2020
df28334
Merge pull request #607 from topcoder-platform/issue-17-2
callmekatootie Jul 26, 2020
7c29598
Merge pull request #608 from cagdas001/fix-269
callmekatootie Jul 26, 2020
2ab8e4f
Merge branch 'develop' into issue-552
callmekatootie Jul 26, 2020
1a596e5
Fix console error #473
venkygot Jul 26, 2020
5c86ae1
#552 - Reduce debounce time delay
callmekatootie Jul 26, 2020
238620d
Merge branch 'issue-552' into develop
callmekatootie Jul 26, 2020
e6d66d1
console error issue fix #473
venkygot Jul 26, 2020
cfe3462
Merge pull request #586 from topcoder-platform/issue-473
callmekatootie Jul 26, 2020
cb0299e
Update the file types supported
callmekatootie Jul 26, 2020
98f0ec3
changes for #524 side affect
phongnt Jul 26, 2020
92d93cf
changes for #524 side affect
phongnt Jul 27, 2020
b21ecb6
Fix issue-271
Jul 27, 2020
36d9918
Merge pull request #610 from topcoder-platform/hotfix/issue-524
callmekatootie Jul 27, 2020
b5d31dd
Merge pull request #611 from topcoder-platform/issue-271
callmekatootie Jul 27, 2020
1e21cc2
Fix issue #85, isolate standard user attributes from company attributes.
narekcat Jul 27, 2020
02add8a
Issue #392 fixes
venkygot Jul 27, 2020
fbde749
Merge pull request #612 from topcoder-platform/issue-85
callmekatootie Jul 27, 2020
af31c6a
Merge pull request #613 from topcoder-platform/issu-392
callmekatootie Jul 27, 2020
6a10b8e
changes for #259
phongnt Jul 27, 2020
c99dfc9
changes for #259
phongnt Jul 27, 2020
fc1076d
Merge pull request #614 from topcoder-platform/issue-259
callmekatootie Jul 27, 2020
3097756
#63 - Update parameter for redirect on logout
callmekatootie Jul 27, 2020
f44a64b
Merge branch 'develop' of github.com:topcoder-platform/u-bahn-app int…
callmekatootie Jul 27, 2020
9679788
Fix issue #148, adds requirement rule to the user's general and custo…
narekcat Jul 27, 2020
77ee37c
#148 - housekeeping
callmekatootie Jul 27, 2020
ee4604a
git push origin developMerge branch 'issue-148' into develop
callmekatootie Jul 27, 2020
0524b7c
changes for #15
phongnt Jul 27, 2020
9f250b6
changes for #15
phongnt Jul 27, 2020
f48622b
changes for #15
Jul 28, 2020
bac95f6
changes for #15
Jul 28, 2020
822494b
#15 - Use config attributes
callmekatootie Jul 28, 2020
55478b9
changes for #15
Jul 28, 2020
95e2750
changes for #15
Jul 28, 2020
e45eea4
feat(groups): add virtual scrolling at groups list
cagdas001 Jul 28, 2020
b88c185
feat(AddToGroupModal): add virtual scrolling at group list
cagdas001 Jul 28, 2020
9087d32
#15 Housekeeping
callmekatootie Jul 28, 2020
cda61fd
Merge branch 'issue-15' into develop
callmekatootie Jul 28, 2020
de27fbe
fix(GroupsSideMenu): cut long names and add tooltip
cagdas001 Jul 28, 2020
3f4b0e0
Merge pull request #619 from cagdas001/develop
callmekatootie Jul 29, 2020
c9785e4
changes for #621
Jul 30, 2020
2b1948d
Merge pull request #622 from topcoder-platform/issue-621
callmekatootie Jul 30, 2020
cd81c90
#430 - Update favicon
callmekatootie Jul 30, 2020
5ea5ec7
Revert "changes for #621"
callmekatootie Jul 31, 2020
08573f5
Merge pull request #624 from topcoder-platform/revert-622-issue-621
callmekatootie Jul 31, 2020
e726f19
Issue fixes #621
venkygot Jul 31, 2020
3e8e201
#621 - Keep height of sections identical
callmekatootie Aug 1, 2020
2911ece
Merge branch 'issue-621-v' into develop
callmekatootie Aug 1, 2020
80f9bcf
misc
callmekatootie Aug 1, 2020
c34ac76
feat: add auto suggestion for achievement filter
cagdas001 Aug 2, 2020
0cfbf2a
Merge pull request #626 from cagdas001/develop
callmekatootie Aug 3, 2020
42cd6bf
feat: remove emsi dependence and use `u-bahn-api` instead for skills
cagdas001 Aug 4, 2020
c8e6024
fix(SuggestionBox): a bug prevents inputs with space(s)
cagdas001 Aug 4, 2020
d4940f0
Merge pull request #628 from cagdas001/develop
callmekatootie Aug 4, 2020
9be1a6a
#627 - For when the skill does not come from EMSI, the skill id is th…
callmekatootie Aug 4, 2020
d40fcb4
#627 - correct the url used to check for existence of non third party…
callmekatootie Aug 4, 2020
26590ce
#627 - Handle response correctly
callmekatootie Aug 5, 2020
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
88 changes: 88 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
version: 2
defaults: &defaults
docker:
- image: circleci/python:2.7.18-stretch-browsers
install_dependency: &install_dependency
name: Installation of build and deployment dependencies.
command: |
sudo apt install jq
sudo pip install awscli --upgrade
sudo pip install docker-compose
install_deploysuite: &install_deploysuite
name: Installation of install_deploysuite.
command: |
git clone --branch v1.4.2 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
cp ./../buildscript/master_deploy.sh .
cp ./../buildscript/buildenv.sh .
cp ./../buildscript/awsconfiguration.sh .
restore_cache_settings_for_build: &restore_cache_settings_for_build
key: docker-node-modules-{{ checksum "package-lock.json" }}

save_cache_settings: &save_cache_settings
key: docker-node-modules-{{ checksum "package-lock.json" }}
paths:
- node_modules

builddeploy_steps: &builddeploy_steps
- checkout
- setup_remote_docker
- run: *install_dependency
- run: *install_deploysuite
- restore_cache: *restore_cache_settings_for_build
- run:
name: Running MasterScript.
command: |
./awsconfiguration.sh $DEPLOY_ENV
source awsenvconf
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-${APPNAME}-appvar
./build.sh ${APPNAME}
rm -f buildenvvar
- save_cache: *save_cache_settings
- deploy:
name: Running MasterScript.
command: |
# ./awsconfiguration.sh $DEPLOY_ENV
source awsenvconf
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-deployvar
source buildenvvar
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME}


jobs:
# Build & Deploy against development backend
"build-dev":
<<: *defaults
environment:
DEPLOY_ENV: "DEV"
LOGICAL_ENV: "dev"
APPNAME: "ubahn_app"
steps: *builddeploy_steps

"build-prod":
<<: *defaults
environment:
DEPLOY_ENV: "PROD"
LOGICAL_ENV: "prod"
APPNAME: "ubahn_app"
steps: *builddeploy_steps

workflows:
version: 2
build:
jobs:
# Development builds are executed on "develop" branch only.
- "build-dev":
context : org-global
filters:
branches:
only:
- develop
- dev-circleci

# Production builds are exectuted only on tagged commits to the
# master branch.
- "build-prod":
context : org-global
filters:
branches:
only: master
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.idea
**/.DS_Store
.env
coverage
24 changes: 9 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
.idea/
.vscode/
node_modules/
build
.DS_Store
*.tgz
my-app*
template/src/__tests__/__snapshots__/
lerna-debug.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/.changelog
.npm/
yarn.lock
node_modules
.idea
**/.DS_Store
upload
scripts/generate
.nyc_output
.env
coverage
docker/api.env
134 changes: 66 additions & 68 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,68 +1,66 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
# UBahn App

## Install software

- node 12.x
- npm 6.x
- docker
- S3

## Deployment

There are two apps involved - a front end build using create react app and a backend which is a nodejs api

When working locally, you will run the following commands (after setting the necessary environment variables):

- npm install
- cd client && npm install
- cd .. && npm run dev

The front end proxies request (some of them) to localhost:3001, which is the backend api code base. This configuration is located in `client/package.json` file itself

Note that the environment variables for the React App start with REACT_APP_

## Local database deployment

1. Navigate to docker-db run `docker-compose up -d`
2. Follow *Configuration* section to update config values
3. Run `npm i` and `npm run lint`
4. Create table, `npm run create-tables`, this will create tables (if you need this)
5. Startup server `npm run start`

## Configuration

Configuration for the application is at `config/default.js` and `config/production.js`. The following parameters can be set in config files or in env variables:

- LOG_LEVEL: the log level
- PORT: the server port
- API_VERSION: the API version
- AUTH_SECRET: TC Authentication secret
- VALID_ISSUERS: valid issuers for TC authentication
- AMAZON.AWS_ACCESS_KEY_ID: The AWS access key
- AMAZON.AWS_SECRET_ACCESS_KEY: The AWS secret key
- AMAZON.AWS_REGION: The Amazon region to use when connecting. For local dynamodb you can set fake value.
- AMAZON.IS_LOCAL_DB: Use local or AWS Amazon DynamoDB
- AMAZON.DYNAMODB_URL: The local url, if using local Amazon DynamoDB
- AMAZON.DYNAMODB_READ_CAPACITY_UNITS: the AWS DynamoDB read capacity units, if using local Amazon DynamoDB
- AMAZON.DYNAMODB_WRITE_CAPACITY_UNITS: the AWS DynamoDB write capacity units, if using local Amazon DynamoDB
- AMAZON.DYNAMODB_UPLOAD_TABLE: DynamoDB table name for upload
- AMAZON.DYNAMODB_TEMPLATE_TABLE: DynamoDB table name for template
- AUTH0_URL: Auth0 URL, used to get TC M2M token
- AUTH0_AUDIENCE: Auth0 audience, used to get TC M2M token
- TOKEN_CACHE_TIME: Auth0 token cache time, used to get TC M2M token
- AUTH0_CLIENT_ID: Auth0 client id, used to get TC M2M token
- AUTH0_CLIENT_SECRET: Auth0 client secret, used to get TC M2M token
- AUTH0_PROXY_SERVER_URL: Proxy Auth0 URL, used to get TC M2M token
- BUSAPI_URL: the bus api, default value is `https://api.topcoder-dev.com/v5`
- KAFKA_ERROR_TOPIC: Kafka error topic, default value is 'common.error.reporting'
- KAFKA_MESSAGE_ORIGINATOR: the Kafka message originator, default value is 'ubahn-search-ui-api'
- UPLOAD_CREATE_TOPIC: the upload create Kafka topic, default value is 'ubahn.action.create'
- TEMPLATE_FILE_MAX_SIZE: the template file restrict size, default value is '2MB'
- TEMPLATE_FILE_MIMETYPE: the template file accept type, default value is 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
- TEMPLATE_S3_BUCKET: the template s3 bucket name, default value is 'ubahn'
- UPLOAD_S3_BUCKET: the upload s3 bucket name, default value is 'ubahn'
- S3_OBJECT_URL_EXPIRY_TIME: the s3 url expiry time, default value is '1 hour'

Also check out the client folder's README file for additional configurations to set for the front end. You can find the required configurations under client/src/config.js
7 changes: 7 additions & 0 deletions app-bootstrap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* App bootstrap
*/
global.Promise = require('bluebird')
const Joi = require('joi')

Joi.id = () => Joi.string().uuid().required()
28 changes: 28 additions & 0 deletions app-constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* App constants
*/
const UserRoles = {
admin: 'Admin',
administrator: 'Administrator',
topcoderUser: 'Topcoder User',
copilot: 'Copilot'
}

const Scopes = {
CreateUpload: 'create:upload',
GetUpload: 'read:upload',
UpdateUpload: 'update:upload',
AllUpload: 'all:upload',
CreateTemplate: 'create:template',
GetTemplate: 'read:template',
AllTemplate: 'all:template',
GetSkill: 'read:skill',
AllSkill: 'all:skill'
}

const AllAuthenticatedUsers = [UserRoles.admin, UserRoles.administrator, UserRoles.topcoderUser, UserRoles.copilot]

module.exports = {
Scopes,
AllAuthenticatedUsers
}
Loading