- Issue created by @ptmkenny
- last update
12 months ago 113 pass - last update
12 months ago 113 pass - Status changed to Needs review
12 months ago 11:20am 18 April 2024 - Status changed to Needs work
12 months ago 10:42am 20 April 2024 - 🇳🇱Netherlands megachriz
That this didn't fail tests before, suggests that we need test coverage for this feature. And we need to figure out how it exactly is used. It's quite possible this is part of a incompletely ported feature from the D7 version.
There are no calls to
feeds_ex_encoding_autocomplete()
from feeds_ex.pages.inc. Also the contents of the function looks to be the same asDefaultController::encodingAutocomplete()
. So the file feeds_ex.pages.inc can probably be completely removed.\Drupal\feeds_ex\Controller\DefaultController::encodingAutocomplete()
is called on path/_feeds_ex/encoding_autocomplete
, see feeds_ex.routing.yml.
The path is used in\Drupal\feeds_ex\Encoder\TextEncoder::buildConfigurationForm().
and TextEncoder is used in\Drupal\feeds_ex\Feeds\Parser\ParserBase
. - last update
12 months ago 113 pass - last update
12 months ago 113 pass - 🇯🇵Japan ptmkenny
XMLParser is the only parser with a config form, so that's where this bug is (only Parser with
hasConfigForm()
set to true). Unfortunately I'm using JSON, not XML, and I don't know much about XML, so that's as far as I'm going to be able to get with this issue. - last update
11 months ago 116 pass - last update
10 months ago 115 pass, 2 fail - 🇳🇱Netherlands megachriz
I worked on this a bit.
I found out this is actually about bringing the UI for setting the source encoding back:
It needs work because:
- Saving the configuration fails.
TextEncoder::configFormValidate()
doesn't get called yet.- A test is needed to cover interaction with the page at /_feeds_ex/encoding_autocomplete. Kernel test?
- A test is needed to make sure that the source encoding setting can be configured in the UI. Functional or FunctionalJavascript test (or both).
Not sure if I get to that soon.
- last update
10 months ago 121 pass - last update
10 months ago 121 pass - Status changed to Needs review
10 months ago 7:45pm 31 May 2024 - 🇳🇱Netherlands megachriz
Okay, I had not much to do this evening, so I think that I fixed the issues in the UI. And I added test coverage that covers setting the source encoding in the UI and that covers
DefaultController::encodingAutocomplete()
.Let's see if tests pass.
- last update
10 months ago 121 pass - last update
10 months ago 121 pass - last update
10 months ago 121 pass - last update
10 months ago 121 pass 55:41 53:58 Running-
MegaChriz →
committed 72782fec on 8.x-1.x authored by
ptmkenny →
Issue #3441771 by MegaChriz, ptmkenny: Added UI for configuring the...
-
MegaChriz →
committed 72782fec on 8.x-1.x authored by
ptmkenny →
- Status changed to Fixed
10 months ago 5:22pm 1 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.