-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
How To Load Data
Hasitha Kaushan edited this page Jul 9, 2023
·
1 revision
- Populating translation opportunities
- Populating question opportunities
- Generating explorations
- Creating a Classroom
- Start a local server and sign in as an administrator (testadmin@example.com, assume username “a”).
- Navigate to the Admin page.
- Click the Roles tab.
- In the Role editor, enter the admin username (“a”). Click Add Role, and add the “Curriculum Admin” role.
- Navigate to the Activities tab. Click Load Data under Load dummy new structures data.
- You should now see translation opportunities in the Translate Text tab at /contributor-dashboard.
- Start server and sign in as administrator (assume username “a”).
- Navigate to the Admin page.
- Click the Roles tab.
- In the Role editor, enter the admin username (“a”). Click Add Role, and add both the “Curriculum Admin” role and “Question Admin” role.
- Go to http://localhost:8181/contributor-dashboard-admin and give submit question rights and review questions rights to your current username
- Navigate back to the Admin page and navigate to the Activities tab. Click Load Data under Load dummy new structures data.
- For the question opportunities to be valid, their corresponding topics must be part of a classroom topic. Navigate to the Config tab. Click Add element under [topic_id] (in the “The details for each classroom page.” section) and enter the topic id for the new topics that were created. (You can find a topic’s ID in its page URL from the Topic and Skills Dashboard). Make sure to click save at the bottom of the config page.
- To enable the “Submit Question” tab for your user, make sure your signed in user is allowlisted for submitting question suggestions.
- To generate data, we must first navigate to the admin page. We will automatically be redirected to the
ACTIVITIES
tab. - This tab will have several sections:
- Reload a single exploration: This section has preloaded explorations. These can be loaded onto your local server by clicking the
Reload
button for each of them. - Generate dummy explorations: Along with the option to generate dummy explorations (with no content), we can also publish a certain number of them.
- Reload a single collection: This section has preloaded collections.
- Load dummy new structures data: This section provides a combination of topics, skills, stories, and exploration.
- Generate dummy skill with questions.
- Generate a dummy math classroom.
- Reload a single exploration: This section has preloaded explorations. These can be loaded onto your local server by clicking the
- We must first navigate to the
CONFIG
tab in the admin page. - In this tab, there is a section
The details for each classroom page.
in which you will find a default math classroom that is filled out. - It has details about the classroom:
- Name
- URL Fragment
- topic list intro
- topic ids: The topic ids that should be included in the classroom are listed here. We can add to this by clicking on the
Add element
option.
- More classrooms can be generated by clicking on the
Add element
option beneath this section. - Once the classroom details have been filled, to complete the process we must save changes by clicking the
Save
button at the bottom left corner of theCONFIG
tab. - If the classroom has been created successfully, you will be able to see a message
Data successfully saved
at the bottom right corner of the screen. - The newly created classroom will be visible in the
Home
tab of the learner dashboard page, or we can directly access the classroom from the linklocalhost:8181/learn/<classroom-url-fragment>
.
Have an idea for how to improve the wiki? Please help make our documentation better by following our instructions for contributing to the wiki.
Core documentation
Developing Oppia
- FAQs
- How to get help
- Getting started with the project
- How the codebase is organized
- Making your first PR
- Debugging
- Testing
- Codebase policies and processes
- Guidelines for launching new features
- Guidelines for making an urgent fix (hotfix)
- Testing jobs and other features on production
- Guidelines for Developers with Write Access to oppia/oppia
- Release schedule and other information
- Revert and Regression Policy
- Privacy aware programming
- Code review:
- Project organization:
- QA Testing:
- Design docs:
- Team-Specific Guides
- LaCE/CD:
- Developer Workflow:
Developer Reference
- Oppiabot
- Git cheat sheet
- Frontend
- Backend
- Backend Type Annotations
- Writing state migrations
- Calculating statistics
- Storage models
- Coding for speed in GAE
- Adding a new page
- Adding static assets
- Wipeout Implementation
- Notes on NDB Datastore transactions
- How to handle merging of change lists for exploration properties
- Instructions for editing roles or actions
- Protocol buffers
- Webpack
- Third-party libraries
- Extension frameworks
- Oppia-ml Extension
- Mobile development
- Performance testing
- Build process
- Best practices for leading Oppia teams
- Past Events