Skip to content

V14: Return the unhealthy error message from Examine index#16228

Merged
elit0451 merged 4 commits intov14/devfrom
v14/bugfix/return-unhealthy-index-message
May 8, 2024
Merged

V14: Return the unhealthy error message from Examine index#16228
elit0451 merged 4 commits intov14/devfrom
v14/bugfix/return-unhealthy-index-message

Conversation

@elit0451
Copy link
Contributor

@elit0451 elit0451 commented May 7, 2024

Details

When the IIndexDiagnostics reports unhealthy, the dashboard not longer uses the Attempt result to display the unhealthy error message. The string returned from this attempt should be displayed.

Test

Attempt<string?> isHealthy = Attempt.Fail("something went wrong");
  • Verify that when an index is unhealthy, you get the "something went wrong" message using GET /umbraco/management/api/v1/indexer endpoint;
  • Verify that the healthStatus::message (in the output) is null when there is no message, i.e. an index is healthy.

@elit0451 elit0451 merged commit 53654d3 into v14/dev May 8, 2024
@elit0451 elit0451 deleted the v14/bugfix/return-unhealthy-index-message branch May 8, 2024 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants