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

Exposed the trusted field for developer keys in the admin panel #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kylehovey
Copy link

This allows you to set a developer key as trusted, which lets you skip the OAUTH approval view. This is helpful for creating a key for use with login on the mobile apps.

mpetrowi pushed a commit that referenced this pull request Apr 26, 2021
closes MAT-47
flag=expand_cc_languages

Update the list of closedCaptionLanguages to all those supported
in Canvas. How did I come up with the list?

1. load a page with an RCE
2. set a breakpoint at the bottom of closedCaptionLanguages and refresh
3. copy the result of `Object.keys(closedCaptionLanguages)`. This are the
   old locales
4. open a rails console
5. run
   cnvs_l = []
   I18n.available_locales.each {|s|  cnvs_s << s.to_s}
   old_l = <paste result of #3 above>
   the_missing_locales = cnvs_l - old_l

I added the missing locales to closedCaptionLanguages.
Then I removed zh_cn and zh_tw because those are not Simplified and
Traditional Chinese, but PRC and Taiwan Chinese.
I changed Hebrew from iw to he.
I left languages in the closedCaptionLanguages.js file that are
not in Canvas.
I did not use the *-x-k12 locales

test plan:
  - put the user in English (Canada) and turn on the auto show
    closed caption feature
  - on a video in the RCE, open the Video Options tray
  - click on the + subtitle button
  > expect the full list of locales (like English (UK) and Armenian)
  - add subtitles for English and English (UK)
    a valid .srt file looks like:
1
00:00:00,000 --> 00:00:02,000
My first video
    it will be helpful to edit the string a little for the different
    languages so you can recognize what language file is being shown.
  > expect generic english captions
  - Delete the English subtitle and add any other language but English
  > expect the subtitles to be in English (UK)
  - add subtitles for English (Canada)
  > expect subtitles to be in English (Canada)

Change-Id: I8f18d666482a67063a3b8101b7778e32cd440b45
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/262794
Tested-by: Service Cloud Jenkins <[email protected]>
Reviewed-by: Nate Armstrong <[email protected]>
QA-Review: Nate Armstrong <[email protected]>
Product-Review: Ed Schiebel <[email protected]>
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.

1 participant