Skip to content

Fix asset controller responses#12159

Merged
brandonkelly merged 7 commits into5.0from
fix-assets-responses
Apr 4, 2023
Merged

Fix asset controller responses#12159
brandonkelly merged 7 commits into5.0from
fix-assets-responses

Conversation

@timkelty
Copy link
Copy Markdown
Contributor

@timkelty timkelty commented Oct 20, 2022

These cases were missed when we normalized proper js response handling in the 4.0 release.

TODO

  • Update JS

Related issues

# Conflicts:
#	src/controllers/AssetsController.php
# Conflicts:
#	src/web/assets/cp/dist/cp.js
#	src/web/assets/cp/dist/cp.js.map
Copy link
Copy Markdown
Contributor Author

@timkelty timkelty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the obvious question of "why is the same code in so many places", just looking for another set of eyes, as my js-fu is rusty.

Comment thread src/controllers/AssetsController.php
Comment thread src/controllers/RebrandController.php
Comment thread src/web/assets/cp/src/js/AssetSelectInput.js
Comment thread src/web/assets/cp/src/js/AssetSelectInput.js
Comment thread src/web/assets/cp/src/js/ImageUpload.js
@timkelty timkelty marked this pull request as ready for review March 16, 2023 17:35
@timkelty timkelty requested a review from a team as a code owner March 16, 2023 17:35
@timkelty timkelty requested review from brandonkelly and brianjhanson and removed request for a team March 16, 2023 17:35
@brandonkelly brandonkelly changed the base branch from develop to 5.0 April 4, 2023 21:00
# Conflicts:
#	src/web/assets/cp/dist/cp.js
#	src/web/assets/cp/dist/cp.js.map
#	src/web/assets/cp/src/js/AssetSelectInput.js
#	src/web/assets/cp/src/js/ImageUpload.js
@brandonkelly brandonkelly merged commit 572d40f into 5.0 Apr 4, 2023
@brandonkelly brandonkelly deleted the fix-assets-responses branch April 4, 2023 21:25
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.

[4.x]: AssetsController always returns 200

2 participants