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

Create a migration script for diagrams affected by #11 #18

Closed
oanat opened this Issue Feb 1, 2019 · 3 comments

Comments

Projects
None yet
3 participants
@oanat
Copy link

oanat commented Feb 1, 2019

While the issue #11 will be fixed for the future, we need a migration script for existing versions (e.g. users who would like to benefit of the latest version of the app until #11 is fixed)

@slauriere

This comment has been minimized.

Copy link

slauriere commented Feb 7, 2019

The migration script I intend to write will update the paths containing the old version name with the new one, for example :

<mxCell id="6" value="" style="shape=image;html=1;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;imageAspect=1;aspect=fixed;image=/xwiki-10.8/webjars/wiki%3Adev/draw.io/6.5.7/img/clipart/Gear_128x128.png" parent="1" vertex="1">

will get updated to:

<mxCell id="6" value="" style="shape=image;html=1;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;imageAspect=1;aspect=fixed;image=/xwiki-10.8/webjars/wiki%3Adev/draw.io/8.9.9/img/clipart/Gear_128x128.png" parent="1" vertex="1">

slauriere added a commit that referenced this issue Feb 7, 2019

@slauriere

This comment has been minimized.

Copy link

slauriere commented Feb 7, 2019

I created a script and I submitted it as a pull request #19. I tested it for an upgrade to the 1.6.1 pro version in the main wiki. NB: the script will work only for an upgrade to a pro version for now.

@slauriere

This comment has been minimized.

Copy link

slauriere commented Feb 7, 2019

PS: the script has to get executed after the upgrade, not before, as it migrates the image paths to the draw.io version that is currently installed.

@slauriere slauriere closed this Feb 7, 2019

@slauriere slauriere reopened this Feb 7, 2019

slauriere added a commit that referenced this issue Feb 19, 2019

#18: Create a migration script for diagrams affected by #11
- Update text info explaining what the script does.
- Mention the existing bug #11.
- Use clean='false' in the html macro.
- Add CSRF protection.
- Switch from Groovy to Velocity.
- Retrieve the draw.io extension directly.
- Retrieve only the diagrams that need to be migrated.
- Add warning to the application home page in case some migration is needed.

slauriere added a commit that referenced this issue Feb 20, 2019

#18: Create a migration script for diagrams affected by #11
- Remove programming rights
- Add page containing a common macro

slauriere added a commit that referenced this issue Feb 25, 2019

Merge pull request #19 from xwikisas/issue-18
#18: Create a migration script for diagrams affected by #11

@acotiuga acotiuga added this to the 1.6.2 milestone Feb 26, 2019

@acotiuga acotiuga closed this Feb 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.