Needs a new method on the source controller, e.g. typeLabel().

Node source can display the bundle, entity source should display Entity type / Bundle if it's not the same, i18n can display the object type.

Will also need a views field handler so that we can call the method on that. Or we expose it as an entity property, then you can also access it in rules. That should actually work fine...

Comments

berdir’s picture

Status: Active » Needs review
StatusFileSize
new3.62 KB

Time to remove that plugin column, can't see it anymore.

This patch implements a view handler and necessary methods and implementations for node (shows bundle e.g. Article, Page, ..), entity (Shows type (bundle), e.g. Content (Article), File (Image)) and i18n string (displays e.g. Node type, Rules config, Menu link).

I think this is quite nice.

I also noticed that the submit display of job items, which is actively used for non-submitted jobs does not currently exist in the export, maybe I forgot to do that when I added it. So that is added too and simplifies the view when it's irrelevant to display progress/changed.

Might triggers some test fails, needs more test coverage and the entity implementation needs more testing and e.g. handling where entity type == bundle.

Status: Needs review » Needs work

The last submitted patch, translatable-node-translation-2011744-2.patch, failed testing.

berdir’s picture

Status: Needs work » Needs review
berdir’s picture

One thing that is missing is switching the suggestions to use Type as well.

berdir’s picture

StatusFileSize
new12.81 KB

Now with a 100% more correct patch!

cgalli’s picture

Status: Needs review » Needs work

Looks good!

So far the new view structure is only in use when creating a new job.

Managing existing jobs and suggestions still use the prior version.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new9.42 KB
new20.49 KB

Updated the block display of the view, added API tests, let's see if they pass :)

Status: Needs review » Needs work

The last submitted patch, source-type-2009026-7.patch, failed testing.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new12.61 KB
new28.21 KB

A few kittens had to die during the creation of this patch, but it's for the greater good ;)

Namely, I refactored the i18n source a bit to make it much easier to get the object type from it, by using the item_type for that, instead of a hardcoded 'i18n_string'. That's also a major step towards supporting fields/instances/blocks.

Oh, and fixed the tests :)

cgalli’s picture

Status: Needs review » Reviewed & tested by the community

Looks good!

Managing existing jobs as well as suggestions do use the new view.

When opening 'Load Suggestions', the width jumps back to a wider presentation, mainly due to the 'Reason' column (which is cool be itself). On a smaller view port, this will force a break. Is it be possible to limit the max-width of the reason column? But that's only cosmetics.

berdir’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed.

Status: Fixed » Closed (fixed)

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