SuffolkLITLab / docassemble-AssemblyLine

Quickly go from a paper court form to a runnable, guided, step-by-step web application powered by Docassemble. Swap out branding and pre-built questions to meet your needs.
https://suffolklitlab.org/docassemble-AssemblyLine-documentation/
MIT License
41 stars 5 forks source link

Simplify the option to filter the list of variables when saving snapshots/sessions #825

Closed nonprofittechy closed 7 months ago

nonprofittechy commented 7 months ago

Right now you need to totally redefine al_sessions_variables_to_remove. This is pretty complex.

I'm thinking of this feature:

  1. Keep the existing variables_to_filter parameter as is, which will default to loading al_sessions_variables_to_remove.
  2. Add a new custom_variables_to_filter parameter which will be exposed with a default empty set in built-in Assembly Line screens that save / load answers, so you can customize all screens by defining this one variable.

It's worth considering in the future deprecating the variables_to_filter parameter, as the current default list is pretty much stuff you should always filter out--things like built-in Types and core Docassemble variables.