Skip to content

Conversation

@kprince28
Copy link
Contributor

Fixes: #20950

@kprince28 kprince28 changed the title Fixed #20950: missing module properties in module-bay Fixed #20950: Add missing module and device properties in module-bay Dec 18, 2025
@jnovinger jnovinger requested review from a team and jnovinger and removed request for a team December 18, 2025 18:10
installed_module = ModuleSerializer(
nested=True,
fields=('id', 'url', 'display', 'serial', 'description'),
fields=('id', 'url', 'display', 'device', 'module_bay'),
Copy link
Member

Choose a reason for hiding this comment

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

Why did we lose serial and description here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because I just follow the API specification in this API, so serial and description are not present in the API spec.

Copy link
Member

Choose a reason for hiding this comment

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

Understood. Unfortunately, removing fields from an API serializer like this is a breaking change that will need to be present in a minor release, as opposed to this, which will ship in a patch release.

It's also very possible that those fields were intended to be there all along and that the OpenAPI schema that's being generated is just incorrect.

Please restore these fields in this PR. We will need to follow up on this in a new issue. If you have a moment, we would very much appreciate if you could file a bug for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants