摘要 |
The disclosure is directed to controlling availability of a feature of an application without having to change a code of the application. A gate application employs a “gate” that facilitates making a feature available to a set of users without having to change the code of the application as the set of users to whom the feature is to be made available change. The gate includes parameters and criteria that can determine whether a particular feature of the application, e.g., a photo tagging feature of a social networking application, is to be made available to a particular user. If the request attributes, e.g., attributes associated with a requesting user, satisfy the criteria defined in the gate, the gate indicates to the host application to make the feature available, which then executes a portion of the code corresponding to the particular feature to make the particular feature available to the user. |
主权项 |
1. A method performed by a computing system, comprising:
receiving, by a gate application from a host application executing on a computer, a request object associated with a user of the host application, the gate application controlling availability of a feature of the host application to the user based on a criterion defined in the gate application, the gate application controlling the availability of the feature at runtime, the gate application including multiple parameters and each of the parameters being associated with a parameter value; obtaining, by the gate application, multiple attributes of the request object, the attributes associated with the user, each of the attributes having an attribute value; determining, by the gate application, whether the attributes satisfy the criterion; and responsive to a determination that the attributes satisfy the criterion, causing execution of a portion of host application code associated with the feature to make the feature available to the user. |