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 5 #577

Closed
wants to merge 365 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
365 commits
Select commit Hold shift + click to select a range
440cf58
Merge branch 'develop' into 407-view
codyseibert Dec 26, 2018
9d9dec6
E2e additions / updates
kkoskelin Dec 26, 2018
5ebfb0c
hooking the assignee options to a use case
codyseibert Dec 26, 2018
21d8df8
feedback from Kristen
ericsorenson Dec 26, 2018
ec58ebf
Merge pull request #487 from flexion/407-view
ericsorenson Dec 26, 2018
0d636a7
Update custom.scss
ericsorenson Dec 26, 2018
fb96f60
updating checks
kkoskelin Dec 26, 2018
614f9bf
ability to toggle between the sections
codyseibert Dec 26, 2018
83acb73
Merge branch 'develop' into task/407_options_from_use_case
codyseibert Dec 26, 2018
04ee875
Merge pull request #489 from flexion/task/407_options_from_use_case
codyseibert Dec 26, 2018
8f81513
hook in assign button
codyseibert Dec 26, 2018
6a4dc5b
fixing tests
codyseibert Dec 26, 2018
a0f3916
fixing minor bug when assigning a work item to self
codyseibert Dec 27, 2018
f594649
removing console log
codyseibert Dec 27, 2018
aa53580
Merge branch 'develop' into task/407_options_from_use_case
codyseibert Dec 27, 2018
b2e685a
removing unused sequence; coverage increase
codyseibert Dec 27, 2018
028d0f0
Merge pull request #490 from flexion/task/407_options_from_use_case
codyseibert Dec 27, 2018
5ecd0be
Merge branch 'develop' into 407-view
ericsorenson Dec 27, 2018
ea4cebd
Merge branch 'develop' into 407-view
ericsorenson Dec 27, 2018
cf4dd92
fixing caseStatus; displaying length of queue
codyseibert Dec 27, 2018
662b010
show / hide sendToBar
ericsorenson Dec 27, 2018
912e063
Merge pull request #491 from flexion/task/407_options_from_use_case
codyseibert Dec 27, 2018
95e6fc7
removing the due column from the tables
codyseibert Dec 27, 2018
f40b8c9
Merge pull request #492 from flexion/407-view
ericsorenson Dec 27, 2018
dd41e31
Merge pull request #494 from flexion/task/407_removing_due
codyseibert Dec 27, 2018
9912a51
moving logic to helper
ericsorenson Dec 27, 2018
978ca96
Merge branch 'develop' of github.com:flexion/ef-cms into e2e-additions
kkoskelin Dec 27, 2018
63414bb
upgrades
ericsorenson Dec 27, 2018
f285568
Merge branch 'develop' into 407-view
ericsorenson Dec 27, 2018
9445bc6
Removing redundant file
kkoskelin Dec 27, 2018
cdef0f2
mild refactoring
kkoskelin Dec 27, 2018
7f80cdf
bug fixes
ericsorenson Dec 27, 2018
089a03e
fixing a bug related to self assigning; adding a method to export the…
codyseibert Dec 27, 2018
ca0dfb5
Accessible tab buttons, tab panels
kkoskelin Dec 27, 2018
d9c29d6
clearing the selected work items after the send button is clicked
codyseibert Dec 27, 2018
f7feed5
ignoring helper script
codyseibert Dec 27, 2018
6a500c2
Merge pull request #496 from flexion/407-view
ericsorenson Dec 27, 2018
979d5ef
Merge branch 'develop' into task/407_fixing_bug_related_to_self_assig…
codyseibert Dec 27, 2018
c30d261
Merge pull request #497 from flexion/task/407_fixing_bug_related_to_s…
codyseibert Dec 27, 2018
d8330ad
make test use real PDF data
kkoskelin Dec 27, 2018
ea1f882
Merge from develop
kkoskelin Dec 27, 2018
1617c7e
Merge branch 'develop' of github.com:flexion/ef-cms into e2e-additions
kkoskelin Dec 27, 2018
9a356e9
checkbox fix
ericsorenson Dec 27, 2018
3c663d9
Merge branch 'develop' into 407-view
ericsorenson Dec 27, 2018
1b43da9
refactor get users
codyseibert Dec 27, 2018
6485b4a
revert checked change
codyseibert Dec 27, 2018
54cad05
Merge pull request #500 from flexion/407-view
ericsorenson Dec 27, 2018
2216795
make cypress wait for particular table, not just any table
kkoskelin Dec 27, 2018
c458391
Develop merge
kkoskelin Dec 27, 2018
7e8b50b
Merge branch 'develop' of github.com:flexion/ef-cms into e2e-additions
kkoskelin Dec 27, 2018
e5bf1f0
show time if today
ericsorenson Dec 27, 2018
6536da4
Merge branch 'develop' into 407-view
ericsorenson Dec 27, 2018
fa8aa3e
don't need to call moment twice
ericsorenson Dec 27, 2018
dafc7fb
Merge pull request #501 from flexion/407-view
ericsorenson Dec 27, 2018
d7febac
Merge pull request #495 from flexion/e2e-additions
kkoskelin Dec 27, 2018
90ccbf4
Merge branch 'develop' of github.com:flexion/ef-cms into 407-section-…
kkoskelin Dec 27, 2018
0da863a
Merge branch 'develop' into task/407_refactor_get_users
ericsorenson Dec 27, 2018
19b94b8
bump timeout in case of lambda cold-start
kkoskelin Dec 27, 2018
0b79999
move axios to applicationContext
ericsorenson Dec 27, 2018
e7e3a1b
Please
kkoskelin Dec 27, 2018
caf7767
force jenkins run
codyseibert Dec 27, 2018
05541ed
additional urls for pa11y-checks
kkoskelin Dec 27, 2018
b526a6d
Merge pull request #498 from flexion/407-section-work-queue
kkoskelin Dec 27, 2018
aaefe71
NPM package updates
kkoskelin Dec 27, 2018
520881e
added missing context parameter
ericsorenson Dec 28, 2018
baf3111
Merge pull request #502 from flexion/407-view
ericsorenson Dec 28, 2018
459a6ed
Merge pull request #503 from flexion/npm-updates-407
kkoskelin Dec 28, 2018
1ce7f39
Merge branch 'develop' of github.com:flexion/ef-cms into task/407_ref…
kkoskelin Dec 28, 2018
8deab07
unselected tab should be 500
ericsorenson Dec 28, 2018
c19afff
Merge branch 'develop' into 407-view
ericsorenson Dec 28, 2018
4d34860
remove veritcal padding
ericsorenson Dec 28, 2018
f097c4e
don't show counts in tabs
ericsorenson Dec 28, 2018
f309a47
Merge pull request #499 from flexion/task/407_refactor_get_users
ericsorenson Dec 28, 2018
1d30ef9
Merge branch 'develop' into 407-view
ericsorenson Dec 28, 2018
25ed5a2
Merge pull request #504 from flexion/407-view
ericsorenson Dec 28, 2018
5dd4619
upgrades
ericsorenson Dec 28, 2018
0d2c314
Updates for table accessibility
kkoskelin Dec 28, 2018
dd1aa7a
sort section work queue
ericsorenson Dec 28, 2018
6127e54
Merge pull request #505 from flexion/407-view
ericsorenson Dec 28, 2018
d3d15e6
additional a11y checks for actions-bar for docket clerk
kkoskelin Dec 28, 2018
3a1ed67
Remove screen capture step from actions
kkoskelin Dec 28, 2018
9903eb6
Merge branch 'develop' of github.com:flexion/ef-cms into a11y-enhance…
kkoskelin Dec 28, 2018
d1ff13d
refresh after submit
ericsorenson Dec 28, 2018
f42c198
Merge branch 'develop' into 407-view
ericsorenson Dec 28, 2018
b3deb92
update of table selector
kkoskelin Dec 28, 2018
c422a2c
Merge pull request #507 from flexion/407-view
ericsorenson Dec 28, 2018
57cf373
Increased timeout
kkoskelin Dec 28, 2018
8d1aa96
fixed missing border, added new font weights
ericsorenson Dec 28, 2018
fb97a28
Merge pull request #506 from flexion/a11y-enhancements
ericsorenson Dec 28, 2018
1dc209e
fix conflicts
ericsorenson Dec 28, 2018
2eec3e8
Merge pull request #508 from flexion/407-view
ericsorenson Dec 28, 2018
199c2bf
invert dependency on S3
ericsorenson Dec 28, 2018
7072a4b
Merge branch 'develop' into sprint4-comments-addressed
codyseibert Dec 31, 2018
8f272ac
code merge issue
codyseibert Dec 31, 2018
6a55d13
Merge pull request #512 from flexion/sprint4-comments-addressed
codyseibert Dec 31, 2018
955a87d
initial work on the pending messages on the case detail
codyseibert Dec 31, 2018
f5b7d1f
fixing lint
codyseibert Dec 31, 2018
cfb1b8f
adding first test scenario
codyseibert Dec 31, 2018
b642ef8
Merge pull request #509 from flexion/Invert-dependency-on-S3-client
ericsorenson Dec 31, 2018
8777fd3
Merge pull request #518 from flexion/task/406_case_detail_show_messages
codyseibert Dec 31, 2018
9642f69
added getUniqueId to application Context
ericsorenson Dec 31, 2018
7542f89
Merge branch 'develop' into Invert-dependency-on-S3-client
ericsorenson Dec 31, 2018
50d63fb
initial work on refactoring the design of the document detail page
codyseibert Dec 31, 2018
9c2498f
fix lint
sadlerw Jan 2, 2019
43ad116
toRawObject is more descriptive
ericsorenson Jan 2, 2019
8ae6a4a
Merge pull request #519 from flexion/Invert-dependency-on-S3-client
ericsorenson Jan 2, 2019
34f1457
increase pa11y wait
sadlerw Jan 2, 2019
e7e9732
adding dynamo client to application context
ericsorenson Jan 2, 2019
b37d0c6
fixing pa11y
codyseibert Jan 2, 2019
2e3b6d4
use the application context to get the dynamoDB client
ericsorenson Jan 2, 2019
f138e59
split up the forward form by workItem so many can be forwarded at once
codyseibert Jan 2, 2019
051bb2b
get the dynamo client from the application context
ericsorenson Jan 2, 2019
f47fb04
fix tests
ericsorenson Jan 2, 2019
b5246f6
complete work item initial commit
sadlerw Jan 2, 2019
8ae431c
fixing coverage
ericsorenson Jan 2, 2019
cf16f44
fixing to allow multiple work items to be completed at once if needed
codyseibert Jan 2, 2019
b6bc00d
add coverage
ericsorenson Jan 2, 2019
ec96fe8
hide completed work items
codyseibert Jan 2, 2019
c643f0f
upgrades
ericsorenson Jan 2, 2019
68ce1e8
covering the test scenario to make sure the work item appears in all …
codyseibert Jan 2, 2019
583b134
test fixes
ericsorenson Jan 2, 2019
111ed4a
Merge pull request #521 from flexion/Invert-dependency-on-S3-client
ericsorenson Jan 2, 2019
6f22527
Merge branch 'develop' into task/406_document_details
ericsorenson Jan 2, 2019
267dfe1
addressing comments
ericsorenson Jan 2, 2019
382ec58
no longer needed
ericsorenson Jan 2, 2019
88aa50d
should be a button
ericsorenson Jan 2, 2019
4ec863f
reverted change
ericsorenson Jan 2, 2019
0be5aea
adding more journey tests
codyseibert Jan 2, 2019
12548ea
divs to buttons, fix pa11y
ericsorenson Jan 2, 2019
e958021
Merge branch 'develop' into 406_complete_workitem
codyseibert Jan 2, 2019
8a94c59
fixing cypress test
codyseibert Jan 2, 2019
ab4031f
Update pa11y element refs
kkoskelin Jan 2, 2019
72e5b0c
Merge pull request #520 from flexion/task/406_document_details
codyseibert Jan 2, 2019
025bb81
Merge branch 'develop' into 406_complete_workitem
codyseibert Jan 2, 2019
2e55d90
fixing merge conflict issue
codyseibert Jan 2, 2019
69e0286
merge from develop
sadlerw Jan 2, 2019
2f745da
Merge remote-tracking branch 'origin/406_complete_workitem' into 406_…
sadlerw Jan 2, 2019
0d02274
merge from develop
sadlerw Jan 2, 2019
31025ce
remove messages message
sadlerw Jan 2, 2019
4376506
lint fix
sadlerw Jan 2, 2019
5694f36
revert back to docket-record id selector
codyseibert Jan 3, 2019
d431c77
Merge branch '406_complete_workitem' of https://github.com/flexion/ef…
codyseibert Jan 3, 2019
46a0c5a
Merge pull request #533 from flexion/406_complete_workitem
codyseibert Jan 3, 2019
7f20d7c
refactoring sass and updating from Figma
ericsorenson Jan 3, 2019
4b1f59a
Merge branch 'develop' into pattern-library
ericsorenson Jan 3, 2019
bd05de2
fixed lint issue
ericsorenson Jan 3, 2019
072101a
Adding hover-style to work queue rows
kkoskelin Jan 3, 2019
e17fe5c
Merge pull request #536 from flexion/pattern-library
ericsorenson Jan 3, 2019
2a3d179
refactoring
ericsorenson Jan 3, 2019
fea542f
Merge branch 'develop' into pattern-library
ericsorenson Jan 3, 2019
1e17b24
updated buttons and tables
ericsorenson Jan 3, 2019
661628b
tab hover
ericsorenson Jan 3, 2019
11cf6c6
added icon button
ericsorenson Jan 3, 2019
93068db
tweaking margins and padding
ericsorenson Jan 3, 2019
f9d7f5e
update spacing
ericsorenson Jan 3, 2019
b8f2498
show loading indicator on dashboard and case detail
ericsorenson Jan 3, 2019
ccdd170
fix cypress spec
ericsorenson Jan 3, 2019
85e3ed9
another cypress fix
ericsorenson Jan 3, 2019
7b4ed24
revert progress indicator after demo
ericsorenson Jan 3, 2019
a870a11
adding cards
ericsorenson Jan 3, 2019
a30d546
#406: clickable rows which expand messages
kkoskelin Jan 4, 2019
f4bf3a5
merge from develop
sadlerw Jan 4, 2019
c898fa4
more cypress fun
ericsorenson Jan 4, 2019
cafe1db
Style untangling
kkoskelin Jan 4, 2019
87e70ac
Merge pull request #537 from flexion/pattern-library
ericsorenson Jan 4, 2019
6eb0448
develop merge
kkoskelin Jan 4, 2019
664bec6
creating a new message on the work items after they get assigned
codyseibert Jan 4, 2019
6b7630c
fixing tests
codyseibert Jan 4, 2019
4759c7d
#406 style updates per sigma
kkoskelin Jan 4, 2019
0c0faae
disable no-descending-specificity
ericsorenson Jan 4, 2019
6751db8
#406 a11y updates
kkoskelin Jan 4, 2019
ad0f1af
Merge branch '406-hover-expand' of github.com:flexion/ef-cms into 406…
kkoskelin Jan 4, 2019
2318504
406 Current Message and History Message on WorkItem
sadlerw Jan 4, 2019
d514f66
add spec
sadlerw Jan 4, 2019
8fdadd3
Merge pull request #540 from flexion/406-hover-expand
kkoskelin Jan 4, 2019
19ba00c
adding tests over interactor
codyseibert Jan 4, 2019
a46329e
Merge pull request #541 from flexion/task/406_create_message_for_assi…
codyseibert Jan 4, 2019
869393b
Merge pull request #543 from flexion/406_remove_current_message
codyseibert Jan 4, 2019
01781e7
upgrades
ericsorenson Jan 4, 2019
cb1eed3
Refactoring Work Queues to separate components
kkoskelin Jan 4, 2019
a1c0af1
406: utilize computed values
kkoskelin Jan 4, 2019
4d33771
formatting
ericsorenson Jan 4, 2019
e2d0066
406: expand messages for section work queue also
kkoskelin Jan 4, 2019
7de78b9
manual merge
ericsorenson Jan 4, 2019
fbf0154
Merge branch 'develop' into pattern-library
ericsorenson Jan 4, 2019
ff5ea0c
refactoring the forward use case logic
codyseibert Jan 4, 2019
ba31e29
fixing lint
codyseibert Jan 4, 2019
835ae4d
use semantic tags
ericsorenson Jan 4, 2019
edc01ca
#406: expand messages in section queue
kkoskelin Jan 4, 2019
2242567
406: politely announce action bar with voiceover
kkoskelin Jan 4, 2019
a4783b0
applying pattern library tweaks
ericsorenson Jan 4, 2019
8318e72
Merge pull request #545 from flexion/406-expandable-messages-queue
kkoskelin Jan 4, 2019
11ba867
removed empty class attributes
ericsorenson Jan 4, 2019
d7400f1
add check of the output file from artillery to look for error codes
sadlerw Jan 4, 2019
35aca68
Merge pull request #544 from flexion/task/406_refactor_forward_usecase
sadlerw Jan 4, 2019
efa020e
tweaks from review with Natalie
ericsorenson Jan 4, 2019
5d64217
fix shellcheck
sadlerw Jan 4, 2019
c28cefa
Merge pull request #546 from flexion/pattern-library
sadlerw Jan 4, 2019
a1b98cc
#406: updating keyboard and VO compatibility
kkoskelin Jan 4, 2019
f2a8a87
Merge with develop
kkoskelin Jan 4, 2019
014be36
Merge pull request #547 from flexion/exit_smoke_test
sadlerw Jan 5, 2019
8ab0d3e
Merge pull request #549 from flexion/406-a11y-tabpanels
sadlerw Jan 5, 2019
e658d91
more tweaks from pattern library
ericsorenson Jan 7, 2019
c97738a
406: provide instructions for IE11 users
kkoskelin Jan 7, 2019
8502277
406 state issue when completing items
sadlerw Jan 7, 2019
c634e66
Merge pull request #556 from flexion/406-pdf-readme
sadlerw Jan 7, 2019
1c814bb
Merge pull request #557 from flexion/406_completed_bug
codyseibert Jan 7, 2019
493dacf
adding actions to the sequences to reset the state before loading the…
codyseibert Jan 7, 2019
2a15142
no longer needed
ericsorenson Jan 7, 2019
b9f06fd
typo
codyseibert Jan 7, 2019
b134506
Merge branch 'develop' into pattern-library
ericsorenson Jan 7, 2019
ae5bc3d
comments addressed
ericsorenson Jan 7, 2019
12b63d0
406 datetime format issues
sadlerw Jan 7, 2019
c39133f
Merge pull request #558 from flexion/task/406_clear_actions_on_detail…
sadlerw Jan 7, 2019
0ab567c
Merge pull request #559 from flexion/406_small_formatting_changes
sadlerw Jan 7, 2019
f860804
Merge pull request #555 from flexion/pattern-library
ericsorenson Jan 7, 2019
0cc20e7
adding logic to clear the documentType and file when the File Documen…
codyseibert Jan 7, 2019
0594bac
Merge pull request #560 from flexion/task/406_clear_document_on_file_…
codyseibert Jan 7, 2019
c154ed9
apply feedback for Pending Messages table
ericsorenson Jan 7, 2019
8b15cce
the docket number will reset to 1 on a new year
codyseibert Jan 7, 2019
794d846
fixing test
codyseibert Jan 7, 2019
7628cd2
Merge branch 'develop' into pattern-library
ericsorenson Jan 7, 2019
8b5789a
documenting the shared_sonar_key setup
codyseibert Jan 7, 2019
fea7787
more documentation
codyseibert Jan 7, 2019
3ec1108
Merge pull request #561 from flexion/task/406_fix_docket_number_year_bug
codyseibert Jan 7, 2019
4bcccc8
406: make hover-button visible in IE
kkoskelin Jan 7, 2019
788232f
Merge pull request #562 from flexion/pattern-library
ericsorenson Jan 7, 2019
b33a0b9
adding logic to remove the work item from the docket section after it…
codyseibert Jan 7, 2019
6b4d7fb
fixing tests
codyseibert Jan 7, 2019
eec864c
Tweaking design with Natalie
ericsorenson Jan 7, 2019
c819199
406 add all internal users to sendTo
sadlerw Jan 7, 2019
f2209d1
Merge pull request #564 from flexion/task/406_remove_from_section_aft…
sadlerw Jan 7, 2019
e2f6e9f
Merge pull request #563 from flexion/406-ie_hover_queue
sadlerw Jan 7, 2019
e417c4d
Merge pull request #565 from flexion/pattern-library
sadlerw Jan 7, 2019
e2cf6be
merge from develop
sadlerw Jan 7, 2019
3d20b41
406: sort by updatedAt
kkoskelin Jan 7, 2019
c7c9e8e
Merge pull request #567 from flexion/406-queue-sorting
kkoskelin Jan 8, 2019
c54b3b6
406 Routing on SendTo From Message
sadlerw Jan 8, 2019
6f1ab09
Merge branch 'develop' into 406_forward_users
sadlerw Jan 8, 2019
929eecf
refactor getUsersInSection interactor
sadlerw Jan 8, 2019
d66c49e
Merge pull request #568 from flexion/406_sendto_routing
sadlerw Jan 8, 2019
d761c6d
merge from develop
sadlerw Jan 8, 2019
b07cfba
Merge pull request #566 from flexion/406_forward_users
sadlerw Jan 8, 2019
112311d
increasing code coverage
codyseibert Jan 8, 2019
c68e952
covering the workQueueHelper
codyseibert Jan 8, 2019
869db87
coverage over the detailheler
codyseibert Jan 8, 2019
fa994e4
fixing bug with click on row
codyseibert Jan 8, 2019
8794d33
lint
codyseibert Jan 8, 2019
4585317
Merge pull request #569 from flexion/task/406_increase_code_coverage
codyseibert Jan 8, 2019
81f60c8
Merge pull request #575 from flexion/develop
codyseibert Jan 9, 2019
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
  •  
  •  
  •  
