7 – How do I migrate body content from D7 to D9 with [embed]*[/embed] tags

Currently I am working on Migrating a Drupal 7 site Drupal 9. I got body content with * tags in below manner :

<h3><strong>WHAT WILL YOUR NEXT MEAL BE?</strong></h3>
<p></p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry galley of type and Lorem Ipsum</p>

I tried to dump the value into Body field with Rich Text Filter, but the data on the frontend is being displayed as a link in between instead of render item.

Can anyone please suggest a Migration Plugin or a way to convert <p></p> to D9 Media Entities .

commerce – Migrate order billing profile

I’m trying to migrate order data from an existing site using CSV files and I can’t get the billing profile to relate.

In trying to troubleshoot this, I have it set just to insert a default value of a known profile and it’s still not working for me. Currently, in the process section of my YML migration file I have these lines, but I still end up with <null> in the database.

billing_profile/target_id:
    -
      plugin: default_value
      default_value: 34338
      strict: true

I have also tried billing_profile__target_id and billing_profile/0/target_id instead of billing_profile/target_id.

What am I missing?

commerce – Migrate Drupal order billing profile

I’m trying to migrate order data from an existing site using CSV files and I can’t get the billing profile to relate.

In trying to troubleshoot this, I have it set just to insert a default value of a known profile and it’s still not working for me. Currently, in the process section of my YML migration file I have:

billing_profile/target_id:
    -
      plugin: default_value
      default_value: 34338
      strict: true

But I still end up with in the database.

I have also tried:

billing_profile__target_id:
billing_profile/0/target_id:

Any idea what I’m missing here?

Thanks!

migration – How to migrate a www-dokuwiki to docker-container-dokuwiki?

I got a VM running https://www.dokuwiki.org/dokuwiki normally as www, and I setup anoter VM to only run docker containers. I got the docker-container dokuwiki running and installed.

Now I need to migrade my www-dokuwiki stuff over to docker-dokuwiki stuff. I’m not sure which folders I need to zip and unzip. I got normal articles, and some media attached to some articles.

How do I migrate this?

How do I install and migrate to the official Firefox flatpak?

Backing up your existing profile

Before we begin we should always back up our stuff, even if you’re using Firefox Sync

Install Flathub

Mozilla publishes Firefox directly into Flathub, however we need to turn this on in Ubuntu. Follow these instructions, I am summarizing them below:

sudo apt install flatpak
sudo apt install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo    

Install Firefox

This will install Firefox and the corresponding ffmpeg libraries so videos, etc work:

flatpak install flathub org.mozilla.firefox org.freedesktop.Platform.ffmpeg-full/x86_64/20.08

Then the Firefox icon will appear in your menu/overlay, or you can do firefox run org.mozilla.firefox to launch it from the command line.

Migrating your profile

[todo]

Reusing your old profile

You can also reuse your profile without manually copying it over though this probably isn’t a good permanent solution.

Quit firefox, then do flatpak override --user --filesystem=~/.mozilla org.mozilla.firefox to have the flatpaked Firefox reuse your old profile.

Checking your work

Clicking on the burger menu -> Help -> About Firefox will show “Mozilla Firefox Flatpak” and “mozilla-flatpak” in the dialog window:

enter image description here

migration – How to conditionally update and import nodes using Migrate?

I need to migrate new nodes and update others in the same time. 2 installations of the same project are out of sync, which means, that the same nid may not indicate the same node on both sides. But I’m sure they’re the same if their titles are equal. So I think, that I need a conditional field mapping, as illustrated in the following pseudocode:

if source_nid = destination_nid
  if source_title = destination_title
    addFieldMapping('nid', 'nid')
else 
  continue

I have only one idea, how can I do this – split migrations into two different parts with filters managed by prepareRow() method (one of the for node updating, the other for import of new nodes). Is this the only way? I would appreciate something more elegant.

8 – Is it possible to migrate data into multiple translations of entities?

