Description
Pending T366325, stream name needs to be added as a field to the forms, database tables, and returned in the mpic api json response.
For web and app base instruments, we will know what the schema title will be (ticket TK for generating a monotable stream name for web and app):
- user selects web:
- stream name: TK
- schema title: /analytics/product_metrics/web/base
- user select app:
- stream name: TK
- schema title: /analytics/product_metrics/app/base
If we are supporting custom schemas (derived from MP base schemas), we need a text input field for this use case.
Technical notes
Once designs are settled, we should have a new form field that captures if the instrument is a web base, app base, or custom instrument, and a text field for capturing the stream name if it is a custom instrument.
Note that stream names must be available on production in order to query for corresponding schema titles.
Schema titles can be retrieved by querying for stream name in the meta api << only applicable for if/when we implement an autocomplete lookup field for capturing a custom schema title.
Re: TKs << see T366949#9914737
Acceptance Criteria
- stream_name and schema_title are included in the database init script (Already done here)
- Forms are updated with latest design for this field
- API response returns corresponding schema title given the stream name
- Update the MPIC design doc
Required
- Unit/Integration tests?
- Documentation?
- Passed QA?