-
Notifications
You must be signed in to change notification settings - Fork 11
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
Version 3.0 #27
Version 3.0 #27
Conversation
@brendo: Two questions:
|
@brendo, I just updated the to do list in the initial post. |
Regarding the success and error page after running an importer: My idea is to display the entries in an index table, filtered by status (created, updated, skipped, failed). This should make it easier to scan the results – especially when looking for errors. There is only one problem that needs to be solved: when debugging error, were could the input array and the resulting XML be presented? Should there be some kind of debug view, like the frontend debugger that the user can switch to? From my experience, common errors are missing required fields or invalid XML. The latter will now result in a general data source error, so nothing we'll have to take care of in the importer interface itself. Do we actually need to display the raw data? |
Not sure, it relies on the markup and assets that live on the DSE page, probably one we'd just have to try to be honest. I'm not overly keen on this, at the moment we're supporting all DataSources :)
This is definitely doable, but it'd lose usefulness for Dynamic/Remote DS's (as the XML may not have the
Not sure what you're after here? All the entries are available in
I don't think we'll get there for V3. AFAIK we can't seed the Debug Devkit with XML, and attempting to embed/replicate Debug Devkit will be a difficult exercise.
Yes, because there's no way to debug exactly what your 'Remote' is returning. It should display multidimensional, that's just a bug :) |
Right, scratch that.
But even for remote data sources we know the first two levels:
Oh, I don't want to make use of the devkits. This was more a rambling about the visual and structural representation of succeeded and failed entries. |
The XPath hint can already be derived from the value of the option, so an extra data attribute is superfluous :) |
With regards to the line number, what is the line number relative to? In the debug devkit we have the params output at the top of the file, so that will skew the line numbers reported in XML Importer compared to the Devkit. It sounds like you want to embed the entire XML somewhere so that you can link directly through to the problematic XML whilst in the backend. |
And finally, we don't have any mechanisms to determine what version of the XML Importer created the file, so blocking the interface will need a little thought too :) The source is still going to be a string, the only thing I can think of is see if the string matches the datasource handles available. If it does, it's a new datasource, if it's not, then it's an old one. I've left enough legacy code in the XML Importer so old importers should still work, but as you say, the interface won't be able to handle them. Blocking will need some thought:
|
The duplicator oddity:
|
Ähm, how that? |
Well, if an error occurs, XML Importer currently displays the related XML node and the resulting PHP Array. My idea was to give the user some context where this node can be found in the original source. |
Shouldn't all old resources either start with
I wouldn't do anything fancy and just display a message in the edit view – similar to how the DS editor works when |
Custom HelpersThere is one idea I forgot to mention in our chat yesterday: Now that we switched to a more standard approach to fetch data using Symphony data sources, why don't we do the same to format data? We have those custom, static PHP helpers that cannot be shared easily but we have text formatter that do a similar task. Why don't we replace Something like Markdownify can be helpful in other contexts and text formatters are a core concept already. |
The option is currently
I'll have a look at what we can do :)
Come to think of it, yes :) If not all, I'm sure it's a high majority.
At the moment there's a completely different state for that scenario though, we don't display any of the editor it's just a read only page with information from the
This is assuming that helpers always do something like 'format' though, which isn't always the case. I agree though, at the moment they are inflexible. What if we just made them live in |
Brendan, I've made a few update to the I've tested this branch over the last days and I have to say that importing has never been easier and smoother. It's a big improvement to use Data Sources here as it makes debugging invalid sources a lot easier. |
…mport the valid ones
…h obtaining the source from DataSources
…unt for the imported data as well, not just the existing data
This is totally rebased with integration's latest. |
@nilshoerrmann You are free to carry on with testing :) |
Very cool, thanks Brendan! |
Hi Guys what's the status of this at the moment? Also a quick question - but I guess the XML importer latest version it wouldn't be possible to import entries with pre-set Entry ID's right? |
@jonmifsud Hey Jon! I'll email you as well, but I've just merged the
No, it doesn't, but you're welcome to work on this feature and submit against the Oh, also, maybe this discussion should continue in #19 |
@brendo thanks for the information, If thins go to plan I should be trying this out next week. |
This feature branch should prepare version 3.0 of XML Importer. It should fix some of the extension's major issues – I just need to convince @brendo to work on this with me :)
Features
API – @brendo
1234 entries of 1234 entries did not validate
although it might just have been 1 or 2)/data/name/entry
as data attributes in select box optionsUI – @nilshoerrmann
fix duplicator integration with XPath and focus being stolen(when does this happen actually?)