Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Epic/ListDistinctFieldValues #15

Open
faraonc opened this issue Jan 21, 2019 · 0 comments
Open

Epic/ListDistinctFieldValues #15

faraonc opened this issue Jan 21, 2019 · 0 comments
Assignees
Labels
epic A big user story

Comments

@faraonc
Copy link
Member

faraonc commented Jan 21, 2019

Objective

Chrome wants to get the following unique values for the following field names:

  • Publisher (lastname & firstname)
  • Study Site (city, state, province, & country)
  • Call Type Name
  • Ground Type
  • Sensor Type
  • Sensor Name
  • Record Timestamp (Between min and max bounds)

Purpose

To generate available values to search.

Procedure

  1. Chrome goes to Search Filter Page
  2. hwsc-frontend calls hwsc-app-gateway-svc's rpc ListDistinctFieldValues (AppGatewayServiceRequest) returns (AppGatewayServiceResponse) {}
    • Required args for AppGatewayServiceRequest
      • NONE
  3. hwsc-app-gateway-svc calls hwsc-document-svc's rpc ListDistinctFieldValues (DocumentRequest) returns (DocumentResponse) {}
    • Required args for DocumentRequest
      • NONE
  4. hwsc-document-svc queries MongoDB
  5. hwsc-document-svc's returns to hwsc-app-gateway-svc from rpc ListDistinctFieldValues (DocumentRequest) returns (DocumentResponse) {}
    - Status: &pb.DocumentResponse_Code{Code: uint32(codes.OK)}
    • Message: codes.OK.String()
    • QueryResults: queryResult
  6. hwsc-app-gateway-svc returns to hwsc-frontend from rpc ListDistinctFieldValues (AppGatewayServiceRequest) returns (AppGatewayServiceResponse) {}
    - Status: &pb.AppGatewayServiceResponse_Code{Code: uint32(codes.OK)}
    • Message: codes.OK.String()
    • QueryResults: queryResult
  7. hwsc-frontend checks Status or Message
  8. If OK hwsc-frontend renders Search Filter Page, else a default error page with error 500.
@faraonc faraonc added the epic A big user story label Jan 21, 2019
@faraonc faraonc self-assigned this Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
epic A big user story
Projects
None yet
Development

No branches or pull requests

1 participant