Polymer component for adding one or more CMs to a single consult, survey, meeting, or event as selected by the user via cerca/hummingbird typeahead. It relies on glue code to supply the council member ID(s) via this element's published attribute.
The current use case is the Add To Consultation button on the new Advisor Details page.
git clone git@github.com:Custom-Elements/glg-add-to-project.git
npm install
GLGers BEWARE:
As is, if you use the demo to attach a CM to a project, it will,
no-foolin', attach real CMs to real projects in
the real production database. Clean-up after yourself!
i.e., unattach said CMs from said project via the web UI.
(non-GLG'ers can ignore this warning, since you will/can not be authenticated.)
Begin by executing npm test from the root of the repo
Then,
- open Chrome to
http://localhost:10000/demo.html
Alternatively,
- edit your
/etc/hoststo add an entry like127.0.0.1 consultations.glgroup.com- This ensures that glg-currrent-user can read your cookies.
- then open Chrome to
http://consultations.glgroup.com:1000/demo.html
The component needs you to be auth'd to services.glgresearch.com to
figure out who you are using glg-current-user. So, we've set-up a
version of the ui-toolkit website running behind auth.
Take a look at https://services.glgresearch.com/ui-toolkit-auth/node_modules/glg-add-to-project/demo.html?cmIds=596623,582472
- Use dbSockets to add Mosaic Lists as an option under "project type" - which should probably be renamed now. Stakeholder: Ariela Rosenberg
- Persist HB indexes with lastUpdate datetime to local storage for faster subsequent loading
- Get designer feedback on GUI style
The IDs of council members to be added to the selected project.
Expected to be a comma separated string of ints. Defaults to null.
The name to use to identify the application or feature used in ATC for
tracking dashboard purposes. By default, this is set to unknown.
Toggles whether to display a UI at all. If not included, it is displayed. If included as an attribute on the element, the component is available as an invisible service.
Toggles whether to display the project owner filter in the UI. If not included, it is displayed.
Toggles whether to display the project type filter in the UI. If not included, it is displayed.
Toggles whether to display the Council Members to-be-added in the UI. If not included, it is displayed.
The person ID of the RM taking the ATC action on these experts on this
selected project. By default, this is extracted from the glg-current-user
component.
URL to the tracking service REST endpoint. Expected to include the
http/https protocal and include the trailing slash but not the data
bits. E.g., trackUrl="https://tracking.glgroup.com/track/"
(required)
URL to the Epiquery2 web socket endpoint. Expected to include the
websocket protocol. E.g.,
epiStreamUrl="wss://epistream.mydomain.com/sockjs/websocket"
(required)
URL to the cerca web service endpoint. Expected to include the
websocket protocol. E.g., cercaUrl="https://services.glgresearch.com/cerca"
(required)
fired as soon as hummingbird indexes are built and available for searching
fired when an expert is about to be added to a project
fired after an expert was successfully added to a project
fired after failing to add an expert to a project