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

InfoSource plugins #28

Open
joel99 opened this issue Mar 16, 2018 · 0 comments
Open

InfoSource plugins #28

joel99 opened this issue Mar 16, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@joel99
Copy link
Contributor

joel99 commented Mar 16, 2018

We need a new generic InfoSource plugin interface that provides targetting information for the server (aka either checkin or registration).

An InfoSource needs to provide two methods:

  • options() should return filtering groups (e.g. grade, school) that can be used when requesting targets.
  • filter(filterDict) will be given a dictionary of filtering groups with keys of filtergroups and values of arrays of accepted values (e.g. {grade: [9, 10, 11]}), and should return an array user objects that satisfy the filterGroups. This method should query the appropriate service for the actual information (checkin, registration). Once the data is received, process the information into a uniform format [i.e. plugin knows that a received UserEmail field is contains the email raw targetting information]

Once the interface is made, make a plugin for either plugin or registration (whichever is ready to serve the relevant info first).
Part of #13 epic.

@joel99 joel99 added the enhancement New feature or request label Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant