Skip to content
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

Sprint 4 PR #394

Merged
merged 404 commits into from
Dec 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
404 commits
Select commit Hold shift + click to select a range
26fcd0f
fixing lint issues
codyseibert Dec 10, 2018
5e42bb3
fixing reference error
codyseibert Dec 10, 2018
0a5f557
Merge pull request #283 from flexion/license-update
sadlerw Dec 10, 2018
7e77411
Merge pull request #282 from flexion/task/CA_37_verify_response_objects
codyseibert Dec 10, 2018
3ab959d
fix incorrect path
Dec 10, 2018
fdfd806
Merge pull request #284 from flexion/111-views
kkoskelin Dec 10, 2018
02d4d0f
refactor of Documents into Case
sadlerw Dec 10, 2018
a250e48
adding tabs
Dec 10, 2018
64f23e9
moving state
Dec 10, 2018
30b89db
adding a toJSON recursive function to convert to json
codyseibert Dec 10, 2018
9470a72
view refactoring
Dec 10, 2018
682af05
view refactoring
Dec 10, 2018
af89d7b
Updated table styling
kkoskelin Dec 10, 2018
8050b76
adding pa11y URLs for respondent
kkoskelin Dec 10, 2018
af05517
added file document button
Dec 10, 2018
547ce03
Merge branch '111-views' of https://github.com/flexion/ef-cms into 11…
Dec 10, 2018
152ccf5
Merge branch 'develop' into 111-views
Dec 10, 2018
e0d64fc
no longer needed
Dec 10, 2018
83e311c
Updated header text color per figma
kkoskelin Dec 10, 2018
a33eb32
add specs
sadlerw Dec 10, 2018
d5362f4
bug fix, splelling fix
Dec 10, 2018
7d6ba3e
Merge branch 'develop' into 111_refactor_documents
sadlerw Dec 10, 2018
5d5de94
fix test
Dec 10, 2018
f7036ac
move messages
Dec 10, 2018
9f9664f
adding aria functionality to tab interface
kkoskelin Dec 10, 2018
3541dfd
tweaks for Natalie
Dec 10, 2018
0a6dff9
Merged 111-views into local
kkoskelin Dec 10, 2018
c518248
Merge branch '111-views' of github.com:flexion/ef-cms into 111-views
kkoskelin Dec 10, 2018
b52d777
added current tab
Dec 10, 2018
36f83d8
Merge branch '111-views' of https://github.com/flexion/ef-cms into 11…
Dec 10, 2018
a2dd5da
scss listing repairs
kkoskelin Dec 10, 2018
8d0ac56
Merge branch '111-views' of github.com:flexion/ef-cms into 111-views
kkoskelin Dec 10, 2018
41a34c6
stylint fixes
Dec 10, 2018
0b7df63
Merge branch '111-views' of https://github.com/flexion/ef-cms into 11…
Dec 10, 2018
9bc6e01
upgrades
Dec 10, 2018
ebb3a12
p label
Dec 10, 2018
b96a9af
no longer needed
Dec 10, 2018
9e85b63
remove toJSON on caeInitiator since it contains a blob
sadlerw Dec 10, 2018
17848be
Update for pa11y and tab-panels
kkoskelin Dec 10, 2018
5afb7ba
Merge branch '111-views' of github.com:flexion/ef-cms into 111-views
kkoskelin Dec 10, 2018
3bff192
increased timeout
kkoskelin Dec 10, 2018
2683956
lint
sadlerw Dec 10, 2018
4a09e7f
Merge pull request #285 from flexion/111-views
sadlerw Dec 10, 2018
edc7cb6
attach respondent info to case
codyseibert Dec 10, 2018
bb086bf
rename to respondentBarNumber
codyseibert Dec 10, 2018
2c57fd7
Merge pull request #286 from flexion/111_refactor_documents
sadlerw Dec 10, 2018
740949e
Merge branch 'develop' into task/111_associate_respondent_with_case
codyseibert Dec 10, 2018
1612355
Merge pull request #287 from flexion/task/111_associate_respondent_wi…
sadlerw Dec 10, 2018
0079f87
refactor petitioner case detail view
Dec 11, 2018
94379e2
Merge branch 'develop' into 111-views
Dec 11, 2018
e2ab6e3
refactoring to put joi validator into utilities; removing entity that…
codyseibert Dec 11, 2018
558e8cd
added public dashboard
Dec 11, 2018
0508c2c
public "user"
Dec 11, 2018
a26169e
added new case detail views
Dec 11, 2018
abc1bbb
renaming the lambda files
codyseibert Dec 11, 2018
ab269c3
appending .interactor after the use cases
codyseibert Dec 11, 2018
06310e9
Merge pull request #289 from flexion/task/CA_37_utilities
sadlerw Dec 11, 2018
0517332
Merge pull request #290 from flexion/task/53_CA_rename_files_better
codyseibert Dec 11, 2018
8b60727
Merge branch 'develop' into task/CA_53_rename_use_cases
codyseibert Dec 11, 2018
c5065c1
Merge pull request #291 from flexion/task/CA_53_rename_use_cases
codyseibert Dec 11, 2018
2825489
aws doesnt allow multiple periods in file name
codyseibert Dec 11, 2018
551acf2
Merge pull request #292 from flexion/task/53_CA_lambda_rename
codyseibert Dec 11, 2018
487cda0
respondent dashboard
Dec 11, 2018
3132553
Merge branch 'develop' into 111-views
Dec 11, 2018
2d25faf
not needed
Dec 11, 2018
31f61a2
remove status
Dec 11, 2018
4d8e500
Updating license string
kkoskelin Dec 11, 2018
bfea8a3
working on File Document
Dec 11, 2018
28459ff
fixed tests
Dec 11, 2018
46cb189
fix tests
Dec 11, 2018
1d438bf
view user that uploaded document
Dec 11, 2018
7c29f6b
refresh case on submit
Dec 11, 2018
75cc324
not needed yet
Dec 11, 2018
22f785d
progress spinner
kkoskelin Dec 11, 2018
208f30d
Aligning cypress with page updates
kkoskelin Dec 11, 2018
4aecfe8
writing some extra tests over the createCase interactor
codyseibert Dec 11, 2018
dc058f3
removing lambda tests
codyseibert Dec 11, 2018
63db9dd
Merge pull request #288 from flexion/111-views
ericsorenson Dec 11, 2018
a599b87
writing coverage over the gateway helper
codyseibert Dec 11, 2018
8a84656
110 changes from review
sadlerw Dec 11, 2018
47e669c
110 changes from review
sadlerw Dec 11, 2018
a04b899
Merge pull request #293 from flexion/111-license-update
sadlerw Dec 11, 2018
c29291a
Spinner design WIP
kkoskelin Dec 11, 2018
c469fc7
Merge branch 'develop' into 110_review_changes
sadlerw Dec 11, 2018
eaa3bdf
110 changes from review
sadlerw Dec 11, 2018
02ca683
110 changes from review
sadlerw Dec 11, 2018
2d39aad
Merge pull request #294 from flexion/task/45_CA_remove_humble_tests
codyseibert Dec 11, 2018
9872519
Merge pull request #295 from flexion/110_review_changes
ericsorenson Dec 11, 2018
c38ffef
Added document type dropdown
Dec 11, 2018
95da014
set dropdown value
Dec 11, 2018
d18ec88
Respondent Dashboard
kkoskelin Dec 11, 2018
1c527dd
Addressing css linting
kkoskelin Dec 11, 2018
59b2b57
css listing adjustments
kkoskelin Dec 11, 2018
0e54563
Merge pull request #297 from flexion/111-views
ericsorenson Dec 11, 2018
030397c
add sequence to file names
Dec 11, 2018
7910d25
Merge branch 'develop' into 111-views
Dec 11, 2018
76f9a22
Updating color via css preferences
kkoskelin Dec 11, 2018
88d336a
renaming sequences
Dec 11, 2018
578cc34
lint
kkoskelin Dec 11, 2018
7009020
Additional pa11y checks
kkoskelin Dec 11, 2018
f6b3325
router sequence name fix
Dec 12, 2018
23fdccb
rename actions
Dec 12, 2018
4c5d3a2
update state modification technique
Dec 12, 2018
7b35606
use the docket Number
Dec 12, 2018
2f21c48
Update package-lock.json
Dec 12, 2018
1604cc9
Merge pull request #300 from flexion/111-views
ericsorenson Dec 12, 2018
b48b8cb
Merge pull request #298 from flexion/111-progress-indicator
kkoskelin Dec 12, 2018
ead1ede
Merge branch 'develop' of github.com:flexion/ef-cms into 111-irs-dash…
kkoskelin Dec 12, 2018
6d82653
add view and backend integration
sadlerw Dec 12, 2018
57a6c4e
upgrades
Dec 12, 2018
5e23ebf
Merge branch 'develop' into 111-views
Dec 12, 2018
ffad95b
Form a11y addressing pa11y errors
kkoskelin Dec 12, 2018
17e615f
Merge pull request #299 from flexion/111-irs-dashboard
kkoskelin Dec 12, 2018
d91a886
use expect
Dec 12, 2018
62566a0
use expect
Dec 12, 2018
352e167
current progress
Dec 12, 2018
be602ee
add document status stuff
sadlerw Dec 12, 2018
63a23c4
Merge branch 'develop' into 111_add_respondent
codyseibert Dec 12, 2018
bd2f545
Test setup within beforeAll blocks
kkoskelin Dec 12, 2018
6813f0d
run sequentially
Dec 12, 2018
7a0bd9a
Merge branch '111-views' of https://github.com/flexion/ef-cms into 11…
Dec 12, 2018
7a45c11
updating eslintrc for jest
kkoskelin Dec 12, 2018
e765c3e
Merge branch '111-views' of github.com:flexion/ef-cms into 111-views
kkoskelin Dec 12, 2018
360affe
Merge branch 'develop' into 111-views
Dec 12, 2018
f13a031
Updated package-lock
kkoskelin Dec 12, 2018
38cb0df
Merge branch '111-views' of https://github.com/flexion/ef-cms into 11…
Dec 12, 2018
a322299
Merge branch '111-views' of https://github.com/flexion/ef-cms into 11…
Dec 12, 2018
5d9ef57
refactoring
codyseibert Dec 12, 2018
bb17698
test pay.gov update and send to IRS
Dec 12, 2018
8f0600d
test uploading answer
Dec 12, 2018
5380178
upgrades
Dec 12, 2018
1e7ca6c
fixed test bugs
Dec 12, 2018
20b8bd4
adding an additional use case for uploading a stipulated decision
codyseibert Dec 12, 2018
94e827d
dry up views
sadlerw Dec 12, 2018
c7007e9
test get document
Dec 12, 2018
086064a
fixing seed data
codyseibert Dec 12, 2018
fa590b8
added pa11y wait
Dec 12, 2018
99ff819
addressing some PR comments
codyseibert Dec 12, 2018
a42845d
removing fragment
codyseibert Dec 12, 2018
e69ebfb
addressing Erics comments
codyseibert Dec 12, 2018
118fb5f
Merge pull request #304 from flexion/111_add_respondent
codyseibert Dec 12, 2018
f8f5740
Merge pull request #301 from flexion/111-views
sadlerw Dec 12, 2018
8481159
Merge branch 'develop' into task/112_upload_stipulated_decision
codyseibert Dec 12, 2018
0f1c8b0
112 fix filedby bugs
sadlerw Dec 13, 2018
fa77ef7
Delete fileDocumentJourney.test.js
Dec 13, 2018
cde1c87
112 fix filedby bugs
sadlerw Dec 13, 2018
03998c1
remove failing pa11y
sadlerw Dec 13, 2018
f534174
upgrades
Dec 13, 2018
820ff1e
boost timeouts
Dec 13, 2018
b2c0cc9
adding mock data
codyseibert Dec 13, 2018
7808121
Merge pull request #352 from flexion/111-duplicate-tests
sadlerw Dec 13, 2018
c3b5ff8
move action required
Dec 13, 2018
93fd114
Merge branch 'develop' into 112_bug_fixes
codyseibert Dec 13, 2018
0341f1e
Merge branch 'develop' into 111-duplicate-tests
Dec 13, 2018
994272f
Merge pull request #356 from flexion/111-duplicate-tests
ericsorenson Dec 13, 2018
81abc49
fixing package log
codyseibert Dec 13, 2018
77364c9
fix text alignment on smaller screens
Dec 13, 2018
d222445
don't indent the file document widget
Dec 13, 2018
12470ca
Merge branch 'develop' into task/112_upload_stipulated_decision
codyseibert Dec 13, 2018
13acea0
fix pa11y
sadlerw Dec 13, 2018
b24f4d0
Merge pull request #305 from flexion/112_bug_fixes
sadlerw Dec 13, 2018
a1a7c2b
Merge pull request #358 from flexion/111-design-tweaks
sadlerw Dec 13, 2018
f0b53ce
add bar number to view and seed
sadlerw Dec 13, 2018
9c7f59d
refactoring to keep stuff dry
codyseibert Dec 13, 2018
b63a995
update margin on icon
Dec 13, 2018
b5805f5
no longer needed
Dec 13, 2018
17b2faa
aria enhancements
kkoskelin Dec 13, 2018
c73d828
added captioned h1
Dec 13, 2018
32892b5
resized headers, button padding
Dec 13, 2018
18e82ff
concatenate in computed
sadlerw Dec 13, 2018
b2fafbf
spec
sadlerw Dec 13, 2018
6859241
spec
sadlerw Dec 13, 2018
6ff5cb4
increae padding for header nav
Dec 13, 2018
2f15dce
address
sadlerw Dec 13, 2018
eaebfb6
reformat party info
Dec 13, 2018
79b1ac3
Updated pa11y config
kkoskelin Dec 13, 2018
7109057
adding the diff logic for workItems
codyseibert Dec 13, 2018
4c4c2f6
shrink margins
Dec 13, 2018
6214c7a
a little more
Dec 13, 2018
1537f3c
Merge pull request #370 from flexion/111-design-tweaks
ericsorenson Dec 13, 2018
80344f3
Merge branch 'develop' of github.com:flexion/ef-cms into 111-a11y-upd…
kkoskelin Dec 13, 2018
72b6dac
some changes
sadlerw Dec 13, 2018
0a4a4f6
Merge branch 'develop' into 111_add_bar_number
kkoskelin Dec 13, 2018
46566ee
notifications column not needed
Dec 13, 2018
e51598b
Merge branch 'develop' into 111-design-tweaks
Dec 13, 2018
fbffa64
Merge pull request #369 from flexion/111_add_bar_number
kkoskelin Dec 13, 2018
8470f6d
Merge branch 'develop' into 111-a11y-updates
kkoskelin Dec 13, 2018
5507dc9
Merge pull request #372 from flexion/111-design-tweaks
kkoskelin Dec 13, 2018
7ea1dd7
Merge pull request #371 from flexion/111-a11y-updates
sadlerw Dec 13, 2018
bc5ad80
adding an additional cypress test
codyseibert Dec 13, 2018
7fa0e5b
Merge branch 'develop' into task/112_upload_stipulated_decision
codyseibert Dec 13, 2018
02375c3
condensing the application contexts in the UI to a single once since …
codyseibert Dec 13, 2018
ffaff44
fix attachDocument
sadlerw Dec 13, 2018
4db7e78
Merge pull request #303 from flexion/task/112_upload_stipulated_decision
sadlerw Dec 13, 2018
6ccc5b7
Merge branch 'develop' into task/condensing_into_single_application_c…
codyseibert Dec 13, 2018
e1cd216
fix appctx for prod
sadlerw Dec 13, 2018
0b0e04f
Merge pull request #374 from flexion/112_appctx_fix
sadlerw Dec 14, 2018
32ad64b
Merge branch 'develop' into task/condensing_into_single_application_c…
codyseibert Dec 14, 2018
e92c0e3
113 Lambdas and Interactor Skeletons
sadlerw Dec 14, 2018
0c8cf87
fixing fallback url
codyseibert Dec 14, 2018
e90e20f
fixing style in overrides
codyseibert Dec 14, 2018
bb85b8e
fixing syltes
codyseibert Dec 14, 2018
8c584b8
112 Petitioner document status
sadlerw Dec 14, 2018
784f620
Progress indicator updates
kkoskelin Dec 14, 2018
4194ae1
Merge pull request #373 from flexion/task/condensing_into_single_appl…
codyseibert Dec 14, 2018
d6435e2
Merge pull request #379 from flexion/113_lambdas
codyseibert Dec 14, 2018
860f04d
Merge pull request #380 from flexion/112_fix_petitioner_doc_status
codyseibert Dec 14, 2018
45b6749
Merge pull request #381 from flexion/progress-indicator-adjustments
codyseibert Dec 14, 2018
ddad4fd
initial work for work items persistence methods
codyseibert Dec 14, 2018
73bf06e
fixing some errors
codyseibert Dec 14, 2018
bc885d2
new users data
kkoskelin Dec 14, 2018
187b305
addressing pr comments
codyseibert Dec 14, 2018
ec22148
User and dashboard initial setup
kkoskelin Dec 14, 2018
95748e8
Fixing user faux data
kkoskelin Dec 14, 2018
f65296d
Merge pull request #387 from flexion/113-users-and-dashboards
kkoskelin Dec 14, 2018
7ef265d
more refactoring
codyseibert Dec 14, 2018
73f0d76
more changes
sadlerw Dec 14, 2018
b1153fd
fixing upload answer
codyseibert Dec 14, 2018
0933bea
work queue styling
kkoskelin Dec 14, 2018
80a187d
add stip decision
sadlerw Dec 15, 2018
7c7cb14
merge from develop
sadlerw Dec 15, 2018
11c5627
assigneName
sadlerw Dec 15, 2018
661994b
Merge pull request #385 from flexion/task/113_work_items
sadlerw Dec 15, 2018
45d62a4
merge from develop
sadlerw Dec 15, 2018
9647b8f
Merge branch 'develop' into 113-work-queue
sadlerw Dec 15, 2018
1da77a0
merge from develop
sadlerw Dec 15, 2018
c01e22a
fix coverage
sadlerw Dec 15, 2018
7d2e33b
Merge pull request #388 from flexion/113-work-queue
sadlerw Dec 15, 2018
d77da6e
addressing some other comments from doug
codyseibert Dec 15, 2018
f875c18
Merge pull request #389 from flexion/task/more_refactoring
sadlerw Dec 17, 2018
22bd946
upgrades
Dec 17, 2018
b2cc811
formattedSearchParams no longer needed
Dec 17, 2018
6f8b335
cleanup
Dec 17, 2018
bf1e28d
rename business to shared
codyseibert Dec 17, 2018
32198fb
happy path
Dec 17, 2018
187bef0
fixing coverage path
codyseibert Dec 17, 2018
74f04ba
fixing coverage path
codyseibert Dec 17, 2018
dbb5351
must be a race condition occuring in the cerebral tests
codyseibert Dec 17, 2018
9938e6d
Merge pull request #395 from flexion/task/fixing_coverage_path
codyseibert Dec 17, 2018
b975fe7
ignoring the humble objects from coverage checks in sonar
codyseibert Dec 17, 2018
27b2390
case detail view helper
Dec 17, 2018
0b9d4c9
Merge pull request #396 from flexion/task/ignore_humble_objects_coverage
codyseibert Dec 17, 2018
088f585
cleaning up the readmes some
codyseibert Dec 17, 2018
b05f23d
some additional exclusion fixes
codyseibert Dec 17, 2018
17ac33b
added test coverage
Dec 17, 2018
9532951
Merge pull request #398 from flexion/task/update_readme
codyseibert Dec 17, 2018
ebaedd7
upgrade
Dec 17, 2018
05db54a
Merge branch 'develop' into sprint-4-demo-prep
Dec 17, 2018
f4eb7a6
Merge pull request #392 from flexion/sprint-4-demo-prep
ericsorenson Dec 17, 2018
59af714
Merge pull request #399 from flexion/develop
codyseibert Dec 17, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ efcms-service/.nyc_output
efcms-service/.serverless
efcms-service/coverage
efcms-service/terraform/main/.terraform
business/node_modules
business/coverage
shared/node_modules
shared/coverage
management/management/.terraform
.git
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.DS_Store
.scannerwork/
.terraform/
shared/coverage
shared/node_modules
web-client/cypress/screenshots
web-client/node_modules
business/coverage
business/node_modules
.DS_Store
web-client/reports
web-client/tests_output/
4 changes: 2 additions & 2 deletions Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ RUN git config --global user.email "blank@example.com" && \
git add tmp.txt && \
git commit -m 'rev'

COPY business/package.json /home/app/business/package.json
RUN cd /home/app/business && npm i --only=production
COPY shared/package.json /home/app/shared/package.json
RUN cd /home/app/shared && npm i --only=production

COPY efcms-service/package.json /home/app/efcms-service/package.json
RUN cd /home/app/efcms-service && npm i
Expand Down
21 changes: 0 additions & 21 deletions Dockerfile.cypress

This file was deleted.

4 changes: 2 additions & 2 deletions Dockerfile.main
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ RUN git config --global user.email "blank@example.com" && \
git add tmp.txt && \
git commit -m 'rev'

COPY business/package.json /home/app/business/package.json
RUN cd /home/app/business && npm i --only=production
COPY shared/package.json /home/app/shared/package.json
RUN cd /home/app/shared && npm i --only=production

COPY efcms-service/package.json /home/app/efcms-service/package.json
RUN cd /home/app/efcms-service && npm i
Expand Down
8 changes: 0 additions & 8 deletions Dockerfile.pa11y

This file was deleted.

6 changes: 3 additions & 3 deletions Dockerfile.run
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ RUN git config --global user.email "blank@example.com" && \

RUN CI=true npm install cypress

COPY business/package.json /home/app/business/package.json
RUN cd /home/app/business && npm i --only=production
COPY shared/package.json /home/app/shared/package.json
RUN cd /home/app/shared && npm i --only=production

COPY efcms-service/package.json /home/app/efcms-service/package.json
RUN cd /home/app/efcms-service && npm i
Expand All @@ -31,4 +31,4 @@ RUN cd /home/app/web-client && npm i

COPY . /home/app

CMD echo "please overwrite this command"
CMD echo "This container does not have a default command. Please use the ./docker-run.sh script instead to run the entire application"
4 changes: 2 additions & 2 deletions Dockerfile.shared
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ WORKDIR /home/app

RUN apt-get install -y shellcheck

COPY business/package.json /home/app/business/package.json
RUN cd /home/app/business && npm i
COPY shared/package.json /home/app/shared/package.json
RUN cd /home/app/shared && npm i

COPY . /home/app

Expand Down
27 changes: 23 additions & 4 deletions Dockerfile.web-client
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FROM cypress/base:8

WORKDIR /home/app

RUN echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list

RUN apt-get update

RUN apt-get install -y default-jre
RUN apt-get install -y -t jessie-backports openjdk-8-jdk

RUN apt-get install -yq git bash

Expand All @@ -20,20 +24,35 @@ RUN apt-get install -yq unzip wget
# RUN pip install --upgrade pip
RUN apt-get install -y awscli
# RUN pip install awscli==${AWS_CLI_VERSION}
#RUN pip install setuptools
#RUN pip install pylint

