-
Notifications
You must be signed in to change notification settings - Fork 664
Demos | DataGrid - BatchUpdateRequest: Support BackEnd / EndPoint Anti Forgery (all frameworks) #32231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…i Forgery (all frameworks) (DevExpress#32057) Co-authored-by: Tom <22076961+artem-kurchenko@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds anti-forgery token support to the DataGrid BatchUpdateRequest demo across all supported frameworks (jQuery, Angular, React, Vue). The implementation fetches CSRF tokens from the backend and includes them in API requests to support anti-forgery validation. The demo is also added to the skipped visual tests list.
Changes:
- Added anti-forgery token fetching and caching mechanism for all frameworks
- Updated API endpoints to use the new BatchUpdateWebApi endpoint
- Added BatchUpdateRequest to the list of skipped visual tests for all frameworks
- Also updated the CollaborativeEditing jQuery demo with similar anti-forgery token support
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/demos/utils/visual-tests/matrix-test-helper.ts | Added BatchUpdateRequest to skipped visual tests for all frameworks |
| apps/demos/Demos/DataGrid/CollaborativeEditing/jQuery/index.js | Updated to use anti-forgery tokens and fixed URL path consistency |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/jQuery/index.js | Implemented anti-forgery token support with jQuery-specific Deferred pattern |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/Vue/App.vue | Implemented anti-forgery token support using async/await with fetch API |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/ReactJs/App.js | Implemented anti-forgery token support using async/await with fetch API |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/React/App.tsx | TypeScript version of React implementation with proper typing |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/Angular/app/app.service.ts | New service providing token management via RxJS observables and HTTP interceptor |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/Angular/app/app.component.ts | Updated component to use the new token service and interceptor |
Cherry-pick of: