To simplify setup.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | media-wysiwyg-view-mode-2062659-9.patch | 19.12 KB | fengtan |
| #8 | media-wysiwyg-view-mode-2062659-8.patch | 19.12 KB | fengtan |
| #7 | media-wysiwyg-view-mode-2062659-7.output.txt | 5.22 KB | fengtan |
| #6 | media-wysiwyg-view-mode-2062659-6.patch | 19.76 KB | aaron |
| #4 | media_wysiwyg_view_mode-2062659-4.patch | 19.09 KB | Anonymous (not verified) |
Comments
Comment #1
dave reidComment #2
Anonymous (not verified) commentedHere you go!
Comment #3
saltednutLooks like this needs a reroll?
Comment #4
Anonymous (not verified) commentedNew patch with update hook renamed.
Comment #6
aaron commentedHere's a reroll.
Comment #7
fengtanThanks for the patchs.
Tried #6 against 7.x-2.x, looks like it does not apply anymore (see output attached).
Comment #8
fengtanRolled a new patch that should apply against the current 7.x-2.x.
Comment #9
fengtanFound another issue: media_variable_get() should not be used since #1406948: Clean up and remove includes/media.variables.inc. Attached is a new patch that should fix it. Here is the diff with #8:
Also had a few tests:
Looks good. Maybe someone else can test ?
Comment #11
fengtan#9: media-wysiwyg-view-mode-2062659-9.patch queued for re-testing.
Comment #13
aaron commentedI am not certain why it's not passing for Drupal. It passes the tests when I run them locally. This is the error that it's failing on:
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'file_managed.type' in 'where clause': SELECT file_managed.fid AS entity_id, :entity_type AS entity_type, NULL AS revision_id, :bundle AS bundle FROM {file_managed} file_managed WHERE (file_managed.type = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => image [:entity_type] => file [:bundle] => file ) in EntityFieldQuery->execute() (line 1140 of /var/lib/drupaltestbot/sites/default/files/checkout/includes/entity.inc).
I will try to force it to retest again.
Comment #14
aaron commented#9: media-wysiwyg-view-mode-2062659-9.patch queued for re-testing.
Comment #16
ParisLiakos commented#9: media-wysiwyg-view-mode-2062659-9.patch queued for re-testing.
Comment #17
jrreid commentedLooks like it passed this time. Tested locally as well, seems to work as intended for me.
Comment #18
aaron commentedComment #19
ParisLiakos commentedis there any reason we impement the hooks instead of putting directly the logic to the corresponding functions?
i mean they could serve as an example but there is no other point
we should either remove the == TRUE or make it strict, which i think is not needed..just remove it
i dont see where this permission is used?
Comment #20
ParisLiakos commentedFinally we should write some tests, i will do it if noone else does.
Comment #21
fengtanThanks for the review ParisLiakos. I believe you are right:
1. The logic should lie in the actual functions.
2. ok
3. This permission does not seem to be used, guess we can remove it.
Note: the submodule is also being rolled in media as part of #1792738: Allow custom file view modes for WYSIWYG display
Comment #22
ParisLiakos commented