Skip to content

Add optional title field to Topic case class on /device/register endpoint#1525

Merged
michaelclapham merged 1 commit into
mainfrom
vb/add-topic-title
Nov 17, 2025
Merged

Add optional title field to Topic case class on /device/register endpoint#1525
michaelclapham merged 1 commit into
mainfrom
vb/add-topic-title

Conversation

@vlbee

@vlbee vlbee commented Oct 15, 2025

Copy link
Copy Markdown
Member

What does this change?

Adds an optional title Option[String] field on topic that defaults to None
Adds a controller spec for the non-legacy `/device/register' endpoint to give visibility on the functionality.

iOS are migrating from the legacy to the new endpoint. They send a title field on each topic in the request and have asked that this data does not get lost in the response. The field in NOT persisted in the database. The field is optional as android does not use this field.

This will have no impact on the DB as what gets upserted is an amalgamation of the required type and name fields.

How to test

  • new local controller unit test added for /device/register
  • tested on CODE by iOS
  • tested on CODE by Android

How can we measure success?

Have we considered potential risks?

Images

Accessibility

@vlbee
vlbee requested a review from a team as a code owner October 15, 2025 14:30

@d-fernandes d-fernandes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@vlbee

vlbee commented Oct 21, 2025

Copy link
Copy Markdown
Member Author

We are awaiting confirmation from iOS and Android that this change is OK

@Reettaphant Reettaphant added maintenance Departmental tracking: maintenance work, not a fix or a feature and removed maintenance labels Oct 21, 2025

@simone-smith simone-smith left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This works for iOS, thank you!

@michaelclapham michaelclapham left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested multiple times on Android and seems to be fine now!

@michaelclapham
michaelclapham merged commit 425b841 into main Nov 17, 2025
10 checks passed
@michaelclapham
michaelclapham deleted the vb/add-topic-title branch November 17, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Do not merge maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants