Skip to content
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

[Rails 5] Update Angular CSRF handling #6685

Merged
merged 1 commit into from
Jan 21, 2021

Conversation

Matt-Yorkley
Copy link
Contributor

@Matt-Yorkley Matt-Yorkley commented Jan 16, 2021

What? Why?

Pulls in another piece from the Rails 5 upgrade #6635. Should be compatible with master.

Changes Angular CSRF token handling from the current (slightly hacky) method which pulls the token out of a tag in the DOM via jQuery, to a well-used gem made for handling CSRF tokens in Angular.

What should we test?

Form submissions that submit data asynchronously (without doing a full page reload). Admin bulk products is a good example.

Release notes

Updated Angular CSRF token handling for Rails 5

Changelog Category: Technical changes

@Matt-Yorkley Matt-Yorkley self-assigned this Jan 16, 2021
@Matt-Yorkley Matt-Yorkley changed the title Update Angular CSRF handling [Rails 5] Update Angular CSRF handling Jan 16, 2021
@filipefurtad0 filipefurtad0 self-assigned this Jan 21, 2021
@filipefurtad0 filipefurtad0 added the pr-staged-fr staging.coopcircuits.fr label Jan 21, 2021
@filipefurtad0
Copy link
Contributor

Hey @Matt-Yorkley ,

After staging the PR, I checked pages which submit data asynchronously, like product bulk edit, inventory and bulk order management - all seems to work as before.

Found this pre-existing issue, which behaves as before as well: #6399

Moving to ready to go.

@filipefurtad0 filipefurtad0 removed the pr-staged-fr staging.coopcircuits.fr label Jan 21, 2021
@andrewpbrett andrewpbrett merged commit 0f92b3c into openfoodfoundation:master Jan 21, 2021
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.

5 participants