Skip to content

Consolidate communication management API modules#97

Merged
steventux merged 8 commits intomainfrom
consolidate-comms-manager-modules
May 29, 2025
Merged

Consolidate communication management API modules#97
steventux merged 8 commits intomainfrom
consolidate-comms-manager-modules

Conversation

@steventux
Copy link
Contributor

@steventux steventux commented May 28, 2025

Context

We had two different styles of python in two modules which call the same API

Changes

  • Move all API calling code to one shared module
  • Move JWT access token module to shared directory as this is a dependency
  • Refactor Recipient class as namedtuple (thanks @dnimmo for original idea) and move to shared directory as it's also a dependency
  • Convert shared communication_management module to functional style

@steventux steventux changed the title Consolidate comms manager modules Consolidate communication management API modules May 28, 2025
@steventux steventux force-pushed the consolidate-comms-manager-modules branch 2 times, most recently from 521007c to 79f8d42 Compare May 29, 2025 07:02
@steventux steventux marked this pull request as ready for review May 29, 2025 07:25
steventux added 8 commits May 29, 2025 09:57
Refactor into functional style for consistency.
This adds the GET /statuses calling code into the shared module along with unit tests.
The shared communication_management module has a dependency on this.
Convert class to namedtuple
NamedTuple is immutable and slightly different to how we initialise a class, update implementation and tests to work this way.
@steventux steventux force-pushed the consolidate-comms-manager-modules branch from 79f8d42 to 662170a Compare May 29, 2025 08:57
@steventux steventux added this pull request to the merge queue May 29, 2025
Merged via the queue into main with commit 2246e2f May 29, 2025
10 checks passed
@steventux steventux deleted the consolidate-comms-manager-modules branch May 29, 2025 08:58
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.

2 participants