Closed (fixed)
Project:
Translation Management Tool
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2014 at 15:52 UTC
Updated:
24 Feb 2014 at 14:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
blueminds commentedHow do we want to show them? The same way as if a job is submitted/active - with blue marking? Also what to show in case of the translate tab?
Also, to tell if the job is active or not tmgmt_job_item_load_latest() function is used, which does not load jobs that are not yet submitted. Possibly we could add another argument to that function - the job state - to also return not submitted jobs.
Comment #2
berdirI think that we ignore non-submitted jobs there is just an oversight, let's just add that state by default and check if causes any problems.
Yes, for now, display the them the same color, for the /translate tab, maybe use something like "Unsubmitted"? Not sure how much space we can/should use there.
Comment #3
blueminds commentedUpdated tmgmt_job_item_load_latest() to return also unprocessed jobs. Did run only general UI tests and node UI tests, so lets see if it passes for all.
Comment #4
berdirWorks quite well.
Looks like the job item view is broken for those, tested it with simplytest me, request translation, then go to the oveview, it is displayed as "Active", if you click on it, you get this:
Fatal error: Call to a member function reviewDataItemElement() on a non-object in /home/sb73216b9d9fbef8/www/sites/default/modules/tmgmt/ui/tmgmt_ui.module on line 675
I guess we call out to the translator without checking if there is one?
We should probably fix that and maybe this should link to the job and not the item?
the translate tab now shows unprocessed and the overview says active. We should unify that. Either add that special case for the overview too or go with Active in both cases. The code for active would be easier but if we do the link to job thing, also changing the label would be trivial, so lets do that?
The link for /translate already goes to the item, and I kind of expected that now that I think about it, also makes me wonder if you saw the fatal error too :)
Summary:
- On overview, display as Unprocessed with link to job, just like /translate
- fix the fatal error while we touch it if it's just a single or two cases, if we have to change more, ignore it.
Comment #5
miro_dietikerAccording Berdir review.
Comment #6
blueminds commentedPlease see the patch.
We might update the access function for job item to restrict permission to the review form in case there is no translator, i.e.:
Not sure however if this is not a different issue.
Comment #7
blueminds commentedAdded condition to prevent the reviewDataItemElement fatal error.
Comment #10
blueminds commentedfixing test
Comment #11
berdirCommitted and pushed.