Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2014 at 20:41 UTC
Updated:
14 Aug 2015 at 12:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
vijaycs85Currently blocked by #2293105: MigrateActionConfigSchemaTest duplicates all its code from SchemaCheckTestTrait
Comment #2
vijaycs85Here is the initial file with just test addition from #2293105-6: MigrateActionConfigSchemaTest duplicates all its code from SchemaCheckTestTrait
Comment #3
vijaycs85Comment #5
vijaycs85Not fixed:
Looks like we are trying to migrate below variables as config, but they don't exist as config or moved to some other place.
Fixed:
This patch would produce 4 fails for the 2 items in 'not fixed' (as they are running twice).
Comment #7
gábor hojtsyWow, good job! #2293063: Config schema mapping parsing is inconsistently forgiving, does not conform to the interface also found several issues with migration tests, but none of them are overlapping, so looks like we are fine doing these separately :)
Comment #8
gábor hojtsyCan we also get rid of MigrateActionConfigSchemaTest in favor of just a method in an existing test like the rest here? Now that #2293105: MigrateActionConfigSchemaTest duplicates all its code from SchemaCheckTestTrait landed :)
Comment #9
vijaycs85yep, we can remove it part of this issue.
Comment #11
vijaycs85Created 2 new issues #2294341: Migrate aggregator_category_selector variable to D8 properly and #2294345: Migrate field_language_fallback variable to D8 properly to track those 2 fails... Is it Ok to remove those config to move forward with this issue?
Comment #12
vijaycs85Comment #13
benjy commentedSince neither of them are used in D8 anymore, from what I can tell, lets remove them and we can figure out what to do in the relevant issues.
Comment #14
gábor hojtsyI agree its fine to remove them if those are not used in D8 anymore especially if you have issues to figure them out.
Comment #15
vijaycs85Ok, removing unused variables and associated migration code.
Comment #17
vijaycs85removing test leftover...
Comment #19
andypostWorking on #2292821: Use widget for comment subject field I found that migrate schema for comment migrations is inconsistent
how does duplicated keys works?
Comment #20
vijaycs85another test cleanup...
- the later one override and it is a mistake.
Comment #21
gábor hojtsyI think this looks great for the scope of making migrates tested and indeed found several bugs in migrations :) Good stuff.
Comment #22
alexpottReally nice work!
I don't think we should be adding a separate test method to all the migrate tests. This should be combined with
testActionSettingssince thatTests migration of action variables to action.settings.yml.and so does this. This will save 2 additional test set ups since these tests are run twice.This pattern is repeated a lot throughout the patch - all instances need fixing.
Comment #23
vijaycs85Thanks for your feedback @alexpott. Here is an update for #21.
Comment #24
gábor hojtsyLooks even better.
Comment #25
alexpottCommitted acb96c0 and pushed to 8.x. Thanks!
Comment #27
gábor hojtsyYay, thanks. So looks like the known schema problems are in #2295737: Not all shipped configuration passes validation even with all modules enabled and #2293773: Field allowed values use dots in key names - not allowed in config.
Comment #29
chx commentedThe migration system uses the config API. Why doesn't the config API enforce the schema? Are we going to need to test every module that uses the config API?? This shouldn't be necessary and should be rolled back.
Comment #30
gábor hojtsyConfig save checks the schema now. It did not check it yet at the time of this issue because our schemas were far from complete. I proposed removing these explicit tests at the time, but @alexpott said they do no harm.
Comment #31
alexpottAs @Gábor Hojtsy pointed out we do have automated testing of config schema now and it now test migrate's use of config too so yes it can be removed I stand by the tests doing no harm. @chx is you want to remove the tests - fair enough - but new issue please.