45 changes: 45 additions & 0 deletions Dockerfile.deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
########
# Shellcheck Section
FROM koalaman/shellcheck-alpine as shellcheck

FROM node:8-alpine
COPY --from=shellcheck /bin/shellcheck /bin/shellcheck

RUN apk add git
RUN apk add bash

ENV AWS_CLI_VERSION 1.16.31

RUN apk --no-cache update && \
apk --no-cache add openjdk8-jre python py-pip py-setuptools ca-certificates groff less && \
apk --no-cache add bash git openssh && \
pip install --upgrade pip && \
pip --no-cache-dir install awscli==${AWS_CLI_VERSION} && \
rm -rf /var/cache/apk/*

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

# Since the .git file is ignored in the .dockerignore file,
# we init a git repo here so that serverless can get a new hash
# to deploy with... serverless is coupled to git
RUN git config --global user.email "blank@example.com" && \
git config --global user.name "local" && \
git init && \
touch tmp.txt && \
git add tmp.txt && \
git commit -m 'rev'

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 --only=production

COPY . /home/app

CMD echo "please overwrite this command"
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ Install the following for best results:
- https://atom.io/packages/linter-eslint
- https://atom.io/packages/prettier-atom (enable ESLint and StyleLint integrations in settings)

## Using the application with Internet Explorer 11

If using Internet Explorer 11 with Windows 7, download the Adobe Reader application at
https://get.adobe.com/reader/
Install as directed. This will permit PDF documents to be viewed in-browser with Internet Explorer 11.

## Contributing

See [CONTRIBUTING](CONTRIBUTING.md) for additional information.
Expand All @@ -69,3 +75,4 @@ This project is in the worldwide [public domain](LICENSE.md). As stated in [CONT
> This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/).
>
> All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

4 changes: 3 additions & 1 deletion SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ The end result of this is not a dev, staging, or production website, but is inst
- [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.
- There are three sub-projects to the EF-CMS — the front-end (the UI), the back-end (the API), and shared code. 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.)
- [Create a project and project key](https://sonarcloud.io/projects/create?manual=true) for the SHARED code. (This will be referred to as `SHARED_SONAR_TOKEN` when setting up Jenkins.)

## Setup Steps

Expand Down Expand Up @@ -63,6 +64,7 @@ The end result of this is not a dev, staging, or production website, but is inst
- `EFCMS_DOMAIN` / your subdomain, e.g. `ef-cms.example.gov`
- `UI_SONAR_KEY` / your Sonar UI project key, e.g. `ef-cms-ui`
- `API_SONAR_KEY` / your Sonar API project key, e.g. `ef-cms-api`
- `SHARED_SONAR_KEY` / your Sonar API project key, e.g. `ef-cms-shared`

11. At the CLI, set up the jobs via the `setup-jobs.sh` script, which is in `management/bin/`. This script takes three arguments, with a complete command like: `../bin/setup-jobs.sh https://github.com/flexion/ef-cms.git flexion ef-cms`. Those arguments are, in this order:
- Your Git repository’s URL, e.g. `https://github.com/examplecourt/ef-cms.git`.
Expand Down
2 changes: 1 addition & 1 deletion docker-cerebral.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash -e
docker build -t cerebral -f Dockerfile.web-client .
docker run -e AWS_ACCESS_KEY_ID=noop -e AWS_SECRET_ACCESS_KEY=noop cerebral /bin/sh -c "cd efcms-service && npm run install:dynamodb && (npm start &) && ../wait-until.sh http://localhost:3000/v1/swagger && cd ../web-client && sleep 5; npm run test"
docker run -e AWS_ACCESS_KEY_ID=noop -e AWS_SECRET_ACCESS_KEY=noop cerebral /bin/sh -c "cd efcms-service && npm run install:dynamodb && (npm start &) && ../wait-until.sh http://localhost:3000/v1/swagger && cd ../web-client && sleep 10; npm run test"
5 changes: 1 addition & 4 deletions efcms-service/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ module.exports = {
node: true,
},
parserOptions: {
ecmaVersion: 8,
ecmaFeatures: {
experimentalObjectRestSpread: true
}
ecmaVersion: 9
},
};
27 changes: 0 additions & 27 deletions efcms-service/create-dynamo-tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,33 +52,6 @@ const createEFCMSTable = async () => {
.promise();
};

const createDocumentsTable = async () => {
await deleteTable('efcms-documents-local');
console.log('Creating Documents Table');
return dynamo
.createTable({
TableName: 'efcms-documents-local',
KeySchema: [
{
AttributeName: 'documentId',
KeyType: 'HASH',
},
],
AttributeDefinitions: [
{
AttributeName: 'documentId',
AttributeType: 'S',
},
],
ProvisionedThroughput: {
ReadCapacityUnits: 1,
WriteCapacityUnits: 1,
},
})
.promise();
};

(async () => {
await createDocumentsTable();
await createEFCMSTable();
})();
2 changes: 1 addition & 1 deletion efcms-service/docker-globaltables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
ENV=$1
REGIONS=$2
docker build -t efcms-build -f ../Dockerfile.build ..
docker run --rm efcms-build /bin/sh -c "cd efcms-service && node setup-global-tables.js efcms-$ENV $REGIONS && node setup-global-tables.js efcms-documents-$ENV $REGIONS"
docker run --rm efcms-build /bin/sh -c "cd efcms-service && node setup-global-tables.js efcms-$ENV $REGIONS $REGIONS"
2 changes: 1 addition & 1 deletion efcms-service/docker-serverless.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash -e
STAGE=$1
REGION=$2
docker build -t efcms-build -f ../Dockerfile.build ..
docker build -t efcms-build -f ../Dockerfile.deploy ..
docker run -e "EFCMS_DOMAIN=${EFCMS_DOMAIN}" --rm efcms-build /bin/sh -c "cd efcms-service && ./run-serverless.sh ${STAGE} ${REGION}"
15 changes: 15 additions & 0 deletions efcms-service/dynamo-export.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const AWS = require('aws-sdk');

const documentClient = new AWS.DynamoDB.DocumentClient({
region: 'us-east-1',
endpoint: 'http://localhost:8000',
});

documentClient
.scan({
TableName: 'efcms-local',
})
.promise()
.then(documents => {
console.log(JSON.stringify(documents.Items, null, 2));
});
Loading