Closed (fixed)
Project:
Contact Storage
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
13 Dec 2015 at 15:32 UTC
Updated:
2 May 2016 at 22:52 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
swentel commentedComment #3
swentel commentedSome screenshots
Comment #4
jibran+1 to this. This could have some test love. Just a nitpick.
We can use class constant here.
Comment #5
swentel commentedtests only + basic fixes
Not yet included #4
Comment #6
swentel commentedNot sure why the test only patch passes, it fails 'nicely' locally. :)
Comment #7
andypostplease remove extra spaces after * on next re-roll
$this->t()
Is that really needed after https://www.drupal.org/node/2593577
Comment #8
swentel commentedFixed 1 and 2. Maybe we can optimize 3 in #2476591: Use an entity route provider instead of a static routing YAML file ?
Comment #9
berdirShould we check for view access here?
This is needed because of the variable matching, right? kinda annoying.
missing t() ?
oops.
would it be easier to get the other issue in first, so we get that automatically as soon as we have a canonical link template?
Comment #10
swentel commented1. Ha, yes, that's probably a better idea (and how annoying is dreditor's context sometimes, I was looking at contact_storage_entity_base_field_info first hah - unless you're really talking about that one, then I'm missing something)
2. yeah, I cried a little :)
3. Oh yes, missed that
4. and 5.: oops haha, and yes, it might be easier to get that other one in first, makes this patch even smaller
Will look at them on monday or tuesday unless someone beats me to it.
Comment #11
berdir1. Yes, the context there is confusing but that's not dreditor's fault, that's how it is in the diff. You understood it correctly I think :)
2. Thinking about this again, why not use _entity_view in the route?
3. Because if it's a static title, then we can also just put it in _title in the route?
Comment #12
dasjoattached is a simple reroll based on the latest 8.x-1.x
Comment #13
dasjoComment #14
berdirComment #15
efrainh#13 fixed the error i was getting when trying to view/edit a message using version 8.x-1.0-beta2:
But it doesn't add the new features planned on this issue:
Comment #16
berdirWould also help with #2676552: File usage view breaks if an entity uses a file that has no canonical link template
@efraihn: While this would help with that problem, it's message that has to be fixed. Modules must check that an entity has a canonical link template before calling it.
Comment #17
thamasThese modifications are needed to make the module really cool. I was shocked to see it provides an "Edit" option but not a "View" one.
Thanks for all the work!
Comment #18
asrobCombined patches -8 and -12 into a big one. Tested with 8.x-1.x-dev.
Comment #19
andypostComment #24
swentel commentedReroll again - tests pass on my local machine.
Address point 1 from Berdir's review in #9.
Current patch also uses the static routing file, which obsoletes the points in the review regarding the controller, title callback and route providere.
Comment #25
berdirOk, lets just do this and clean up routes/controllers in the other issue to let them be generated.
Comment #26
larowlanCouple of minor observations.
This seems redundant? We can just defer to the parent here yeah?
c/p error
Comment #27
berdir1. The variable name needs to match. But not really sure why we actually need a custom controller, I think we can possibly remove the controller again when adding a default route provider.
Comment #28
swentel commentedMy patch in #24 doesn't even have that controller anymore, or am I going nuts ?
Comment #29
larowlan@swentel yeah you're right, I just reviewed the latest file listed in the issue summary, sorry.
Have hidden all the irrelevant stuff now.
Comment #30
larowlanCredit update
Comment #32
larowlanI think we need to use entity access here instead?
Which already defers to 'administer contact forms'.
But in reality, I think we need a new permissions 'view contact messsages'.
But that should be a new follow-up - 99% of the sites I work on we'd give low-level admins access to submitted messages. But 'administer contact forms' is a protected permission (because field create/edit access).
So pushed this as-is, will create that follow-up.
Comment #33
larowlan#2708809: Revisit permissions required to view contact messages is follow up