I’m running a multilingual migration of events (which are stored as nodes) that have keywords on them where there are keywords (stored as terms). The keywords should be stored in a multilingual tags vocabulary.

The source is a REST API, and what I have for the keyword data looks like this:

array (
 'id' => 'yso:p360',
 'alt_labels' => 
 array (
 ),
 'created_time' => '2014-06-23T11:37:29.198000Z',
 'last_modified_time' => '2014-06-23T11:37:29.198000Z',
 'aggregate' => false,
 'deprecated' => false,
 'n_events' => 11709,
 'data_source' => 'yso',
 'image' => NULL,
 'name' => 
 array (
   'fi' => 'kulttuuritapahtumat',
   'en' => 'cultural events',
   'sv' => 'kulturevenemang',
 ),
 '@id' => 'https://api.hel.fi/linkedevents/v1/keyword/yso:p360/',
 '@context' => 'http://schema.org',
 '@type' => 'Keyword',
)

Is there some way to use for example EntityGenerate to create all the translations of the tags when importing the original languages of the events that has these tags?

Note:

I would like to avoid migrating all the keywords first. We only import a subset of the events, and we are only interested in the keywords that are used by those events.

The normal way of D8 migrations with multilingual sources is to create a configuration for each translation. This doesn’t work in our case, as I chose to use entity_generate for the tags. If you have another suggestion, I am interested.

amazon web services – AWS DMS, can’t migrate CSV to DynamoDB with composite key

I’d like to migrate CSV data from an S3 bucket into a DynamoDB table. My issue is I can’t get the service to create a table with a composite (Partition Key, Sort Key) primary key, while exporting to a table with no sort key works fine.

This is the sample CSV file I’m working with:

city_name city_original_name country_code timezone feature_class
xixerella Xixerella AD Europe/Andorra PPL
vila Vila AD Europe/Andorra PPL
casas vila Vila AD Europe/Andorra PPL
tossalet i vinyals Tossalet i Vinyals AD Europe/Andorra PPLL
sornas Sornàs AD Europe/Andorra PPL
soldeu Soldeu AD Europe/Andorra PPL
sola d’encamp Solà d’Encamp AD Europe/Andorra ADMD

The following object mapping works fine, but doesn’t create a composite key, as expected:

{
  "TableCount": "1",
  "Tables": (
    {
      "TableName": "towns",
      "TablePath": "geo/towns/",
      "TableOwner": "geo",
      "TableColumns": (
        {
          "ColumnName": "City",
          "ColumnType": "STRING",
          "ColumnLength": "200",
          "ColumnNullable": "false",
          "ColumnIsPk": "true"
        },
        {
          "ColumnName": "CityLocalName",
          "ColumnType": "STRING",
          "ColumnLength": "200"
        },
...snip....

The DynamoDB console displays the table as expected: console screenshot

This one however crashes the migration task

{
  "TableCount": "1",
  "Tables": (
    {
      "TableName": "towns",
      "TablePath": "geo/towns/",
      "TableOwner": "geo",
      "TableColumns": (
        {
          "ColumnName": "City",
          "ColumnType": "STRING",
          "ColumnLength": "200",
          "ColumnNullable": "false",
          "ColumnIsPk": "true"
        },
        {
          "ColumnName": "CityLocalName",
          "ColumnType": "STRING",
          "ColumnLength": "200";
        "ColumnIsPk": "true"
        },
...snip...

The following logs are issued at the same time:

(TARGET_LOAD )I: Using source table definition to create table. Source table name is “towns” (dynamodb_table_requests.c:86)
(TARGET_LOAD )E: Table ‘towns’ has composite primary key (1025900) (dynamodb_imp.c:368)
(TARGET_LOAD )E: Unable to determine hash key for table ‘towns’ (1025900) (dynamodb_table_requests.c:399)
(TARGET_LOAD )E: Failed to initialize create table request. (1020413) (dynamodb_table_requests.c:92)

I expect to be able to export that data to table with a composite key, as defined in the previous object mapping definition. How would I fix this ?