Follow up for #1831530: Entity translation UI in core (part 2)
Problem/Motivation
cannot mark a translation as outdated. can only edit another translation and from there, check the box to more all other translations outdated, then edit every translation that is not meant to be outdated and uncheck the needs updating check box in those translations. ick.
Proposed resolution
show the "mark this outdated" on every translation (even ones where they are not outdated)
Remaining tasks
- write down steps to reproduce exactly
- get screen shots or find ones in #1188388: Entity translation UI in core to reuse
- find comments in #1188388: Entity translation UI in core about this issue. link to them in Original report section below. There are several.
- reroll (relevant part of) the patch from that issue in comment 188 and post it here
- document usual workflows to decide how making outdated should be
- code solution
- update tests(?)
- more screen shots
- manually test
- ui review new screen shots
- code review
User interface changes
This is a ui issue. See above.
API changes
no api changes anticipated.
Original report
Link to original comments from et ui issue
Comment | File | Size | Author |
---|---|---|---|
#34 | 1833096-nr-bot.txt | 132 bytes | needs-review-queue-bot |
#23 | 1833096-23.patch | 7.74 KB | Leksat |
#13 | 1833096-13-test-only.patch | 4.66 KB | Leksat |
Comments
Comment #1
Gábor HojtsyComment #2
matsbla CreditAttribution: matsbla commentedWhat about making it possible to mark only 1 specific translation as outdated?
Comment #5
Leksat CreditAttribution: Leksat at Amazee Labs commentedWith this patch:
- both checkboxes are always visible
- the order of checkboxes is changed ("This translation needs to be updated" seems to be more important)
- ContentTranslationHandler::retranslate() does what its documentation says
I vote for this change because current workflow is quite confusing for content editors. They want full control over the Outdated flags.
Comment #6
matsbla CreditAttribution: matsbla commentedI tested this now - looks great!
++1!
Comment #7
LuxianTested this on production website, works as expected. I think it's safe to say it RTBC.
Comment #8
xjmThanks everyone!
Can we add some automated test coverage for this improvement?
The help text is also really long which has a detrimental impact on usability, but looks like the strings are the same as in HEAD so that can be considered out of scope.
Comment #9
Gábor HojtsyAgreed with the goal of the issue, moving onto D8MI sprint. Agree it needs tests.
Comment #10
Gábor HojtsyComment #12
matsbla CreditAttribution: matsbla commentedShould there maybe be a permission setting for who can mark this (or other) translations as outdated?
Comment #13
Leksat CreditAttribution: Leksat at Amazee Labs commentedI have updated the existing test.
(test-only == interdiff to 5)
Comment #15
Leksat CreditAttribution: Leksat at Amazee Labs commentedComment #16
Leksat CreditAttribution: Leksat at Amazee Labs commentedComment #17
andrey.troeglazov CreditAttribution: andrey.troeglazov at DrupalJedi for Globalbility commentedHello,
I`ve added permissions logic as mentioned in #12.
Also @Leksat you used array() instead [] in you patch which is deprecated in D8, so I`ve changed it.
Comment #19
andrey.troeglazov CreditAttribution: andrey.troeglazov at DrupalJedi for Globalbility commentedRerolled the patch with adding a new permission to the tests.
Comment #20
andrey.troeglazov CreditAttribution: andrey.troeglazov at DrupalJedi for Globalbility commentedComment #22
andrey.troeglazov CreditAttribution: andrey.troeglazov at DrupalJedi for Globalbility commentedComment #23
Leksat CreditAttribution: Leksat at Amazee Labs commented@andrey.troeglazov, I believe adding a permission would be out of scope for this issue. Because it may need an update path and/or a change record. Can you please create a new issue for that?
In this patch:
- changed array() to []
- rerolled on 8.3.5
Comment #25
matsbla CreditAttribution: matsbla commentedHave set up a small module that implements it while we wait for this to be fixed in core Outdated Translation
Comment #34
needs-review-queue-bot CreditAttribution: needs-review-queue-bot as a volunteer commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.