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

LTI-379: rake task to bulk add settings #264

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

Conversation

Mariam05
Copy link
Collaborator

@Mariam05 Mariam05 commented Jul 3, 2024

A new rake task was added to allow settings to be added to a tenant in bulk.

The rake task format is: rake tenant:settings:bulk_add[tenant-uid, path-to-json-file]

For example, if these are the current settings for tenant 'test':
{ "ext_params" => { "join" => { "key1" => "value1"}}}

And this is the content of my json file:

{ 
"ext_params": { 
      "join": {  "key2":  "value2" },
      "create": { "key3": "value3" }
      },
"enable_shared_rooms": "true"
}

then the result would be:

{ 
"ext_params" => { 
      "join" => { "key1" => "value1", "key2" => "value2"},
      "create" => { "key3" => "value3" }
      },
"enable_shared_rooms" => "true"
}

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