taxonworks icon indicating copy to clipboard operation
taxonworks copied to clipboard

Export user preferences on project export

Open kleintom opened this issue 8 months ago • 17 comments

I tested this locally with 1) default (reset) preferences, and 2)

{"layout"=>
  {"tasks::digitize::collectionObjects::hideBuffered"=>true,
   "tasks::digitize::collectionObjects::hideCatalogNumber"=>true,
   "tasks::digitize::LeftColumnOrder"=>["BiologicalAssociation", "TaxonDeterminationLayout", "TypeMaterial"],
   "tasks::extract::componentsOrder"=>["ByComponent", "MadeComponent", "ProtocolsComponent", "OriginComponent", "IdentifierComponent", "RepositoryComponent", "CustomAttributes"]},
 "disable_chime"=>false,
 "items_per_list_page"=>20,
 "taxon_name_autocomplete_redirects_to_valid"=>false,
 "default_hub_tab_order"=>["tasks", "data", "favorite"]}

Two caveats, please send back to me if there's any concern:

  • I didn't try all of the preferences, maybe there are some that are more complicated?
  • as far as I could tell the quoting gymnastics are necessary, but I didn't check/don't know if they do the right thing if there's already an escaped " in the preferences (since I'm expecting that never happens...)

kleintom avatar Jun 05 '24 16:06 kleintom