docassemble-ALWeaver icon indicating copy to clipboard operation
docassemble-ALWeaver copied to clipboard

Explain the difference between 'typical role' metadata and `user_role`

Open plocket opened this issue 3 years ago • 4 comments

https://github.com/SuffolkLITLab/docassemble-AssemblyLine-documentation/pull/122#discussion_r645775371

Make sure of this explanation:

I think user_role is the runtime variable, and typical role is the "compile time" value. If typical role anything but 'unknown', then user_role is just set to that, and if it is unknown, then we ask for the user_role. I only assume we set it in the weaver because it's clearer what's happening, without a bunch of DA magic happening behind the scenes, and maybe for backwards compatibility?

plocket avatar Jun 06 '21 12:06 plocket