Skip to content

RELEASE 2026-02-21#41

Merged
martingaldeca merged 1 commit intoproductionfrom
main
Feb 21, 2026
Merged

RELEASE 2026-02-21#41
martingaldeca merged 1 commit intoproductionfrom
main

Conversation

@martingaldeca
Copy link
Member

Type of Change

  • 🚀 New feature (non-breaking change which adds functionality)
  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 🧹 Chore (technical task, refactoring, maintenance)

Description

Briefly describe the changes made in this Pull Request. Explain the solution and the reasoning.
This PR fixes Internal Server Errors occurring on the /api/answers/completed/.../affinity/ endpoints.
The errors were caused by explicitly null JSON values for margin inputs crashing Pydantic validations during compatibility calculations. The changes gracefully fallback to 0 when encountering these cases during _map_axes.

Related Issue

Closes #

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

  • Unit Tests
  • Manual Testing

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Screenshots (if applicable)

Type of Change

  • 🚀 New feature (non-breaking change which adds functionality)
  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 🧹 Chore (technical task, refactoring, maintenance)

Description

Briefly describe the changes made in this Pull Request. Explain the solution and the reasoning.

Related Issue

Closes # (Link the issue here, e.g., #123)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

  • Unit Tests
  • Manual Testing

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Screenshots (if applicable)

## Type of Change
- [ ] 🚀 New feature (non-breaking change which adds functionality)
- [x] 🐛 Bug fix (non-breaking change which fixes an issue)
- [ ] 🧹 Chore (technical task, refactoring, maintenance)

## Description
Briefly describe the changes made in this Pull Request. Explain the
solution and the reasoning.
This PR fixes `Internal Server Error`s occurring on the
`/api/answers/completed/.../affinity/` endpoints.
The errors were caused by explicitly null JSON values for margin inputs
crashing Pydantic validations during compatibility calculations. The
changes gracefully fallback to `0` when encountering these cases during
`_map_axes`.
 
## Related Issue
Closes # 

## How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
- [x] Unit Tests
- [x] Manual Testing

## Checklist
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes

## Screenshots (if applicable)
@martingaldeca martingaldeca merged commit b7be1d3 into production Feb 21, 2026
1 check passed
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.

1 participant