Bij1 CiviCRM migratie extensie (van: https://lab.civicrm.org/partners/civicoop/bij1/bij1migratie)
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 months ago | |
---|---|---|
CRM/Bij1migratie | 1 year ago | |
Civi | 2 years ago | |
api/v3 | 1 year ago | |
data | 3 months ago | |
docs | 1 year ago | |
form-processors | 1 year ago | |
images | 1 year ago | |
mixin | 1 year ago | |
sql | 2 years ago | |
templates/CRM/Bij1migratie/Form | 2 years ago | |
tests/phpunit | 1 year ago | |
xml | 2 years ago | |
.woodpecker.yml | 4 months ago | |
LICENSE.txt | 2 years ago | |
README.md | 4 months ago | |
bij1migratie.civix.php | 1 year ago | |
bij1migratie.php | 1 year ago | |
info.xml | 1 year ago | |
mkdocs.yml | 1 year ago | |
phpunit.xml.dist | 1 year ago |
README.md
bij1migratie
Helps migrate BIJ1's data sources (as CSV) to CiviCRM, including:
- Airtable
- Mollie
- Customers
- Payments
- Chargebacks
The extension is licensed under AGPL-3.0.
Requirements
- PHP v7.2+
- CiviCRM (tested: 5.48.0)
- CiviCRM CLI
- CiviCRM extensions:
Testing
Development
Documentation
Installation (Web UI)
Learn more about installing CiviCRM extensions in the CiviCRM Sysadmin Guide.
Installation (CLI, Zip)
Sysadmins and developers may download the .zip
file for this extension and
install it with the command-line tool cv.
cd <extension-dir>
cv dl bij1migratie@https://github.com/FIXME/bij1migratie/archive/master.zip
Installation (CLI, Git)
Sysadmins and developers may clone the Git repo for this extension and install it with the command-line tool cv.
git clone https://github.com/FIXME/bij1migratie.git
cv en bij1migratie
Getting Started
- Zorg dat de volgende Civi instellingen ingesteld zijn:
bij1_basisbedrag
- In CiviCRM, onder tab
Beheer
, ga naarAutomation
en danForm processors
. Gebruik daar de import knop om de.json
files uit mapform-processors
te importeren. - Onder tab
Beheer
, ga naarMigratie Bij1 -> CiviCRM
, e.g. http://localhost/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fbij1migratie%2Fform%2Fcsvselect. - Vul het formulier in en start de import (sample data), in volgorde:
- Mollie klanten
- Airtable
- Betalingen
- ChargeBacks
Overview
data/**/*.csv
: anonymized source data samplesMapping/*Mapping.php
: match names used in form processors to column positions in source CSVs.CRM/Bij1migratie/CsvFile.php#sanitize*()
: column selection, transformationsCRM/Bij1migratie/Migratie.php#migreer*()
: checks, import by API, row-level error loggingform-processors/bij1_*_migratie.json
: how to process imported fields
Testing
Static analysis
phpstan analyse .
Unit tests
- place this repository in a CiviCRM installation
- run:
phpunit tests
Reloading extension code to container
Given an environment variable $CIVICRM_BIJ1_PATH
pointing to your local
checkout of civicrm-bij1
:
export FLDR=/var/lib/docker/volumes/civicrm-bij1_civi-data/_data/wp-content/uploads/civicrm/ext/crm-bij1migratie/
mkdir -p $FLDR
sudo cp -r ./* $FLDR
docker compose -f $CIVICRM_BIJ1_PATH/docker-compose.yml exec civi bash -c "cv ext:enable bij1migratie"
Build (this) documentation
Run:
pip install mkdocs
mkdocs serve
Known Issues
(* FIXME *)