Skip to content

Commit

Permalink
Update to v1.5.12 open-source release (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkrol authored Nov 19, 2024
1 parent a6d9195 commit 563c65f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 154 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.5.12] - 2024-11-19
### Security:
- Bump cross-spawn to `7.0.6` to resolve [CVE-2024-9506](https://github.com/advisories/GHSA-5j4c-8p2g-v4jx)

### Fixed:
- If a filesystem's stack changes from CREATE_COMPLETE to UPDATE_COMPLETE it no longer lists as managed [#229](https://github.com/aws-solutions/simple-file-manager-for-amazon-efs/issues/229)

## [1.5.11] - 2024-10-29
### Security:
- Bump http-proxy-middleware to `2.0.7` to resolve [cve-2024-21536](https://github.com/advisories/GHSA-c7qv-q95q-8v27)
Expand Down
6 changes: 4 additions & 2 deletions source/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def format_filesystem_response(filesystem):
new_filesystem_object["managed"] = "Deleting"
elif stack_status['Stacks'][0]['StackStatus'] == 'CREATE_IN_PROGRESS':
new_filesystem_object["managed"] = "Creating"
elif stack_status['Stacks'][0]['StackStatus'] == 'CREATE_COMPLETE':
elif stack_status['Stacks'][0]['StackStatus'] == 'UPDATE_IN_PROGRESS':
new_filesystem_object["managed"] = "Updating"
elif stack_status['Stacks'][0]['StackStatus'] in ['CREATE_COMPLETE', 'UPDATE_COMPLETE', 'UPDATE_ROLLBACK_COMPLETE']:
new_filesystem_object["managed"] = True

new_filesystem_object["file_system_id"] = filesystem_id
Expand Down Expand Up @@ -476,7 +478,7 @@ def delete_filesystem_lambda(filesystem_id):
:raises ChaliceViewError, BadRequestError
"""
stack_status = describe_manager_stack(filesystem_id)
if stack_status['Stacks'][0]['StackStatus'] == 'CREATE_COMPLETE':
if stack_status['Stacks'][0]['StackStatus'] in ['CREATE_COMPLETE', 'UPDATE_COMPLETE', 'UPDATE_ROLLBACK_COMPLETE']:
try:
delete_stack = delete_manager_stack(filesystem_id)
app.log.info(delete_stack)
Expand Down
152 changes: 3 additions & 149 deletions source/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions source/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@
"fast-xml-parser": "4.4.1",
"postcss": "8.4.31",
"axios": "0.28.0",
"cookie": "0.7.0"
"cookie": "0.7.0",
"cross-spawn": "^7.0.6"
},
"resolutions": {
"fast-xml-parser": "4.4.1",
"postcss": "8.4.31",
"axios": "0.28.0",
"cookie": "0.7.0"
"cookie": "0.7.0",
"cross-spawn": "^7.0.6"
}
}
2 changes: 1 addition & 1 deletion test/unit/api/service_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
],
'MonitoringTimeInMinutes': 123
},
'StackStatus': 'CREATE_COMPLETE',
'StackStatus': 'UPDATE_COMPLETE',
'StackStatusReason': 'string',
'DisableRollback': True,
'NotificationARNs': [
Expand Down

0 comments on commit 563c65f

Please sign in to comment.