forked from HHS/Head-Start-TTADP
-
Notifications
You must be signed in to change notification settings - Fork 1
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
update file upload api #132
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2d34634
Merge pull request #262 from adhocteam/main
rahearn 4948bd3
Merge pull request #264 from adhocteam/main
rahearn ef551f5
Output logs in json format
rahearn a242b9c
Update production URLs
rahearn aa912bc
Merge branch 'main' into update-deployed-env-vars
rahearn eb70469
Add user management workflow diagrams
rahearn 0551a81
Move rds & s3 inside of accreditation boundary
rahearn 4eeb54a
The file attachment migration drops the file enum type
jasalisbury aab85eb
Set sandbox branch
jasalisbury 2c03fe8
update file upload api
570207e
Merge pull request #131 from adhocteam/js-drop-attachment-enum
jasalisbury 8b070ef
Merge branch 'main' into update-deployed-env-vars
rahearn 89ec60d
Merge pull request #128 from HHS/update-deployed-env-vars
rahearn 1232a3f
Cleanup s3 variables
1e009d2
update file upload api
3a38aa3
Cleanup s3 variables
99005ad
Merge branch 'cm-pr-267-add-file-upload-api' of github.com:adhocteam/…
04bbf74
Update src/lib/s3Uploader.js
dcmcand 9618281
update s3uploader.js
17ea941
Merge branch 'cm-pr-267-add-file-upload-api' of github.com:adhocteam/…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
env: prod | ||
instances: 2 | ||
AUTH_BASE: TKTK | ||
# This env variable should go away soon in favor of TTA_SMART_HUB_URI | ||
REDIRECT_URI_HOST: https://tta-smarthub-prod.app.cloud.gov | ||
REDIRECT_URI_HOST: https://ttahub.ohs.acf.hhs.gov | ||
rds_instance: ttahub-prod | ||
s3_doc_upload_bucket: ttahub-document-upload-prod | ||
TTA_SMART_HUB_URI: https://tta-smarthub-prod.app.cloud.gov | ||
TTA_SMART_HUB_URI: https://ttahub.ohs.acf.hhs.gov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
Workflow Diagrams | ||
================= | ||
|
||
Collection of various workflows and processes present in the TTA Smart Hub application. | ||
|
||
Account Creation | ||
---------------- | ||
|
||
<img src="http://www.plantuml.com/plantuml/png/dP91JyCm38Nl_HNcjlq5Tc0W8OtpDkvMwgtMqcJ4piR-FKcAKPd4XLkL-dtlvSLhKKoQHzyzd1CUHuGiz4v9sQ5_Eq0CNPle7lT22Nmy2d202oDijg_RLSS7MBHV0qex0dGkvg1FIz210Ynk9CiEO0AmGAAU4pcb7ZJ2RlUysR_0bNMeIX8ffoSAgo8nTbNvw4xKtqCDEsPH40fzeNza4fsXuvaIQamL33bKa6LSDOHeF9SFyaBpsvY-o4SMuHW4XFJF27YhzTHsiEIuC5qXaOkfbohWz0k4tiVhP5zIVxl38iG9QJaiAD0dYygFjysPkOrn8MUD8xRtypTmYL2fhqxcKNERCH_-K-A05xglfJWOS2fqTg4vtz2Mk0KiaBO17AQjCiQw4FFelm00" alt="rendered account creation diagram"> | ||
|
||
### UML Source | ||
|
||
``` | ||
@startuml | ||
!pragma useVerticalIf on | ||
start | ||
:User logs in via HSES; | ||
if (User has HSES account?) then (yes) | ||
:User is redirected to TTAHUB with access token; | ||
if (User is locked?) then (yes) | ||
:User must send request to TTAHUB operators to unlock account; | ||
stop | ||
elseif (User has TTAHUB permissions set?) then (yes) | ||
:User may log in and view records their permissions allow; | ||
end | ||
else (no) | ||
if (User account exists?) then (no) | ||
:User account is automatically created; | ||
else (yes) | ||
endif | ||
:User must send request to TTAHUB operators to have permissions set; | ||
endif | ||
stop | ||
else (no) | ||
:User must request account creation within HSES; | ||
stop | ||
@enduml | ||
``` | ||
|
||
[Edit this diagram with plantuml.com](http://www.plantuml.com/plantuml/uml/dP91JyCm38Nl_HNcjlq5Tc0W8OtpDkvMwgtMqcJ4piR-FKcAKPd4XLkL-dtlvSLhKKoQHzyzd1CUHuGiz4v9sQ5_Eq0CNPle7lT22Nmy2d202oDijg_RLSS7MBHV0qex0dGkvg1FIz210Ynk9CiEO0AmGAAU4pcb7ZJ2RlUysR_0bNMeIX8ffoSAgo8nTbNvw4xKtqCDEsPH40fzeNza4fsXuvaIQamL33bKa6LSDOHeF9SFyaBpsvY-o4SMuHW4XFJF27YhzTHsiEIuC5qXaOkfbohWz0k4tiVhP5zIVxl38iG9QJaiAD0dYygFjysPkOrn8MUD8xRtypTmYL2fhqxcKNERCH_-K-A05xglfJWOS2fqTg4vtz2Mk0KiaBO17AQjCiQw4FFelm00) | ||
|
||
Account Termination | ||
------------------- | ||
|
||
<img src="http://www.plantuml.com/plantuml/png/XOynQeP048NxFSKhjKkQ49BYzm2f0XvWq56NpEx8pgxYxRCA5e64DCFmU7mVhxDCAPSWxdfSufKfu-sJDyyxYd423OEMcD-Tdz3qPo9a6QBpp2DyHD34o0j5FBy-OQJ3GBC-sffnH7EmjQuIWsuC4i7AANWphz4m9GteVsXOZFzNlVnf-j3XwnSacgYjupZwwPwvBrvgVaBlhY4hqhN-SRLTLqy9yWq0" alt="rendered account termination diagram"> | ||
|
||
### UML Source | ||
|
||
``` | ||
@startuml | ||
start | ||
repeat :Review user account; | ||
if (User last logged in more than 180 days ago?) then (yes) | ||
:Remove all permissions from User account; | ||
elseif (User last logged in more than 60 days ago?) then (yes) | ||
:Lock User account; | ||
else (no) | ||
endif | ||
repeat while (more accounts to review?) | ||
end | ||
@enduml | ||
``` | ||
|
||
[Edit this diagram with plantuml.com](http://www.plantuml.com/plantuml/uml/XOynQeP048NxFSKhjKkQ49BYzm2f0XvWq56NpEx8pgxYxRCA5e64DCFmU7mVhxDCAPSWxdfSufKfu-sJDyyxYd423OEMcD-Tdz3qPo9a6QBpp2DyHD34o0j5FBy-OQJ3GBC-sffnH7EmjQuIWsuC4i7AANWphz4m9GteVsXOZFzNlVnf-j3XwnSacgYjupZwwPwvBrvgVaBlhY4hqhN-SRLTLqy9yWq0) | ||
|
||
|
||
Setting Permissions | ||
------------------- | ||
|
||
<img src="http://www.plantuml.com/plantuml/png/ZP11JWCn34NtESNVCRt2T44hRa3R0qIfPuZ8s60x86wF9niaLjrOzlzVxqi-cMVrlhKqbZIVIv7EZYrpNacXz5Nfsz0jZW_IhPfLuT0_EvaVKrqmtNQp6ZAkrpDUX5rpST7d0_oD6DCFsI41yuNyFycGerBlbLUu3FV9eD88esQDJ6wuU5wMFVCgvgJ7HCq84yk3t4Bi6XpHFwO4iT3e2XxVwvBc6pSfxmCsj7IA4V_v1G00" alt="setting access permissions diagram"> | ||
|
||
### UML Source | ||
|
||
``` | ||
@startuml | ||
start | ||
:Account manager reviews user permission request; | ||
if (User is a TTA Contractor?) then (yes) | ||
:Set user permissions according to user's role on regional Staffing Roster; | ||
else (no) | ||
:Set user permissions according to central or regional office role; | ||
endif | ||
:Unlock user; | ||
end | ||
@enduml | ||
``` | ||
|
||
[Edit this diagram with plantuml.com](http://www.plantuml.com/plantuml/uml/ZP11JWCn34NtESNVCRt2T44hRa3R0qIfPuZ8s60x86wF9niaLjrOzlzVxqi-cMVrlhKqbZIVIv7EZYrpNacXz5Nfsz0jZW_IhPfLuT0_EvaVKrqmtNQp6ZAkrpDUX5rpST7d0_oD6DCFsI41yuNyFycGerBlbLUu3FV9eD88esQDJ6wuU5wMFVCgvgJ7HCq84yk3t4Bi6XpHFwO4iT3e2XxVwvBc6pSfxmCsj7IA4V_v1G00) | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
### Instructions | ||
|
||
1. Edit each diagram using the relevant link | ||
1. Copy and paste the final UML into the UML Source section | ||
1. Update the img src and edit link target to the current values | ||
|
||
### Notes | ||
|
||
* See the help docs for [PlantUML Activity Diagrams](https://plantuml.com/activity-diagram-beta) for syntax help. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested all these paths with the sample data you sent and they all work now.