Skip to content

fix: propagate board clone failures - #8362

Open
Kumar-s75 wants to merge 1 commit into
nextcloud:mainfrom
Kumar-s75:fix/board-clone-error-propagation
Open

fix: propagate board clone failures#8362
Kumar-s75 wants to merge 1 commit into
nextcloud:mainfrom
Kumar-s75:fix/board-clone-error-propagation

Conversation

@Kumar-s75

Copy link
Copy Markdown

Summary

  • let failed board clone requests reject instead of resolving with an Axios error
  • add focused tests for both successful and failed clone requests
  • prevent failed requests from entering the Pinia store's success path

Verification

  • npx jest src/services/BoardApi.spec.js --runInBand --config='{"rootDir":".","moduleFileExtensions":["js"],"transform":{"^.+\\.js$":"babel-jest"}}'
  • npx eslint src/services/BoardApi.js src/services/BoardApi.spec.js
  • npm run build

All checks passed. The build reports existing Sass deprecation and bundle-size warnings.

Closes #8360

Signed-off-by: Kumar Saurabh <kumarsaurabh27d@gmail.com>
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.

Board clone API failure is treated as a successful board response

1 participant