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

Add support for clean legacy install #82

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

yannickmodahgouez
Copy link

This adds support for a CLI installation of legacy clean content using :

php app/console ezplatform:install legacy_clean

@yannickmodahgouez
Copy link
Author

yannickmodahgouez commented Feb 25, 2017

Works with the current sql files in ezpublish legacy kernel but since they are not compatible with ezplatform schema ezplatform stack won't work properly. There should be another set of files somewhere in a data folder. But should it be in the legacy kernel or in the legacy bridge ? 🤔

@andrerom
Copy link
Contributor

Hi @yannickmodahgouez :)

What's the schema error?

@yannickmodahgouez
Copy link
Author

Hey @andrerom, there is no schema error per se, ezplaform doesn't behave the way it should when I use the schema / data stored in ezpublish_legacy kernel. I'll try to dig up to give you more info.

@emodric
Copy link
Collaborator

emodric commented Feb 25, 2017

I never had any problems with using just ezplatform:install clean :)

Also, this does complicate maintenance, since changes to original schema will need to be applied here too.

@yannickmodahgouez
Copy link
Author

yannickmodahgouez commented Feb 25, 2017

Well my main issue with ezplatform:install clean is that it deploys content that is not fully compatible with the legacy ( ezxmlrichtext ) and it might be confusing for users. Hence my PR

@emodric
Copy link
Collaborator

emodric commented Feb 25, 2017

Hah, okay, I didn't think abot that one :) I usually remove the fields from Platform UI and don't give it any more thought.

@yannickmodahgouez
Copy link
Author

@emodric yes I did the same but I figured out it would be better to have a more straightforward install process.

@andrerom I confirm that there is no issue with the schema, ezplatform was acting up because the ezxmltext converter was missing, I required ezplatform-xmltext-fieldtype and everything is fine now. Well except the fact that some of the content types added are really old ( ini settings, Template look ... ). I think they were removed during the 5.x era aren't they ?
Also ideally, there should be some DROP TABLE IF EXISTS statements in the schemas. But that's just me being picky here.

@andrerom
Copy link
Contributor

andrerom commented Feb 25, 2017

@yannickmodahgouez So then I would suggest you consider extending the clean install and reuse the schema function, and only do custom data.

Update: Afaik you should not need to add own interface and probably can avoid having to add DbBasedInstaller here.

@emodric
Copy link
Collaborator

emodric commented Feb 25, 2017

+1 on @andrerom 's comment :)

Copy link
Member

@bdunogier bdunogier left a comment

Choose a reason for hiding this comment

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

I agree with @andrerom and @emodric : that is a lot of duplication.

Adding support for ezxmltext is I think a good idea for this repo.

@ilukac
Copy link

ilukac commented Oct 24, 2017

What is still the open issue here? What is the blocker?

Btw, for making the richtext fields usable on the raw level there is "netgen/richtext-datatype-bundle"

@andrerom
Copy link
Contributor

Btw, for making the richtext fields usable on the raw level there is "netgen/richtext-datatype-bundle"

Yes, proposed doc to reflect that in #119 also now :)

@ghost
Copy link

ghost commented Dec 4, 2017

If I'm correct, this pull request would make legacy install simpler. If this is the case, @bdunogier, @andrerom and @yannickmodahgouez , how can we get this pull request moving? Thanks.

@andrerom
Copy link
Contributor

andrerom commented Dec 4, 2017

@robinmuilwijk the pr needs lots of cleanup (details stated above), so either @yannickmodahgouez or someone in community would need to work on it.

@sonarcloud
Copy link

sonarcloud bot commented Jul 1, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants