Skip to content

Commit

Permalink
fix: remove courseId from event
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodra committed Jun 3, 2024
1 parent ada130a commit e839f1e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/courseware/course/sequence/Unit/ContentIFrame.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export const testIDs = StrictDict({

const ContentIFrame = ({
iframeUrl,
courseId,
shouldShowContent,
loadingMessage,
id,
Expand All @@ -47,7 +46,6 @@ const ContentIFrame = ({
id,
iframeUrl,
onLoaded,
courseId,
});

const {
Expand Down Expand Up @@ -126,7 +124,6 @@ ContentIFrame.propTypes = {
elementId: PropTypes.string.isRequired,
onLoaded: PropTypes.func,
title: PropTypes.node.isRequired,
courseId: PropTypes.string.isRequired,
};

ContentIFrame.defaultProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ exports[`Unit component output snapshot: not bookmarked, do not show content 1`]
id="test-props-id"
/>
<ContentIFrame
courseId="test-course-id"
elementId="unit-iframe"
id="test-props-id"
loadingMessage="Loading learning sequence..."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const stateKeys = StrictDict({
const useIFrameBehavior = ({
elementId,
id,
courseId,
iframeUrl,
onLoaded,
}) => {
Expand Down Expand Up @@ -99,7 +98,6 @@ const useIFrameBehavior = ({
sendTrackEvent('edx.bi.error.learning.iframe_load_failed', {
iframeUrl,
unitId: id,
courseId,
});
logError('Unit iframe failed to load. Server possibly returned 4xx or 5xx response.', {
iframeUrl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ const props = {
elementId: 'test-element-id',
id: 'test-id',
iframeUrl: 'test-iframe-url',
courseId: 'test-course-id',
onLoaded: jest.fn(),
};

Expand Down Expand Up @@ -280,7 +279,6 @@ describe('useIFrameBehavior hook', () => {
hook.handleIFrameLoad();
const eventName = 'edx.bi.error.learning.iframe_load_failed';
const eventProperties = {
courseId: props.courseId,
unitId: props.id,
iframeUrl: props.iframeUrl,
};
Expand Down
1 change: 0 additions & 1 deletion src/courseware/course/sequence/Unit/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const Unit = ({
<UnitSuspense {...{ courseId, id }} />
<ContentIFrame
elementId="unit-iframe"
courseId={courseId}
id={id}
iframeUrl={iframeUrl}
loadingMessage={formatMessage(messages.loadingSequence)}
Expand Down

0 comments on commit e839f1e

Please sign in to comment.