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

Deprecate core tasks and migration scripts #3080

Merged
merged 6 commits into from
Feb 13, 2019

Conversation

kennyadsl
Copy link
Member

Description

We have a lot of tasks and scripts used as helpers during versions upgrades. These files can be removed so I started deprecating them. They should not be used by anyone but if that's the case they will be noticed before the removal.

Checklist:

  • Pull Request guidelines are respected
  • Documentation/Readme have been updated accordingly
  • Changes are covered by tests (if possible)
  • Each commit has a meaningful message attached that described WHAT changed, and WHY

We don't even know if this works with master since this is not tested.
We should not maintain this kind of scripts.
Do we really need to test email sending this way?
This was needed for the v2.2 -> v2.3 upgrade and it should not be
needed anymore.

This also changes the database migration since we are sure it will
never execute any operation after the upgrade. Changing the migration
allows us to deprecate the class responsible for actually doing the
change, which is the same called in the deprecated rake task.

For the original implementation see:

https://github.com/solidusio/solidus/pull/2001/files
This task is present since Solidus v1.0 and it should just be used
during the update to v1.1.
This is a version upgrade helper, no need to keep it.
up and down tasks.

They are migration helpers, no need to keep them.
Copy link
Contributor

@ericsaupe ericsaupe left a comment

Choose a reason for hiding this comment

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

Good deprecations, thanks!

Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

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

👍 thank you @kennyadsl

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Makes sense

@kennyadsl kennyadsl merged commit 7fba0eb into solidusio:master Feb 13, 2019
@kennyadsl kennyadsl deleted the kennyadsl/cleanup-core-tasks branch February 13, 2019 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants