Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d634825
fix: no logs in terminal when not logging locally
hadiqur Mar 18, 2026
8d3d604
refactor: change usage data source to new endpoint
hadiqur Mar 18, 2026
51953af
fix: resolve data structure issues and improve logging
hadiqur Mar 18, 2026
5ecdad5
refactor: update TestGetAndUpdateHistoricUsage
hadiqur Mar 19, 2026
c73c4d3
refactor: remove functions responsible for handling team data
hadiqur Mar 19, 2026
4e02c38
chore: poetry lock
hadiqur Mar 19, 2026
cca1ac3
refactor: improve logging and use requests
hadiqur Mar 19, 2026
7d209ce
refactor: strip down tests
hadiqur Mar 19, 2026
660d113
fix: missing dependency in tests
hadiqur Mar 19, 2026
a755b3e
refactor: improve assertions in test_handler_success
hadiqur Mar 19, 2026
501a5be
fix: bump black to 26.3.1
hadiqur Mar 19, 2026
e0ab4a6
docs: update overview and team usage
hadiqur Mar 19, 2026
ae36401
chore: comment main guard
hadiqur Mar 19, 2026
c39d462
Merge branch 'main' into new-endpoint-refactor
hadiqur Mar 22, 2026
29ac72b
fix: update pyproject.toml
hadiqur Mar 22, 2026
ec65eb8
docs: remove everything related to team usage
hadiqur Mar 23, 2026
68f314f
Merge branch 'new-endpoint-refactor' of https://github.com/ONS-Innova…
hadiqur Mar 23, 2026
28c4bea
refactor: rename file in s3
hadiqur Mar 23, 2026
3edecb9
refactor: always log locally if logging toggled
hadiqur Mar 23, 2026
cbfff97
refactor: update tests
hadiqur Mar 23, 2026
d5579a0
fix: catch AttributeError exception when serializing response as json
hadiqur Mar 23, 2026
75ea3d2
perf: only sort newly added dates rather than whole historic usage
hadiqur Mar 23, 2026
9eff158
refactor: update files to reflect current logging practice
hadiqur Mar 23, 2026
2e328d4
perf: only import get from requests library
hadiqur Mar 23, 2026
4bfc290
tests: improve readability by moving mock api response and usage data…
hadiqur Mar 23, 2026
f620ead
chore: improve comments in test file
hadiqur Mar 23, 2026
550bc27
chore: improve comments in test file once more
hadiqur Mar 23, 2026
105b9c2
perf: implement historic_usage_set to optimise new usage data lookup
hadiqur Mar 23, 2026
eaac964
fix: linting errors
hadiqur Mar 23, 2026
2f18b6e
chore: comment main guard
hadiqur Mar 23, 2026
eac51ff
refactor: logging enabled by default
hadiqur Mar 23, 2026
298af15
fix: linting errors
hadiqur Mar 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion config/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"features": {
"show_log_locally": false,
"write_data_locally": false
}
}
6 changes: 1 addition & 5 deletions docs/technical_documentation/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,4 @@ This component is an imported library which is shared across multiple GitHub too

### Historic Usage Data

This section gathers data from AWS S3. The Copilot usage endpoints have a limitation where they only return the last 100 days worth of information. To get around this, the project has an AWS Lambda function which runs weekly and stores data within an S3 bucket.

### Copilot Teams Data

This section gathers a list of teams within the organisation with Copilot data and updates the S3 bucket accordingly. This allows all relevant teams to be displayed within the dashboard.
This section gathers data from AWS S3. The Copilot usage endpoints have a limitation where they only return the last 28 days worth of information. To get around this, the project has an AWS Lambda function which runs weekly and stores data within an S3 bucket.
79 changes: 0 additions & 79 deletions docs/technical_documentation/team_usage.md

This file was deleted.

2 changes: 1 addition & 1 deletion poetry.lock

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

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ six = "^1.17.0"
urllib3 = "^2.6.3"

[tool.poetry.group.dev.dependencies]
black = "^26.3.1"
ruff = "^0.6.5"
pylint = "^3.2.7"
mypy = "^1.11.2"
pytest = "^8.4.1"
pytest-cov = "^6.2.1"
pytest-xdist = "^3.8.0"
black = "^26.3.1"

[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.0"
Expand Down Expand Up @@ -111,4 +111,4 @@ warn_redundant_casts = "True"
disallow_untyped_defs = "True"
disallow_untyped_calls = "True"
disallow_incomplete_defs = "True"
strict_equality = "True"
strict_equality = "True"
Loading
Loading