Skip to content

Commit 73d1bd4

Browse files
committed
PL: teacher application posts userId to firehose when starting
1 parent 4e7635d commit 73d1bd4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

apps/src/code-studio/pd/application/teacher1920/Teacher1920Application.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import firehoseClient from "@cdo/apps/lib/util/firehose";
1212
export default class Teacher1920Application extends FormController {
1313
static propTypes = {
1414
...FormController.propTypes,
15-
accountEmail: PropTypes.string.isRequired
15+
accountEmail: PropTypes.string.isRequired,
16+
userId: PropTypes.number.isRequired
1617
};
1718

1819
static submitButtonText = "Complete and Send";
@@ -50,10 +51,11 @@ export default class Teacher1920Application extends FormController {
5051
// Log the user ID to firehose.
5152
firehoseClient.putRecord(
5253
{
54+
userId: this.props.userId,
5355
study: 'application-funnel',
5456
event: 'started-teacher1920-application'
5557
},
56-
{includeUserId: true}
58+
{includeUserId: false}
5759
);
5860
}
5961

dashboard/app/controllers/pd/application/teacher_application_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def new
2323
options: TEACHER_APPLICATION_CLASS.options.camelize_keys,
2424
requiredFields: TEACHER_APPLICATION_CLASS.camelize_required_fields,
2525
accountEmail: current_user.email,
26-
apiEndpoint: '/api/v1/pd/application/teacher'
26+
apiEndpoint: '/api/v1/pd/application/teacher',
27+
userId: current_user.id
2728
}.to_json
2829
}
2930
end

0 commit comments

Comments
 (0)