Closed dave-mills closed 8 months ago
Introduction of various new files for data exports
The PR includes the addition of new files namely CountriesExportSheet.php
, GeographicReachesExportSheet.php
, InitiativeCategoryExportSheet.php
, InitiativeImportTemplateExportSheet.php
, and YesNoExportSheet.php
. They serve different purposes such as generating collections of countries, geographic reaches and yes/no values, and managing export data for initiative categories and import templates. Each file contains methods defining how the data is prepared and organized for the sheet exports.
Update on 'ImportOperation.php' and 'ProjectCrudController.php' files for improved data import
The ImportOperation.php
file was tweaked to generate import templates using the new InitiativeImportTemplateExportWorkbook
class. In the ProjectCrudController.php
file, properties were adjusted to use this new class for generating templates and setting template file names.
Enhancements on 'ProjectImport.php' and 'ProjectWorkbookImport.php'
The PR has tailored the ProjectImport.php
file to implement the OnEachRow
interface and included logic for handling location-related data (continents, regions, countries) for initiatives. The ProjectWorkbookImport.php
file was also adjusted to specifically use the new 'initiatives' name for importing projects.
'composer.json' adjustments
Certain packages were updated and moved around in the composer.json
file - maatwebsite/excel
package was updated, barryvdh/laravel-ide-helper
package was shifted from 'require-dev' section to 'require' section, and a new package spatie/laravel-ray
was added to 'require-dev' section.
Overall, these changes are aimed at improving the data export capabilities and streamline the import process.
This PR fixes a bug with the project/initiative importer, and improves the import to bring in continents, regions and countries.
DONE: