Skip to content

Conversation

@ananyarrao330
Copy link

No description provided.

TaylorBrown96 and others added 30 commits November 19, 2025 03:00
- app/helpers/importable_exportable_helper.rb
- app/helpers/duplicated_action_helper.rb
- app/services/export.rb
- app/services/import.rb
- app/services/field_mapping.rb
- app/controllers/export_controller.rb
- app/controllers/import_controller.rb

Note: I've added some filler code so GitHub doesn't throw "Cannot upload empty files" error when commited.
…stly implemented external classes for creation as well.
…elating to the Questionnaire Item and Question Advice example.
… duplicate records in the try_import_records method. This method should be extracted to the service.
…r, everywhere kept refering to the question_id. This wouldn't work for importing, so I changed the schema to use item_id rather than question_id and changed all the references I found to use item_id as well.
- Added script to export AssignmentTeam records filtered by assignment_id
- Included team members, emails, and member counts in detailed export
- Improved export process explanation and cleaned up runner command usage
- Ensured compatibility even without parent association by resolving assignment names manually
… the export controller to be able to send stuff to the frontend for export and index
# Conflicts:
#	app/helpers/importable_exportable_helper.rb
Import and Export Functionality
@github-actions
Copy link

2 Warnings
⚠️ Pull request is too big (more than 500 LoC).
⚠️ Schema changes detected without a corresponding DB migration.

Generated by 🚫 Danger

@github-actions
Copy link

🚨 RSpec Tests Report

Failing Model Test Cases:
rspec ./spec/models/multiple_choice_checkbox_spec.rb:9 # MultipleChoiceCheckbox#edit returns the JSON structure for editing
rspec ./spec/models/multiple_choice_radio_spec.rb:20 # MultipleChoiceRadio#edit when editing a quiz item returns JSON for the item edit form
rspec ./spec/models/multiple_choice_radio_spec.rb:38 # MultipleChoiceRadio#complete when given a valid item id returns JSON for a quiz item with choices
rspec ./spec/models/multiple_choice_radio_spec.rb:57 # MultipleChoiceRadio#view_completed_item when user answer is correct includes correctness in the response
rspec ./spec/models/questionnaire_spec.rb:120 # Questionnaire.copy_questionnaire_details creates a copy of the questionnaire
rspec ./spec/models/questionnaire_spec.rb:132 # Questionnaire.copy_questionnaire_details creates a copy of all questions belonging to the original questionnaire

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.

4 participants