Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide ability to disable/enable caching of form values for batch connect apps #386

Closed
ericfranz opened this issue Jan 22, 2020 · 0 comments

Comments

@ericfranz
Copy link
Contributor

ericfranz commented Jan 22, 2020

Related Discourse topics:

  1. https://discourse.osc.edu/t/override-caching-of-attribute-values-in-user-form-for-interactive-apps/676
  2. https://discourse.osc.edu/t/disable-autofill-in-dashboard/456

This could be set system wide, or per batch connect app, or per attribute with this pseudocode:

def cache_attribute_value?
  if attribute_has_cache_set_to_true_or_false?
    attribute_cache_setting_value
  elsif app_has_cache_set_to_true_or_false?
    app_cache_setting_value
  elseif system_wide_has_cache_set_to_true_or_false?
    systemwide_cache_setting_value
  else
    true
  end
end
  • To specify the attribute cache setting in the form.yml, use enable_caching_attr_value: true or enable_caching_attr_value: falsein the settings for the specified attribute.
  • To specify the app wide cache setting in the form.yml, use enable_caching_attr_values: true or enable_caching_attr_values: false in the top level of the yaml (along with cluster:, form: and attributes:
  • To specify the app wide cache setting system wide, set the environment variable OOD_BATCH_CONNECT_CACHE_ATTR_VALUES=FALSE (or any valid falsy value for an env var for OnDemand
    FALSE_VALUES=[nil, false, '', 0, '0', 'f', 'F', 'false', 'FALSE', 'off', 'OFF', 'no', 'NO']
    )

Also, there may be a better name than cache for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants