Questions about the way ecto is used in event.ex

Hi all,

I am trying to understand the way Mobilizòn uses the ecto changeset facility, and I have some questions about design decisions made, etc. Is there anybody left on the project who was around when those decisions were made?

Specifically I find myself wondering why change/2 was used rather than cast/2 on what is clearly external data. Is the data validated elsewhere, making the cast/2 validation redundant?

Anyway, I’d very much like to improve my understanding of why these decisions were taken, and so if it’s documented somewhere or if somebody remembers it would be wonderful.

Best,

Mark

Hi,

Could you pinpoint where change/2 is used? Mobilizon.Events.Event uses cast/2 from what I can see.