Problem/Motivation

#2602662: Feed ID should be required base field for aggregator items made the 'Source feed' required for aggregator items, but the update function was untested and did not actually update the field.

Proposed resolution

Provide a new update function and test it.

Remaining tasks

Review.

User interface changes

Nope.

API changes

Nope.

Data model changes

Nope.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amateescu created an issue. See original summary.

amateescu’s picture

Status: Active » Needs review
FileSize
1.46 KB
2.44 KB

This should do it.

The last submitted patch, 2: 2840595-test-only.patch, failed testing.

Berdir’s picture

Status: Needs review » Needs work
+++ b/core/modules/aggregator/aggregator.install
@@ -37,3 +37,24 @@ function aggregator_update_8001() {
+function aggregator_update_8200() {
+  // An empty update function like aggregator_update_8001() is not enough, we
+  // need to actually set the base field definition as required.

Instead of "not enough" and "actually", can we explain why it was not enough? The comment doesn't really tell me anything.

amateescu’s picture

Status: Needs work » Needs review
FileSize
2.43 KB
896 bytes

You're right, how about this one?

Berdir’s picture

Status: Needs review » Reviewed & tested by the community

Yes, that's better :)

That update was a while ago, wondering if that happend when we still had the automatic entity updates running?

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

So I tested this in HEAD by doing this:

  1. git co 22716ab~1
  2. install standard
  3. install aggregator
  4. rm -rf ./vendor && git co 8.3.x
  5. composer install
  6. run update.php

After this the status report doesn't say that the entity definitions for aggregator are out-of-date so perhaps there is a bug there. It does say that

Comment: The Publishing status field needs to be updated.

So there is an update that is not working. But also shouldn't the mismatched aggregator definition be here too? So I guess we need a followup for both Comment issue and the fact that changing the requiredness of a field doesn't result in an mismatch warning.

OTOH if I looked at the field definition the field is not required so the bug is real.

Committed and pushed ffd4d6a to 8.3.x and 12fbebb to 8.2.x. Thanks!

I committed this to 8.2.x since the mismatch is a real bug and the update is not a big one.

  • alexpott committed ffd4d6a on 8.3.x
    Issue #2840595 by amateescu, Berdir: The 'Source feed' field of...

  • alexpott committed 12fbebb on 8.2.x
    Issue #2840595 by amateescu, Berdir: The 'Source feed' field of...

  • alexpott committed ffd4d6a on 8.4.x
    Issue #2840595 by amateescu, Berdir: The 'Source feed' field of...

  • alexpott committed ffd4d6a on 8.4.x
    Issue #2840595 by amateescu, Berdir: The 'Source feed' field of...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.