We introduced a permissions namespace that speaks the domain language, and many resources (served by graphql, but should work in any case) expose flags about permitted operations...
So that the SPA can do data-driven UI. Still in the discovery phase though...
Yeah, something like that is definitely an option. Direct coupling with an API is quite convenient, but if I want this to be a in a library I’m going to need something slightly more generic. Maybe it’ll take a few walks before I figure out a good way 🙂
👋 @ddeaguiar I’ve raised https://github.com/pedestal/pedestal/pull/673but the build is failing because Github Actions has introduced last month a guard against scripts modifying env variables (eg lein
setting LEIN_HOME
). It seems that you can allow this by setting the ACTIONS_ALLOW_UNSECURE_COMMANDS
to true
see https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/