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

Use POST request for deleting items #2090

Merged
merged 87 commits into from
Jun 26, 2017

Conversation

jonasdekeukelaere
Copy link
Member

Type

  • Enhancement

Resolves the following issues

fixes #2086

Pull request description

Use post request for deleting items instead of get request.

@mention-bot
Copy link

@jonasdekeukelaere, thanks for your PR! By analyzing the history of the files in this pull request, we identified @tijsverkoyen, @WouterSioen and @jessedobbelaere to be potential reviewers.

'Categories',
null,
null,
['error' => 'delete-category-not-allowed', 'var' => $this->record['title']]
Copy link
Member

Choose a reason for hiding this comment

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

will this handle the rawurlencode ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

that also is the reason your tests are failing, spaces are now translated to + instead of %20

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, haven't looked at that yet, still working on the general delete form type. Do I change the tests to +? Or do I change the http_query_build enc_type to PHP_QUERY_RFC3986 so spaces are translated back to %20?

Copy link
Member

Choose a reason for hiding this comment

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

@forkcms/core-contributors what do you think?

Copy link
Member

Choose a reason for hiding this comment

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

I think that %20 has the benefit that you always know it should be a space and that no information is lost, but I'd like to hear the input from the others as well.

Copy link
Member

Choose a reason for hiding this comment

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

%20 or + doesn't make a difference, it is just another way of encoding it

Copy link
Member Author

Choose a reason for hiding this comment

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

changed the tests 90a8e1a

@@ -152,7 +151,11 @@ private function validateForm(): void

private function loadDeleteForm(): void
{
$deleteForm = $this->createForm(FaqDeleteType::class, ['id' => $this->record['id']]);
$deleteForm = $this->createForm(
DeleteType::class,
Copy link
Member

Choose a reason for hiding this comment

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

the use statement is missing

Copy link
Member

Choose a reason for hiding this comment

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

@jonasdekeukelaere it is hidden as outdated but I think it is still in there

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

because it has been added in the previous commit (for faq feedback) ;)

@jonasdekeukelaere
Copy link
Member Author

@carakas I think all feedback has been handled

@carakas carakas merged commit 7d867c3 into forkcms:5.0.0-dev Jun 26, 2017
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.

None yet

4 participants