Closed (fixed)
Project:
Translation Management Tool
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2015 at 14:22 UTC
Updated:
16 Oct 2015 at 22:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
edurenye commentedDone, tested manually.
Comment #3
miro_dietikerHmm... Would we want to implement PluginFormInterface() then?
Promoting to major since it changes APIs.
Comment #4
miro_dietikerSee also how this is done on Monitoring / SensorForm::validateForm()
Comment #5
edurenye commentedOk, modified this, now means that I should open issues for each of the plugins.
Comment #6
miro_dietikerI think that's the right direction.
Yes, please open issues in the current reference plugins such as tmgmt_mygengo, tmgmt_google, tmgmt_microsoft.
Interface declaration missing for the base class.
Comment #7
edurenye commentedAdded the interface declaration.
I already made the followup's for the plugins #2572623: Add validations for the settings form, #2572625: Add validations for the settings form and #2211889: Authentication error to bing service dies silently at UI.
In the last one, I find this issue about add validation, for tmgmt_microsoft and I put the patch there thinking that was for D8, then I realised that was for D7, I asked there is that issue should be changed to D8 or add another issue for D8. The second option means that this issue should be backported to D7 to be able to add the validation.
Comment #8
juanse254 commentedTested locally and this apparently fixes the tests, setting to RTBC.
Comment #9
miro_dietikerThis looks so logic, to only pass in and merge the settings form. However, when the plugin needs ajax, it still needs to know its form location.
I would recommend to pass and merge the whole form so plugins are fully flexible.
Interesting. So derived plugins call the parent short before returning.. Usually we call the parent as the first step.
I guess i would move the message creation to the caller TranslatorForm. Output if settings are still empty after calling the plugin_ui.
Comment #10
berdir1. That's a standard behavior for forms like this. Let's not solve this here, there are core issues to address this then we can make it better. Ajax doesn't go through that anyway, it would call another submit and that would receive everything.
Comment #11
edurenye commentedI did whats in the point 2.
Comment #12
miro_dietikerLooks fine for me.
Comment #14
berdirLooks fine to me too
I'm not sure if we should keep the separate UI classes. The API around them is very weird, but we'd also end up with huge classes.
Comment #16
berdirComment #17
miro_dietikerYeah i also thought about that, the UI pattern is strange.
Every time i review the code around the review UI, i need a few minutes to understand all the wiring.
I think there won't be multiple UI implementations for the same translator, ever.
I guess it needs a dedicated issue to discuss...