Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In #2654944: Provide test credentials button and callbacks in base UI class we introduced "Test credentials" button to check private/public keys and update remote languages mappings. It will be replaced to "Connect" button in #2658072: Replace "Test credentials" with "Connect" button
Proposed resolution
Support it in Gengo module.
Comment | File | Size | Author |
---|---|---|---|
#14 | add_connect_button-2655948-12-interdiff.txt | 8 KB | Berdir |
#14 | add_connect_button-2655948-12.patch | 7.81 KB | Berdir |
| |||
#12 | tmgmt-twig-2695153-5-interdiff.txt | 3.04 KB | Berdir |
#12 | tmgmt-twig-2695153-5.patch | 29.06 KB | Berdir |
#10 | add_connect_button-2655948-10-interdiff.txt | 521 bytes | mbovan |
Comments
Comment #2
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedComment #3
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedAdded "Connect" button after "private key" field.
Comment #6
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedTested locally, no fails, not sure why it's failing on test bot.This #2658072: Replace "Test credentials" with "Connect" button has to be committed first. :P
Comment #8
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedThere is a new release of TMGMT, rerolling and adding tests for MyGengo.
Comment #10
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedDebugged the test fail. The branch is failing since #2673172: Add a configuration option whether continuous job items should be submitted immediately or on cron where was added inactive state for job items.
Not related to this issue, it's an one-liner, but I think we can fix it here.
Edit: Updated the related issue.
Comment #11
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedAre you sure this last change is correct?
When you submit a Job, all it's items should change to active, isn't it?
I think something it's really wrong there.
Also the first time you open the provider settings page, should not show an error with the connection.
Moreover I think that it should get the account status instead of the language mappings to check if the connection works, then you can check both private and public key as right now is just checking the public one.
http://developers.gengo.com/v2/api_methods/account/#stats-get
Comment #12
BerdirI like that.
Added the statistics API and updated the tests for how it works with that.
The active thing is a bug, but it's a bug in TMGMT: #2695217: Job items are not set to active if the job has been rejected previously.
Comment #14
BerdirWrong patch...
Comment #16
BerdirCommitted.