Comments

amateescu’s picture

Status: Active » Postponed

Forgot to say that I'd prefer this to wait for #2112239: Convert base field and property definitions.

berdir’s picture

Status: Postponed » Active
amateescu’s picture

Status: Active » Needs review
StatusFileSize
new2.77 KB

This should do it.

ParisLiakos’s picture

  1. do we do update functions anymore?
  2. what about feed items?
amateescu’s picture

do we do update functions anymore?

Until we have a D7 -> D8 migration, we do. What we don't do is upgrade path testing :)

what about feed items?

They have the GUiD field, see #2149851: Remove todo about GUID field on the 'aggregator_item' entity and add UUID field. And feed items are not really a thing that people want to deploy.. I guess.

ParisLiakos’s picture

Status: Needs review » Reviewed & tested by the community

a ha. i see, thanks!
i guess UUID for items doesnt make sense indeed.
lets do it then

star-szr’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

Tagging for reroll.

jwjoshuawalker’s picture

Assigned: Unassigned » jwjoshuawalker
Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new2.78 KB

Reroll attached.

Status: Needs review » Needs work

The last submitted patch, 8: 2149841-8-give-aggregator_feed-entity-uuid.patch, failed testing.

jwjoshuawalker’s picture

Status: Needs work » Needs review
StatusFileSize
new2.78 KB

update_2002 taken from something else.

Status: Needs review » Needs work

The last submitted patch, 10: 2149841-10-give-aggregator_feed-entity-uuid.patch, failed testing.

jwjoshuawalker’s picture

Failed in views_ui test? Re-queue for test after a while? Suggestions?

FATAL Drupal\views_ui\Tests\OverrideDisplaysTest: test runner returned a non-zero error code (1)
ParisLiakos’s picture

Status: Needs work » Needs review

Lets ask for a retest. probably a random failure

10: 2149841-10-give-aggregator_feed-entity-uuid.patch queued for re-testing.

star-szr’s picture

Thanks @drastik!

+++ b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Feed.php
@@ -35,6 +35,7 @@
+ *     "uuid" = "uuid"

Super duper nitpick but this line in the annotation should (for coding standards) have a trailing comma now right? Now that #2138867: Allow dangling commas in annotations is in.

jwjoshuawalker’s picture

For @Cottser Mr. nit-picky (I agree).

Also including another place:

+++ b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Feed.php
@@ -27,7 +27,7 @@
  *     "form" = {
  *       "default" = "Drupal\aggregator\FeedFormController",
  *       "delete" = "Drupal\aggregator\Form\FeedDeleteForm",
- *       "remove_items" = "Drupal\aggregator\Form\FeedItemsRemoveForm"
+ *       "remove_items" = "Drupal\aggregator\Form\FeedItemsRemoveForm",

Status: Needs review » Needs work

The last submitted patch, 15: 2149841-15-give-aggregator_feed-entity-uuid.patch, failed testing.

The last submitted patch, 15: 2149841-15-give-aggregator_feed-entity-uuid.patch, failed testing.

jwjoshuawalker’s picture

Status: Needs work » Needs review

lol.

jwjoshuawalker’s picture

star-szr’s picture

+++ b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Feed.php
@@ -27,7 +27,7 @@
  *     "form" = {
  *       "default" = "Drupal\aggregator\FeedFormController",
  *       "delete" = "Drupal\aggregator\Form\FeedDeleteForm",
- *       "remove_items" = "Drupal\aggregator\Form\FeedItemsRemoveForm"
+ *       "remove_items" = "Drupal\aggregator\Form\FeedItemsRemoveForm",

That's actually a bit out of scope here since we otherwise wouldn't be changing that hunk. I know it's in the same file and your intentions are good, but patches can quickly get out of hand when we start fixing all the bad things in a file :)

berdir’s picture

Status: Needs review » Reviewed & tested by the community

Yes, for the future, only fix coding styles in lines that you change yourself. But let's get this in now :)

xjm’s picture

catch’s picture

Status: Reviewed & tested by the community » Needs work

#2168011: Remove all 7.x to 8.x update hooks and disallow updates from the previous major version is almost ready and conflicts with this.

In this particular case, the migration should not have to change at all, so I think we could just remove the update hook from here altogether.

xjm’s picture

I added a note about it at https://groups.drupal.org/node/394338.

jwjoshuawalker’s picture

I'm not sure what you want here.

Remove all other update hooks except adding the uuid column?

berdir’s picture

No, just not add any now update hooks here. Re-roll the patch without those two functions and we should be good to go.

amateescu’s picture

No, just not add any now update hooks here. Re-roll the patch without those two functions and we should be good to go.

Then.. who adds the uuid table column? :)

berdir’s picture

hook_schema() does for new installations, which is enough. Migrate will just put stuff in the final schema, through the entity API, which will automatically create a UUID. And we don't need to support a minor upgrade path before beta.

amateescu’s picture

Right, I haven't gotten used to the thought that all D8 deployments will be new installations.

xjm’s picture

Status: Needs work » Needs review
StatusFileSize
new1.95 KB
new1.42 KB

Like this. :)

The last submitted patch, 30: aggregator-feed-2149841-30.patch, failed testing.

berdir’s picture

ParisLiakos’s picture

Status: Needs review » Reviewed & tested by the community
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x, but it's surprising to me that this is not part of ContentEntityInterface or whatever, to prevent any other content entities from making this mistake. Is that being handled in another issue, or?

Status: Fixed » Closed (fixed)

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