RUN apt-get install -y jq

RUN wget -q -O terraform_0.11.8_linux_amd64.zip https://releases.hashicorp.com/terraform/0.11.8/terraform_0.11.8_linux_amd64.zip && \
unzip -o terraform_0.11.8_linux_amd64.zip terraform

RUN cp terraform /usr/local/bin/

WORKDIR /home/app
RUN curl --insecure -OL 'https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip'
RUN mkdir sonar_scanner
RUN unzip -d sonar_scanner sonar-scanner-cli-3.2.0.1227-linux.zip
RUN mv sonar_scanner/* sonar_home
RUN rm -rf sonar_scanner sonar-scanner-cli-3.2.0.1227-linux.zip

ENV SONAR_RUNNER_HOME=/home/app/sonar_home
ENV PATH ${SONAR_RUNNER_HOME}/bin:$PATH

RUN sed -i 's/use_embedded_jre=true/use_embedded_jre=false/g' sonar_home/bin/sonar-scanner

RUN java -version

RUN CI=true npm install cypress

RUN apt-get install -y shellcheck

COPY business/package.json /home/app/business/package.json
RUN cd /home/app/business && npm i --only=production
COPY shared/package.json /home/app/shared/package.json
RUN cd /home/app/shared && npm i --only=production

COPY efcms-service/package.json /home/app/efcms-service/package.json
RUN cd /home/app/efcms-service && npm i
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pipeline {
stage('Shared') {
when {
expression {
return checkCommit('business')
return checkCommit('shared')
}
}
steps {
Expand Down
50 changes: 23 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Electronic Filing / Case Management System

An as-yet-unnamed project by the [U.S. Tax Court](https://ustaxcourt.gov/), creating an open-source EF-CMS. Work began in October 2018, and can be seen [in the staging branch](https://github.com/ustaxcourt/ef-cms/tree/staging). For background, see [the RFQ to procure agile software development services](https://github.com/ustaxcourt/case-management-rfq).

# Building Everything
If you'd like to run the same checks that run in Jenkins (except Sonarqube at the moment...) locally using docker containers, run the following:

`./build-all.sh`

This will run the lint, shellcheck, audit, build, test, cypress, cerebral tests, pa11y, etc over all the components.

# Running / Verifing the Project via Docker

Assuming you have Docker installed, The following command will spin up a docker container with the UI, API, local S3, local Dynamo, etc all running inside it:
Expand All @@ -10,42 +21,27 @@ You can access the dynamodb shell at http://localhost:8000/shell
You can access the dynamodb-admin ui at http://localhost:8001
You can access s3 local at http://localhost:9000

In order to kill that docker container, you will need to run the following command in separate terminal:

`./kill-docker-run.sh`

# Electronic Filing / Case Management System

An as-yet-unnamed project by the [U.S. Tax Court](https://ustaxcourt.gov/), creating an open-source EF-CMS. Work began in October 2018, and can be seen [in the staging branch](https://github.com/ustaxcourt/ef-cms/tree/staging). For background, see [the RFQ to procure agile software development services](https://github.com/ustaxcourt/case-management-rfq).

## Running this project locally
## Running this project locally without Docker

The EF-CMS is comprised of two components: the API and the UI. Each must be run in order to function.

### UI (Terminal A)
#### Prerequisites
- node v8.10.0
- npm 6.4.1

#### Setup

- `cd web-client`
- `npm i`

#### Running

- `cd web-client`
- `npm start`

### API (Terminal B)

#### Setup
Both the web-client and efcms-service share code that exists in the shared directory; therefore, before you can run either, you need to run an npm install inside the shared directory.

- `cd efcms-service`
- `npm i`
- `npm run install:dynamodb`
- `cd shared && npm i`
- `cd ../web-client && npm i`
- `cd ../efcms-service && npm i`

#### Running
#### Terminal A
- `cd web-client && npm start`

- `cd efcms-service`
- `npm start`
#### Terminal B
- `cd efcms-service && npm start`

## CI/CD Setup

Expand Down
12 changes: 9 additions & 3 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ The end result of this is not a dev, staging, or production website, but is inst
## Prerequisites

- [Install Terraform](https://www.terraform.io/downloads.html) locally. Terraform will build AWS infrastructure automatically.
- [Create an AWS account](https://portal.aws.amazon.com/gp/aws/developer/registration/). - [Install the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/installing.html) locally. - In [AWS Identity and Access Management](https://console.aws.amazon.com/iam/), create a user or role with administrator privileges (e.g. attach the `AdministratorAccess` policy). - [Configure the AWS CLI account](https://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html) on your local machine to use the role or user you just created in IAM.
- [Create an AWS account](https://portal.aws.amazon.com/gp/aws/developer/registration/).
- [Install the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/installing.html) locally.
- In [AWS Identity and Access Management](https://console.aws.amazon.com/iam/), create a user or role with administrator privileges (e.g. attach the `AdministratorAccess` policy).
- [Configure the AWS CLI account](https://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html) on your local machine to use the role or user you just created in IAM.
- Clone this GitHub repository locally.
- [Create a new GitHub account](https://github.com/join), with read-level access to the repository, which Jenkins will use to interact with GitHub. (GitHub describes these as “bot accounts” or “machine accounts,” and they are the exception to GitHub’s rule that accounts are intended for humans.)
- [Create a SonarCloud account](https://sonarcloud.io/). SonarCloud will be used to tests each build. - [Create a new SonarCloud organization](https://sonarcloud.io/create-organization).
- [Create a SonarCloud account](https://sonarcloud.io/). SonarCloud will be used to tests each build.
- [Create a new SonarCloud organization](https://sonarcloud.io/create-organization).
- [Create a token](https://sonarcloud.io/account/security) that Jenkins can use to interact with SonarCloud. (This will be referred to as `SONAR_TOKEN` when setting up Jenkins.)
- There are two sub-projects to the EF-CMS — the front-end (the UI) and the back-end (the API). Each is handled separately by Jenkins and SonarCloud. - [Create a project and project key](https://sonarcloud.io/projects/create?manual=true) for the UI. (This will be referred to as `UI_SONAR_TOKEN` when setting up Jenkins.) - [Create a project and project key](https://sonarcloud.io/projects/create?manual=true) for the API. (This will be referred to as `API_SONAR_TOKEN` when setting up Jenkins.)
- There are two sub-projects to the EF-CMS — the front-end (the UI) and the back-end (the API). Each is handled separately by Jenkins and SonarCloud.
- [Create a project and project key](https://sonarcloud.io/projects/create?manual=true) for the UI. (This will be referred to as `UI_SONAR_TOKEN` when setting up Jenkins.)
- [Create a project and project key](https://sonarcloud.io/projects/create?manual=true) for the API. (This will be referred to as `API_SONAR_TOKEN` when setting up Jenkins.)

## Setup Steps

Expand Down
44 changes: 44 additions & 0 deletions build-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash -e
# TODO: Enable sonarqube / cloud related tasks ....

#if [ -z ${SHARED_SONAR_KEY+x} ]; then echo "SHARED_SONAR_KEY must be set to run build-all.sh"; exit 1; fi
#if [ -z ${SONAR_ORG+x} ]; then echo "SONAR_ORG must be set to run build-all.sh"; exit 1; fi
#if [ -z ${SHARED_SONAR_TOKEN+x} ]; then echo "SHARED_SONAR_TOKEN must be set to run build-all.sh"; exit 1; fi
#if [ -z ${API_SONAR_TOKEN+x} ]; then echo "API_SONAR_TOKEN must be set to run build-all.sh"; exit 1; fi
#if [ -z ${UI_SONAR_TOKEN+x} ]; then echo "UI_SONAR_TOKEN must be set to run build-all.sh"; exit 1; fi

./docker-init.sh

# shared
pushd shared
./docker-init.sh
./docker-shellcheck.sh
./docker-audit.sh
./docker-lint.sh
CONTAINER_NAME=shared-test ./docker-test.sh
#SONAR_KEY=${SHARED_SONAR_KEY} branch_name=local SONAR_ORG=${SONAR_ORG} SONAR_TOKEN=${SHARED_SONAR_TOKEN} ./docker-sonarqube.sh
popd

# web-client
pushd web-client
./docker-init.sh
./docker-shellcheck.sh
./docker-audit.sh
./docker-lint.sh
#sh "SONAR_KEY=${UI_SONAR_KEY} branch_name=${branch_name} SONAR_ORG=${SONAR_ORG} SONAR_TOKEN=${UI_SONAR_TOKEN} ./docker-sonarqube.sh"
popd

# efcms-service
pushd efcms-service
./docker-init.sh
./docker-shellcheck.sh
./docker-audit.sh
./docker-lint.sh
CONTAINER_NAME=efcmstest ./docker-test.sh
#SONAR_KEY=${API_SONAR_KEY} branch_name=${branch_name} SONAR_ORG=${SONAR_ORG} SONAR_TOKEN=${API_SONAR_TOKEN} ./docker-sonarqube.sh
popd

# integration tests
./docker-pa11y.sh
./docker-cerebral.sh
./docker-cypress.sh
11 changes: 0 additions & 11 deletions business/Dockerfile.audit

This file was deleted.

14 changes: 0 additions & 14 deletions business/Dockerfile.lint

This file was deleted.

44 changes: 0 additions & 44 deletions business/Dockerfile.sonarqube

This file was deleted.

11 changes: 0 additions & 11 deletions business/Dockerfile.test

This file was deleted.

Loading