This task will track the migration of EventLogging schemas & stream so to Event Platform schemas.
[x] SearchSatisfaction
[x] TemplateWizard
...
(TODO: Add more schemas here as they are scheduled or done)
---
====== Migration plan for a schema:
- Create /analytics/legacy/<schema_name> schema (using [[ https://gerrit.wikimedia.org/r/plugins/gitiles/schemas/event/secondary/+/refs/heads/master/scripts/eventlogging_legacy_schema_convert.js | eventlogging_legacy_schema_convert script ]])
- Manually evolve the Hive table to use new schema:
```
schema_name=searchsatisfaction
table="event.${schema_name}"
schema_uri="/analytics/legacy/${schema_name}/latest"
echo "Evolving $table using schema at $schema_uri"
spark2-submit --conf spark.driver.extraClassPath=/usr/lib/hadoop-mapreduce/hadoop-mapreduce-client-common.jar:/srv/deployment/analytics/refinery/artifacts/hive-jdbc-1.1.0-cdh5.10.0.jar:/srv/deployment/analytics/refinery/artifacts/hive-service-1.1.0-cdh5.10.0.jar --driver-java-options='-Dhttp.proxyHost=webproxy.eqiad.wmnet -Dhttp.proxyPort=8080 -Dhttps.proxyHost=webproxy.eqiad.wmnet -Dhttps.proxyPort=8080' --class org.wikimedia.analytics.refinery.job.refine.tool.EvolveHiveTable /srv/deployment/analytics/refinery/refinery-job.jar --table=${table}" --schema_uri="${schema_uri}"
```
- Add entry to wgEventStreams, wgEventLoggingStreamNames and wgEventLoggingSchemas to rolling deploy changes to make EventLogging extension produce data to EventGate. Example: https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/607333/2/wmf-config/InitialiseSettings.php
- Once the legacy stream's data is fully produced through EventGate, switch to using Refine job that uses schema repo instead of meta.wm.org. Example: https://gerrit.wikimedia.org/r/c/operations/puppet/+/610055/1/modules/profile/manifests/analytics/refinery/job/refine.pp
- Modify https://meta.wikimedia.org/wiki/Schema_talk:SchemaName and note that schema has been migrated to Event Platform.
- Edit the producer extension.json and set EventLoggingSchemas to the new schema URI.
-- Once this change is fully deployed, edit wgEventLoggingSchemas in InitialiseSettings.php and remove the schema's entry.