canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

Cannot find "Allow Include Parameters" checkbox

Open minh-ht opened this issue 1 year ago • 0 comments

Summary:

I cannot find "Allow Include Parameters" checkbox. I followed this guide but there was a checkbox with label "Allow Include Parameters" shown in the guide but not when I tried on the real page. This is from my local canvas image This is from the guide image

Steps to reproduce:

  1. Login using site admin account
  2. From Admin on side bar go Admin > Site Admin > Developer Keys > Create API Key
  3. Enable "Enforce Scopes"

Expected behavior:

"Allow Include Parameters" checkbox is shown.

Actual behavior:

"Allow Include Parameters" checkbox is missing.

Additional notes:

  • I run Canvas LMS local for development
  • I tried to find the checkbox in source code to see if it was removed or not and it's still there
  • From the source code I knew that to enable the checkbox, the feature "developer_key_support_parameter" also needed to be enabled. I enabled it in feature setting and no luck, it still didn't show up.
  • I found where the feature checking was and tried to modify the code to see why it didn't show up. There was a block of code that does the thing with conditions. The instruction in the first condition failed to find the enabled feature "developer_key_support_parameter". The instructions in the second and third conditions ran well. If I deleted the first instruction with its condition, the checkbox I was looking for would appear. This is the part I'm talking about: https://github.com/instructure/canvas-lms/blob/master/lib/feature_flags.rb#L90-L99

minh-ht avatar Jan 17 '24 13:01 minh-ht