-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
[Import] [Membership] Cleanup, fix form breakage (unreleased regression) #23689
[Import] [Membership] Cleanup, fix form breakage (unreleased regression) #23689
Conversation
(Standard links)
|
51d05aa
to
018585b
Compare
e3b986a
to
181b353
Compare
3fab5a0
to
1749d49
Compare
This is an attempt to get away from fixing known breakage being blocked by civicrm#23689 These functions should be mostly as-yet-unused, or only minorly changed but required to fix the known issues
1749d49
to
98be66f
Compare
This is an attempt to get away from fixing known breakage being blocked by civicrm#23689 These functions should be mostly as-yet-unused, or only minorly changed but required to fix the known issues
Missed out the csv files
Enotice fix
Fix test to test the matching csv (changed by mistake)
98be66f
to
cabc53a
Compare
This is an attempt to get away from fixing known breakage being blocked by civicrm#23689 These functions should be mostly as-yet-unused, or only minorly changed but required to fix the known issues
cabc53a
to
602416e
Compare
Test fails are because of need to adjust test for recent merge of import queue pr |
602416e
to
6f97937
Compare
@eileenmcnaughton the test failure seems related : CRM_Member_Import_Parser_MembershipTest::testImportOverriddenMembershipWithInvalidOverrideEndDate /home/jenkins/bknix-dfl/build/core-23689-3kbst/web/sites/all/modules/civicrm/CRM/Member/BAO/MembershipType.php:399 |
6f97937
to
aadb4fa
Compare
@monishdeb yeah - it didn't fail locally - but I pushed up a small change in the hope it helps - it is to do with the test not the import code |
Ah - it's something to do with membership set up - def test related - but hence it didn't fail in isolation - still digging |
…validate now as that is where it fails
aadb4fa
to
2d306c4
Compare
OK - the test failed because it now fails during |
@monishdeb it has passed! |
|
thanks heaps |
Overview
[Import] [Membership] Cleanup
with things having been merged in different orders to when I wrote them the focus on the Contact import left some others broken - I'm going through fixing them. In looking at the membership import it is fundamentally a simple import and after fixing one bit here & another there & adding a bunch of tests I wound up pushing through & adopting the methodology and functions worked out for the (more complicated) contact import.
I going through 'rounds' of review on each import - adding tests, UI testing, fixing & then coming back & doing again so that they all get QA - and are working in the rc.
Please scrol to the bottom for my QA testing information
Before
Form errors
After
The import now uses the data table, uses lots of shared & standardised methods, has more tests - oh and it doesn't have that nasty fatal error
Technical Details
The underlying changes are
get
andset
methods to pass information around (use theuserJob
table)getTransformedValue
the returned value will already have dates, money, option values etc transformed to the right format. If they are invalid they will be transformed toinvalid_import_value
- this makes most of the remaining formatting and validation pointlessComments
Fixes https://lab.civicrm.org/dev/core/-/issues/1819
I tested https://lab.civicrm.org/dev/core/-/issues/1204 against this & it is fixed - although whether it was already fixed I don't know