{"record":{"id":"110ae3434526621f","repo":"instructure/canvas-lms","slug":"inbox-settings-feature-is-disabled","errorCode":null,"errorMessage":"inbox settings feature is disabled","messagePattern":"inbox settings feature is disabled","errorType":"exception","errorClass":"GraphQL::ExecutionError","httpStatus":null,"severity":"warning","filePath":"app/graphql/mutations/update_my_inbox_settings.rb","lineNumber":61,"sourceCode":"                                                                                use_signature: input[:use_signature],\n                                                                                signature: input[:signature],\n                                                                                use_out_of_office: input[:use_out_of_office],\n                                                                                out_of_office_first_date: input[:out_of_office_first_date],\n                                                                                out_of_office_last_date: input[:out_of_office_last_date],\n                                                                                out_of_office_subject: input[:out_of_office_subject],\n                                                                                out_of_office_message: input[:out_of_office_message])\n\n    if updated_inbox_settings\n      { my_inbox_settings: updated_inbox_settings }\n    else\n      errors_for(updated_inbox_settings)\n    end\n  end\n\n  private\n\n  def check_feature_enabled\n    raise GraphQL::ExecutionError, I18n.t(\"inbox settings feature is disabled\") unless Account.site_admin.feature_enabled?(:inbox_settings)\n  end\nend\n","sourceCodeStart":43,"sourceCodeEnd":64,"githubUrl":"https://github.com/instructure/canvas-lms/blob/1c9f0bb8013ed69c4f2efe11fd483025469b7e6c/app/graphql/mutations/update_my_inbox_settings.rb#L43-L64","documentation":"UpdateMyInboxSettings#check_feature_enabled raises this when the :inbox_settings feature flag is not enabled on Account.site_admin. The mutation intentionally refuses to run unless the site-wide feature flag is turned on.","triggerScenarios":"Calling updateMyInboxSettings in an environment where the inbox_settings feature flag is off at the site admin account (default off in many installs/environments).","commonSituations":"Self-hosted or fresh Canvas installs where the flag was never enabled; feature flag disabled per-account but the mutation checks site_admin only; environment (test/beta/prod) flag drift.","solutions":["Enable the flag: Account.site_admin.feature_flag(:inbox_settings)... turn on 'inbox_settings' at the site admin feature flags UI or via console.","Verify with Account.site_admin.feature_enabled?(:inbox_settings) in rails console.","Ensure you are in the environment where the flag is enabled (dev vs prod).","Hide inbox-settings UI in the client when the flag is off (query the feature flag first)."],"exampleFix":"# before (rails c)\n# Account.site_admin.feature_enabled?(:inbox_settings) => false\n# after\nAccount.site_admin.set_feature_flag!(:inbox_settings, 'on')","handlingStrategy":"validation","validationCode":"const flags = await gql(FETCH_FEATURE_FLAGS);\nif (!flags?.inboxSettingsEnabled) throw new Error('inbox settings feature is disabled');","typeGuard":"function inboxSettingsEnabled(env) { return env?.featureFlags?.includes('inbox_settings'); }","tryCatchPattern":"try {\n  await gql(UPDATE_MY_INBOX_SETTINGS, { ...prefs });\n} catch (e) {\n  if (e.message.includes('inbox settings feature is disabled')) { /* hide feature / fallback UI */ }\n  else throw e;\n}","preventionTips":["Enable inbox_settings on Account.site_admin before using the feature","Query feature flag state to conditionally render UI","Keep dev/beta/prod flag configurations in sync"],"tags":["graphql","feature-flag","inbox-settings"],"backgroundTag":"feature-not-enabled","analyzedSha":"1c9f0bb8013ed69c4f2efe11fd483025469b7e6c","analyzedAt":"2026-09-15T20:33:18.891Z","contentChangedAt":"2026-09-15T20:33:18.891Z","schemaVersion":2},"datasetVersion":"2026-09-23T02:17:17.105Z"}