Our job and job item entities are management entities, normal users don't view them, only those with permissions to actually do something with them.

Because of that are the view pages of both currently totally useless. I would suggest to move checkout/checkoutInfo stuff to view instead of an additional tab. Then we can introduce a normal edit tab that is only for administrators where they can actually edit the job outside of the normal checkout -> review -> accept workflow.

Comments

berdir’s picture

Or, a bit a different approach but the same result, we say that we don't need view and group everything into edit.

For example, look at rules.. you never view a rule, you always immediately edit it, there is no separate read-only view page. Same for wysywig profiles, views (you can view views displays that are displayed on the page, but that's not the same).

What makes this rather obvious is that there is no separate view permission. Nobody can only view jobs and not edit them.

berdir’s picture

Status: Active » Needs review
StatusFileSize
new6.22 KB

Here's a first patch that merges the manage and view pages.

I think this is much better although it's a bit tricky with the inter-dependencies between tmgmt and tmgmt_ui but I don't really see a way around it.

Let's see what the tests have to say about it.

Status: Needs review » Needs work

The last submitted patch, merge-view-manage-1667648-2.patch, failed testing.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new6.22 KB

Need to use entity_ui_get_form(), it seems. I guess the module exists check would then actually not be necessary.

Status: Needs review » Needs work

The last submitted patch, merge-view-manage-1667648-4.patch, failed testing.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new6.73 KB

This should allow the tests to pass.

berdir’s picture

StatusFileSize
new9.11 KB

Updated view/checkout links to manage/submit and only show one of them as suggested in #1441648: UI: TMGMT Core, also fixed the default job overview to do a left join instead of inner join to the translators, currently jobs without a selected translator were not listed.

Status: Needs review » Needs work

The last submitted patch, merge-view-manage-1667648-7.patch, failed testing.

cgalli’s picture

Status: Needs work » Reviewed & tested by the community
Issue tags: +Needs documentation

applied and tested
- all translation jobs ever started but never submitted showed up in the jobs list-> left join works
- merging of view/manage works (this is going to be a BIG windows when handling jobs with many items)

documentation will follow

cgalli’s picture

Issue tags: -Needs documentation

Documentation is adapted (to the patch not yet committed)

berdir’s picture

Status: Reviewed & tested by the community » Needs work

Thanks for testing, still need to fix the tests first.

Big window shouldn't be a problem and there is no difference to before, the view should automatically start to page if there are more than N (10?) items.

berdir’s picture

Status: Needs work » Needs review

Ok, this should fix the tests.

berdir’s picture

StatusFileSize
new10.75 KB

Ok, this should fix the tests.

berdir’s picture

Status: Needs review » Fixed

Commited.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.