esmero / archipelago-deployment

Archipelago Commons Docker Deployment Repository
33 stars 15 forks source link

Make Archipelago ready for Drupal 9.1 #78

Open giancarlobi opened 3 years ago

giancarlobi commented 3 years ago

We have to check if all Archipelago modules RC1 version are ok running onto Drupal 9.1

giancarlobi commented 3 years ago

A first check, as suggested by @DiegoPino , we have to apply this patch https://www.drupal.org/files/issues/2020-05-23/jsonapi_earlyrendering_workaround.1.x-dev.rector.patch to jsonapi_earlyrendering_workaround module

DiegoPino commented 3 years ago

Great. I will add it to composer.json and move from there.

giancarlobi commented 3 years ago

Drush ingest seems work well:

sudo -u www-data /var/www/archipelago/vendor/drush/drush/drush archipelago:jsonapi-ingest /var/www/html/d8content/ados/ado-photograph.json --bundle=digital_object --uri=http://archipelago.byterfly.eu --files=/var/www/html/d8content/ados/ado-photograph-bin --user=jsonapi --password=japassword --moderation_state=draft
Files in provided location:
 - trilobite.jpg
Using the following 8c90bd44-ed81-4797-9d76-c97a69d8c78d for your new ADO
curl -L --connect-timeout 30 -H "Accept: application/vnd.api+json;" -H "Content-Type: application/octet-stream;" -H "Content-Disposition: attachment; filename=\"trilobite.jpg\"" --data-binary @"/var/www/html/d8content/ados/ado-photograph-bin/trilobite.jpg" --user jsonapi:Js0n@p1 http://archipelago.byterfly.eu/jsonapi/node/digital_object/field_file_drop
File trilobite.jpg sucessfully uploaded with Internal Drupal file ID 203
New Object 'TEST after upgrade to 9.1.0' with UUID 8c90bd44-ed81-4797-9d76-c97a69d8c78d successfully ingested. Thanks!

The output can see here: https://archipelago.byterfly.eu/do/8c90bd44-ed81-4797-9d76-c97a69d8c78d

DiegoPino commented 3 years ago

Lovely!

giancarlobi commented 3 years ago

@DiegoPino Also worked a new PDF: Chech add a new PDF ADO:

DiegoPino commented 3 years ago

So cool! We are the best right! 😆

DiegoPino commented 3 years ago

Ok. Means we just need to update some composer stuff and apply a patch. Great. Will work on this when time permits. Thanks friend