Skip to content

Conversation

@sebtheo
Copy link
Contributor

@sebtheo sebtheo commented Jul 10, 2025

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

What

Changed how the copilot_teams is recorded. On the digital landscape, for the KEH-1122 when a user is in an admin team, we then fetch the copilot_teams.json as this is a list of valid teams (5< active copilot licenses) and then we display those on the frontend. This was just a list before and so it didn't have the description of the team, meaning we'd have to make a request for each team to get its info (theres 10+ valid teams currently) so it the requests get a bit much.

FROM:

["test"]

TO:

[
    {
        "name": "test",
        "slug": "test",
        "description": "Used by https://github.com/ONSdigital/test",
        "url": "https://github.com/orgs/ONSdigital/teams/test"
    },
    { ... }
]

Testing

Have any new tests been added as part of this issue? If not, try to explain why test coverage is not needed here.

  • Yes
  • No
    Please write a brief description of why test coverage is not necessary here.
  • Not as part of this ticket. (Could be done at a later point)

Documentation

No. No mention of copilot_teams in the docs (mkdocs) folder.

How to review

Follow steps in /lambda_data_logger/README.md

@sebtheo sebtheo requested review from a team and TotalDwarf03 July 10, 2025 13:38
Copy link
Contributor

@nimshi89 nimshi89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@TotalDwarf03 TotalDwarf03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change, approving in advance

@sebtheo sebtheo merged this pull request into master Jul 15, 2025
4 checks passed
@sebtheo sebtheo deleted the KEH-1155 branch July 15, 2025 09:55
TotalDwarf03 pushed a commit that referenced this pull request Aug 22, 2025
* update copilot_teams

* update hashicorp/aws provider

* use .get()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants