Commit 6df2a51
KEH-921 - Post-Migration Cleanup (#57)
* Remove dashboard Terraform
* Remove dashboard related files
* Update Poetry and remove Streamlit
* Remove pandas, matplotlib, plotly
* Update and move CODEOWNERS to .github
* Copy lambda README to root
* Remove dashboard Dockerfile
* Update README prerequisites and add makefile and table of contents sections
* Remove dashboard dockerignore
* Rename lambda folder to src
* Add Makefile commands for applying linting
* Run linters
* Improve README formatting
* Refactor lambda
- Fix var typo
- Capitalise constants
- CoPilot -> Copilot
- Add missing docstring
- Remove unused var
* Move terraform
* Refactor lambda
- Add module docstring
- Use isinstance check
- Use lazy formatting for logging
- Remove unnecessary else and function parameter
* Create LICENSE
* Fail CI if linting fails
* Potential fix for code scanning alert no. 5: Clear-text logging of sensitive information
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* Remove old info from docs
* Refactor lambda
- Use Optional typing
- Get Pylint to ignore handler parameters
- Extract repeated logic for updating S3
- Extract logic for converting data to dictionary
* Reduce linter max line length to 100 to fix Pylint conflict
* Replace try except blocks with response type checks
* Split handler into separate functions: reached 10/10 on pylint
* Add tests folder
* Update Makefile
- Clean more temp files
- Run linters on tests folder
- Add new command for running tests
* Update README
- Add table of contents
- Add testing and linting info
* feat: update and setup for testing + coverage.
- Added pytest-cov and pytest-xdist for enhanced testing capabilities.
- Updated Makefile to include new test commands.
- Modified .gitignore to exclude coverage reports.
- Update README.md table of contents.
* chore: update makefile commands
- Remove tests directory from linting and formatting commands in Makefile.
- Add .coverage to clean command in Makefile.
* test: Write some tests for main.py
- Test get_team_history
- Test get_and_update_copilot_teams
- Test update_s3_object
- Add VS Code settings to gitignore
* chore: remove old commented out tests
* Add missing tests to reach 100% coverage
* Add tests to ci.yml
* Fix failing tests
* Install dependencies via Poetry from requirements txt files and update all dependencies
* Group Poetry docs dependencies
* Use Poetry for mkdocs
- Delete requirements txt file
- Update deployment workflow
- Update setup documentation
* Fix Docker run command formatting
* Delete requirements.txt
* refactor: Update Dockerfile to use Poetry
- Moved Dockerfile to root directory for better visibility.
- Update Dockerfile to use Poetry for dependency management instead of pip.
- Update .dockerignore to exclude unnecessary files from build context.
- Update README.md to reflect move of Dockerfile to root directory.
* Add option to run lambda outside of a container
- Update README with setup instructions
- Add commented function call to main.py
* Address comments
- Specify where to find CI workflow
- Update sentence saying linting auto runs on tests
- Fix README env vars
- Use poetry install --only docs for mkdocs deployment
- Add missing docstrings and return types
- Return boolean for update_s3_object
- Add comment above dev code
* Run linting
* Update README and .dockerignore
- Remove disclaimer from README and update overview section with dashboard repository link
- Add .github/ to .dockerignore
* Remove and replace sandbox references
- Remove and replace sandbox from .sh files, README, example_tfvars, variables.tf
- Delete sandbox Terraform and move its example_tfvars to dev folder
* Add backticks to README
* Address comments
- Use lambda full name
- Update documentation bash
- Move handler function to bottom of script
* Address comments
- Move logger to end of handler function
- Remove Digital Landscape links
- Specify Docker endpoint should return message if successful
* Add missing type hints and return types
* Tidy lambda scripts info in README
* Fix function return type
---------
Co-authored-by: Kieran Pritchard <kieran.pritchard@ons.gov.uk>1 parent 64d841f commit 6df2a51
File tree
63 files changed
+1749
-16523
lines changed- .github
- workflows
- .streamlit
- concourse/scripts
- docs
- lambda_data_logger
- src
- branding
- example_data
- pages
- terraform
- dashboard
- env
- dev
- prod
- sandbox
- data_logger/env/sandbox
- env
- dev
- prod
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
63 files changed
+1749
-16523
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | | - | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
20 | 31 | | |
21 | 32 | | |
22 | | - | |
23 | | - | |
| 33 | + | |
| 34 | + | |
24 | 35 | | |
25 | 36 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
29 | 46 | | |
30 | 47 | | |
31 | 48 | | |
| |||
40 | 57 | | |
41 | 58 | | |
42 | 59 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
47 | 63 | | |
0 commit comments