FLUID-5831: Use of the "storeType" option to the prefs builder should displace the default store grade

Metadata

Source
FLUID-5831
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Colin Clark
Reporter
Antranig Basman
Created
2015-12-16T13:19:28.506-0500
Updated
2024-07-22T09:30:36.971-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Prefs Framework

Description

The prefs editor accepts an option "storeType" which configures the type of preferences store:

http://docs.fluidproject.org/infusion/development/PreferencesEditor.html#prefseditor-options

Since we moved to the new framework, the default store grade is held in a contextAwareness block as so:

fluid.defaults("fluid.prefs.store", {
        gradeNames: ["fluid.prefs.dataSource", "fluid.contextAware"],
        contextAwareness: {
            strategy: {
                defaultGradeNames: "fluid.prefs.cookieStore"
            }
        }
    });

Without interacting with this block, the storeType option ends up adding to this default grade rather than displacing it.

Comments