Skip to content
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

Drupal 8.7 #27

Merged
merged 30 commits into from
May 24, 2019
Merged

Drupal 8.7 #27

merged 30 commits into from
May 24, 2019

Conversation

Natkeeran
Copy link

@Natkeeran Natkeeran commented May 23, 2019

Ticket: Islandora/documentation#1110

This is the first time I am doing this, so please do review it carefully.

What's new?

  • merged it with upstream
  • sudo composer update in my own machine

How should this be tested?

  • Cone the latest claw-playbook
  • Edit this line to point to this branch (drupal_composer_project_package: "islandora/drupal-project:dev-drupal_87")
  • vagrant up
  • verify that the red error message we used to get no longer shows!
  • Verify Drupl 8.7 is installed - http://localhost:8000/admin/reports/status
  • Do basic Islandora sanity checks - (i.e create new objects and verify derivatives are created, synched properly)

@Islandora-CLAW/committers

weitzman and others added 30 commits March 16, 2018 22:40
Updated argument name in Drush policy file
drupal-composer/drupal-scaffold is a full featured plugin and provides its own command.
@Natkeeran Natkeeran changed the title Drupal 87 Drupal 8.7 May 23, 2019
@whikloj
Copy link

whikloj commented May 23, 2019

👀

@whikloj
Copy link

whikloj commented May 23, 2019

Looking good so far

TASK [Install demo module (fail ok)] *******************************************
Thursday 23 May 2019  16:57:47 -0500 (0:00:00.714)       0:23:02.463 ********** 
changed: [default]

TASK [Update entities] *********************************************************

@whikloj
Copy link

whikloj commented May 24, 2019

@Islandora-CLAW/committers
So this seems to work to get us to Drupal 8.7, except the glorious devs they have seen fit to save us from ourselves again.

Previously you would go to http://localhost:8080/media/1 but now the Media content tab links are all to the edit page. ie http://localhost:8000/media/1/edit and the old media page returns a 404 page not found.

Apparently this was considered a security risk. Currently you can re-enable the canonical route via a switch in the Media Settings configuration (admin/config/media/media-settings).

https://www.drupal.org/project/drupal/issues/3017935

I have asked on the ticket that caused this joy what the Drupal core long term plan is for media entities, I'll see what they say.

So we will need to force the enabling of this checkbox.

BUT also the /media/{id} path is gone from the REST interface, it is now /media/{id}/edit.

So the upgrade to 8.7 will require some serious changes.

Long live Drupal, may its horror rain down upon us always

@Natkeeran
Copy link
Author

Natkeeran commented May 24, 2019

@whikloj @dannylamb

They have replied. It appears the scope is just to make this configurable.

I suppose the implication of enabling the setting is that media in draft mode can be exposed via URL for users with media view permission.

@dannylamb
Copy link

Nothing like some last minute fun, eh? I'm vagrant uping to find the full extent the breakage and whether or not we want to adopt this behaviour of hiding the media canonical url (why didn't they just change around permissions instead?).

For now though, just setting that variable with ansible will keep us going.

@whikloj
Copy link

whikloj commented May 24, 2019

@Natkeeran yes it appears that the concern (which is valid) is that any user with a View Media permission can then view any media.

I have added a second question about the change in the REST endpoint to that Drupal ticket.

I would vote against pushing for 8.7 for Islandora 8's release as I might have missed some other things not working while fighting through these issues.

But merge and tagging this change would open the door to working with Drupal 8.7 within the Islandora 8 structure after the 1.0.0 release.

Copy link

@whikloj whikloj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 works as expected, dev branch testing failed last time too but stable succeeds

@whikloj whikloj merged commit b354ba7 into 8.x-1.x May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.