Problem/Motivation
Now that we have #2679361: Add way to view unpublished or protected source content in source content, we can let translators access to see the original content they are going to translate.
Let's show this link in LocalTaskItemForm.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | interdiff-2680119-20.txt | 1.24 KB | sanja_m |
| #20 | 2680119-20.patch | 6.9 KB | sanja_m |
Comments
Comment #2
edurenye commentedDone, also added the rest of info elements.
Comment #3
berdirWondering about the preview URL. It doesn't really make sense, but we might want to use the new preliminary stuff here as well to be able to preview the translation? It could be a button on the form that saves and then displays the preview link?
Comment #4
miro_dietikerYeah the header was completely missing.
And the link to the source should show the untranslated source.
I also thought this issue was about offering the new preview functionality. But it seems only to be about original source content.
I think we should create a separate issue about the preview.
Anyway back to work for missing test coverage. ;-)
Comment #5
edurenye commentedAdded tests and created the other issue #2682337: Add the preview feature to translator local.
Comment #7
berdirJust to make sure that everything works together, can we also make sure that it allows us to see unpublished sources in the test?
Do we have any tests that are testing with content entity as a source? I guess not...
Comment #8
edurenye commentedThe test added to ContentEntitySourceUiTest in this issue #2679361: Add way to view unpublished or protected source content is testing it.
Comment #9
berdirI know, but that just tests the API, really. We have no test that a local translator can access an unpublished node, we don't even have a test that he can see the link to any kind of node right now.
Comment #10
edurenye commentedSo, should I modify test_source to support preview or use tmgmt_content?
Comment #11
miro_dietikerI guess we should explicitly test this combined with an entity source test such as ContentEntitySourceUiTest?
Comment #12
sanja_m commentedAssigning to me.
Comment #13
mbovan commentedComment #14
sanja_m commentedAdded some tests, still working on it, not sure what could be the problem, because there are some failing tests locally but not here.
Comment #15
berdir#2682337: Add the preview feature to translator local and this issue are going to add very similar tests. I would suggest we postpone one on the other.
Comment #16
berdirmixing camel case and - is strange, use local-task.
I'd also leave out the ui in those classes. You can't have non-ui css classes, so it is useless information (I guess you copied it from tmgmt, where it is a left-over of having a tmgmt_ui module in 7.x).
So, just tmgmt-local-task-info.
The classes below are re-used, so I guess we can keep them for now.
Comment #17
berdir#2682337: Add the preview feature to translator local is in now, please add your tests to the new test added there.
Comment #18
sanja_m commentedUpdated patch.
Comment #19
berdirwhy do you need this permission? the code below just uses the API, you shouldn't even have to log in for it.
Looks good otherwise.
Comment #20
sanja_m commentedFixed bug from #19.
Comment #22
berdirNice, committed.