Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fidelity typo in preference api #662

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

KristinAoki
Copy link
Member

This PR fixes the typo in the transcript_preferences api. Previous the json passed to the api was

const postJson = {
    cielo24_fideltiy: cielo24Fidelity?.toUpperCase(),
    cielo24_turnaround: cielo24Turnaround,
    global,
    preferred_languages: preferredLanguages,
    provider,
    video_source_language: videoSourceLanguage,
    three_play_turnaround: threePlayTurnaround,
};

As a result the api threw an error because it was expecting cielo24_fidelity instead of cielo24_fideltiy.

@KristinAoki KristinAoki changed the title fix: fidelity typ in preference api fix: fidelity typo in preference api Nov 6, 2023
Copy link

codecov bot commented Nov 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (77a355e) 88.02% compared to head (bbbeee3) 88.20%.
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #662      +/-   ##
==========================================
+ Coverage   88.02%   88.20%   +0.17%     
==========================================
  Files         417      417              
  Lines        6598     6602       +4     
  Branches     1428     1430       +2     
==========================================
+ Hits         5808     5823      +15     
+ Misses        765      755      -10     
+ Partials       25       24       -1     
Files Coverage Δ
src/files-and-videos/videos-page/data/api.js 100.00% <ø> (ø)
src/files-and-videos/videos-page/data/thunks.js 98.14% <100.00%> (+0.04%) ⬆️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@rayzhou-bit rayzhou-bit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small spelling nits. otherwise this looks good!

@@ -573,6 +573,39 @@ describe('TranscriptSettings', () => {

expect(screen.getByText('Failed to update 3PlayMedia transcripts settings.')).toBeVisible();
});

it('should show error alert wit default message on 3PlayMedia preferences update', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit spelling: "with"

@@ -541,7 +541,7 @@ describe('TranscriptSettings', () => {
expect(screen.getByText('Failed to update Cielo24 transcripts settings.')).toBeVisible();
});

it('should show error alert on 3PlayMedia preferences update', async () => {
it('should show error alert wit default message on 3PlayMedia preferences update', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit spelling: "with"

@KristinAoki KristinAoki merged commit 05e90b5 into master Nov 7, 2023
6 checks passed
@KristinAoki KristinAoki deleted the KristinAoki/fix-order-transcript-settings branch November 7, 2023 19:05
Ian2012 pushed a commit to eduNEXT/frontend-app-course-authoring that referenced this pull request Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants