Writing simple web services with Ace Creating Ecto associations between profiles and stats (StatWatch)

PolicyWonk v1.0.0-rc.0 released

I just pushed PolicyWonk 1.0.0-rc.0 to hex.

This is a major update (re-write…) that has less code than the original.

v1.0 fixes several issues with the old architecture:

  • It wasn’t compatible with Phoenix 1.3 umbrella apps. Or rather, you couldn’t have separate policies for different apps in an umbrella.
  • It had a whole mess of complexity that simply wasn’t needed. I never used most of the “shortcut” options since the more explicit versions (with slightly more typing) were always clearer.
  • Returning errors from Policies was too vague. I want to know errors are being processed!
  • The config file data isn’t necessary in a more explicit model.
  • Naming was inconsistent between policies and resources.

If you use PolicyWonk, I would appreciate any feedback before declaring it done.

There are breaking changes, so make sure to read the docs on how to upgrade. Overall, the shape is similar, so there is minimal work to make the upgrade. The result works with Phoenix umbrella apps, is simpler, more flexible and has better consistency.

I think the upgrade will be well worth it.