Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. # All Companies Report Tab Architecture
  2. The architecture for this feature will consist of Frontend and Backend changes.
  3. ### Backend
  4. Create a snowflake endpoint (`report_actions/all_report_companies`) that takes a `report_id` and a `q` object.
  5. On this endpoint we will build a filter object, in a should-bool-must structure, to pass to ES.
  6. 1. Grab all associated smart filters.
  7. 2. Grab report meta companies id array.
  8. 3. Create `bool-must` objects and push them into `should:[]`
  9. 4. Query ES
  10. ### Frontend
  11. Create a new all-reports-tab vue component that hits the snowflake endpoint. BaseSith will account for sending keyword
  12. filters, sorting, and pagination. This will be a standard tab for all reports and be the first thing you see when opening
  13. a report.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement