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