Message-ID: <1330696402.3182.1485852300637.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3181_2025927951.1485852300637" ------=_Part_3181_2025927951.1485852300637 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Updating eZ Studio

Updating eZ Studio

This page explains how to update between minor or patch versions= of eZ Studio.

This instruction reflects a proposed git-based workflow for handling upd= ates; feedback on how this works in practice and input on how to further im= prove/simplify it is welcome.

In the instructions below, replace <version> with the= version of eZ Studio you are updating to (for example: v1.2.0= ).

 

Update procedure

Wh= en updating from 16.02 or earlier to 16.04 or later

Starting from 16.04, the main meta repository was split in two:

  • ezstudio with clean installer
  • ezstudio-demo with demo content and design

Before pulling the latest version you have to change your git remote rep= ository. There are two ways to do this:

1. The quick way: simply replace repository name in config file for exam= ple using sed (this way is useful if you added any remotes):

sed -ie 's/ezsystems\/ezstudio/ezsystems\/ezstudio-demo/g' .git/co= nfig

2. Using git remote:

  • list your remote repositories:

git remote -v

  • copy the url containing ezsystems/ezstudio
  • replace the url using git:

git remote set-url origin https://github.com/= ezsystems/ezstudio-demo.git

Next, pull the latest changes:

git pull

Now, manually remove the contents of the app/cache/ folder:=

rm -rf app/cache/*

 

You can easily update your existing Studio project using Composer. From = the project's root, create a new branch from the project's master, or from = the branch you're upgrading on:

From your master branch
=20
git checkout -b <branch_name>
=20

If it's not there, add ezsystems/ezstudio-demo as an upstre= am remote:

From your new update branch
=20
git remote add ezstudio http://github.com/ezsystems/ezstudio-demo.=
git
=20

Then pull the tag into your branch:

From your new update branch
=20
git pull ezstudio <version>
=20

When updating from 15.12.1 or earlier to 16.02 or later<= /p>

If you had custom siteaccesses or languages set up in your installation,= a conflict may appear here. This is because new siteaccesses are introduce= d in Studio demo in this release: "fr" for French, "de" for German and "no"= for Norwegian.

To avoid overriding your siteaccesses with the new ones, you need to acc= ept your own changes in the app/config/ezplatform.yml file.

If you have no custom siteaccesses or languages and no conflict occurs, = you can do one of the following things:

A) Add languages and permissions to use the newly intro= duced siteaccesses from the demo.

To do this, log in to the application and= go to the Admin Panel.

Choose Languages and click Create a new l= anguage. Create a language for each of the new siteaccesses.

Then, click Roles and se= lect the Anonymous Role. Click Edit limitations next to the following funct= ion:

Select all available siteaccesses and cli= ck Save.

B) Remove the new siteaccesses.

 

You will get conflicts, and it is perfectly normal. The most common ones= will be on composer.json and composer.lock.=

The latter can be ignored, as it will be regenerated when we execute com= poser update later. The easiest is to checkout the version from the tag, an= d add it to the changes:

If you get a lot of conflicts (on the doc folder for instance), and eZ Studio was installed from the share.ez.= no tarball, it might be because of incomplete history. You will have to= run git fetch ezstudio --unshallow to load the full= history, and run the merge again.

From your new update branch
=20
git checkout --theirs composer.lock && git add composer.lo=
ck
=20

Merging composer.json

Manual merging

Conflicts in composer.json need to be fixed manually. = If you're not familiar with the diff output, you may checkout the tag's ver= sion, and inspect the changes. It should be readable for most:

From your new update branch
=20
git checkout --theirs composer.json && git diff HEAD compo=
ser.json
=20

You should see what was changed, as compared to your own version, in the= diff output. This update changes the requirements for all of the ezsystems/ packages. Those changes should be left untouched. All o= f the other changes will be removals of what you added for your own project= . Use git checkout -p to selectively cancel those changes= :

=20
git checkout -p composer.json
=20

Answer no (do not discard) to the requirement cha= nges of ezsystems dependencies. Answer yes&n= bsp;(discard) to removals of your changes.

Once you are done, inspec= t the file, either using an editor or by running git diff composer.js= on. You may also test the file's sanity with composer validate= , and test the dependencies by running composer upda= te --dry-run. (will output what it would do to dependencies, without= applying the changes.

Once finished, run <= code>git add composer.json.

Fixing other confli= cts (if any)

Depending on the local changes you have done, you may get other conflict= s: configuration files, kernel... 

There shouldn't be many, and you should be able to figure out which valu= e is the right one for all of them:

Updating

At this point, you should have a composer.json file with the correct req= uirements. Run composer update to update the dependencies= . 

=20
composer update --with-dependencies ezsystems/ezpublish-kernel ezsy=
stems/platform-ui-bundle ezsystems/repository-forms ezsystems/studio-ui-bun=
dle ezsystems/ezstudio-demo-bundle ezsystems/landing-page-fieldtype-bundle =
ezsystems/flex-workflow
=20

In order to restrict the possibility of unforeseen updates of 3rd party = packages, we recommend by default that composer update is rest= ricted to the list of packages we have tested the update for. You may remov= e this restriction, but be aware that you might get a package combination w= e have not tested.

= When updating from 15.12.1 or earlier to 16.02 or later

On PHP conflict

Because from this release onwards eZ Studio is compatible only with PHP = 5.5 and higher, the update command above will fail if you use an older PHP = version. Please update PHP to proceed.

Database update

The 16.02 release requires an update to the database. Import = vendor/ezsystems/ezpublish-kernel/data/update/mysql/dbupdate-6.1.0-to-6.2.0= .sql into your database:

=20
mysql -p -u <database_user> <database_name> < vendor=
/ezsystems/ezpublish-kernel/data/update/mysql/dbupdate-6.1.0-to-6.2.0.sql=20

To enable the new Flex workflow notification feature, import the followi= ng file:

=20
mysql -p -u <database_user> <database_name> < vendor=
/ezsystems/ezstudio-notifications/bundle/Resources/install/ezstudio-notific=
ations.sql
=20

Dump assets

The web assets must be dumped again for the prod environment:

=20
php app/console assetic:dump --env=3Dprod web
=20

Commit, test and merge

Once all the conflicts have been resolved, and composer.lock updated, the merge can be committed. Note that you may or may not ke= ep composer.lock, depending on your version management wo= rkflow. If you do not wish to keep it, run git reset HEAD <fi= le> to remove it from the changes. Run git commit= , and adapt the message if necessary. You can now test the project, = run integration tests... once the upgrade has been approved, go back to master, and merge your update branch:

=20
git checkout master
git merge <branch_name>
=20

 

 

------=_Part_3181_2025927951.1485852300637 Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Location: file:///C:/64ea60ae5636231485e583e9f2b43db8 iVBORw0KGgoAAAANSUhEUgAAAmoAAAAvCAIAAADcunHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA B3RJTUUH4AIdDg8bBUCVKQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUH AAAR8UlEQVR4nO2dXXATV5bHT2+lQE5VbM2DofOA01M19miqMO6Ak2nADp0QFarZqb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