Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
while testing the upgrade path from aggregator categories to entity reference field for #15266: Replace aggregator category system with taxonomy i found out that
aggregator_update_8000 has the wrong name:)
see patch below
Comments
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commentedComment #2
ParisLiakos CreditAttribution: ParisLiakos commentedComment #3
BerdirSounds like we should add those to the config upgrade path test class?
Comment #4
ParisLiakos CreditAttribution: ParisLiakos commentedtrying to find where the test class for variable to config is, but i only find ConfigUpgradeTest which tests fake variables.
do we have any tests on real variables?
Comment #5
BerdirNot sure if I understand what you mean with fake variables. Those variables are as real as you make them, the test class just contains what to assert, you need to add them to drupal-7.system.database.php so that they actually exist before the update is run.
Comment #6
ParisLiakos CreditAttribution: ParisLiakos commentedah i see..with fake, i mean variables not used by real drupal sites:)
in that case i dont think we should add them there, if we add aggregator variables we should include all modules variables:/
Edit: i was looking the wrong test...SystemUpgradePathTest is the correct one
Comment #7
ParisLiakos CreditAttribution: ParisLiakos commentedsth like this i guess
Comment #8
BerdirWhile you're at it, can you add the other variables as well?
Comment #10
ParisLiakos CreditAttribution: ParisLiakos commentedyeah..i am supposed to serialize it first -.-
Comment #11
ParisLiakos CreditAttribution: ParisLiakos commentedlets hope i did them correct:p
Comment #13
BerdirThis looks good if it passes.
Comment #14
BerdirHah, I guess not then.
Comment #15
ParisLiakos CreditAttribution: ParisLiakos commentedyeah alright missed a zero:P
Comment #16
Berdir6000 vs. 600.
Comment #17
BerdirComment #18
BerdirThis now looks good for real :)
Comment #19
twistor CreditAttribution: twistor commentedShould aggregator_category_selector be in there?
Comment #20
ParisLiakos CreditAttribution: ParisLiakos commentedno please,
aggregator_category_selector
is gonna die here #15266: Replace aggregator category system with taxonomy lets not make patch there even bigger:)Comment #21
twistor CreditAttribution: twistor commentedDidn't even think about, just did a search for all aggregator variables. Good to go.
Comment #22
catchaggregrator, whoops.
Committed/pushed to 8.x, thanks!