T360731 T360707
==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 [[ https://meta.wikimedia.org/w/api.php | meta api ]] << only applicable for if/when we implement an autocomplete lookup field for capturing a custom schema title.
==Acceptance Criteria
[] `stream_name` is included in the database init script
[] Forms are updated with latest design for this field
[] API response returns stream name and corresponding schema title
==Required
[] Unit/Integration tests?
[] Documentation?
[] Passed QA?