Skip to content

Conversation

@adamhaeger
Copy link
Contributor

@adamhaeger adamhaeger commented Feb 7, 2025

Removed logic in stateless controller that would return the party of the logged in user if no partyid was provided.

Description

As noted in the comments of StatelessDataController.cs, if the client did not provide partyid, we would use the party of the logged in user.

This caused the error in the issue below.

This PR removes that fallback, we will now throw an error if the partyid is missing, or we cannot lookup instanceowner based on it.

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)
  • All tests run green

…the logged in user if no partyid was provided
@adamhaeger
Copy link
Contributor Author

/publish

@github-actions
Copy link

github-actions bot commented Feb 7, 2025

@adamhaeger adamhaeger added the bugfix Label Pull requests with bugfix. Used when generation releasenotes label Feb 10, 2025
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@adamhaeger
Copy link
Contributor Author

/publish

@github-actions
Copy link

github-actions bot commented Feb 10, 2025

PR release:

⚙️ Building...
✅ Done!

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

Labels

bugfix Label Pull requests with bugfix. Used when generation releasenotes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant