Miguel Palhas

Results 106 comments of Miguel Palhas

Well, I think I'm out of luck. According to all official docs & random youtube videos, my AC is suposed to have this sensor. But the option doesn't show on...

I guess what we need here is a way to distinguish between multiple types of requests. We only considered regular REST requests, but there's also websockets (which LiveView is a...

> `Dictator.LiveView` and `Dictator.GraphQL` I like this approach. assuming it's feasible. I can't picture right away how this would work One question though. Would it be `Dictator.LiveView` or `Dictator.PhoenixChannels`? are...

Yes. That sounds like a good idea Either that, or define the opposite on the policy itself. e.g.: a `__before_compile__` call that would define `def can?(_, _, _), do: false`,...

makes sense, but why `has_permission?` instead of `can?`

> Honestly, just not to confuse with calling the policy directly. This is very weak api design, in my opinion. If you're reaching for synonyms just to avoid confusion, then...

I just hope you chose that username on purpose for these moments. because if so, you now have my full respect :smile:

> Yeah, I agree, but it's mostly because the API would be different. Don't you think that could cause confusion? Same function, completely different parameters? I don't think it would,...

> Ah, you're saying when checking a PostPolicy to render something for the current post, but then CommentPolicy to check if we should render something regarding the comments? yes. once...

Agree, but I don't think we should care about a fallback controller at all. If people want to reach a fallback controller, the way to do that is to return...