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

Update to fix some dimensions were not marked as successfully uninstalled #8389

Merged
merged 3 commits into from Jul 24, 2015

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Jul 21, 2015

refs #8304

This PR requires #8388 to be merged first. Only core/Updates/2.14.2.php belongs to this PR.

While working on #8304 I noticed dimensions are not correctly marked as uninstalled. This is fixed in #8388. This PR provides an update that removes option entries of actually no longer installed dimensions.

Background:
When installing a dimension we create an entry in the option table eg name=version_log_visit.server_time. This way we know the dimension was installed and which version of that dimension is installed. When uninstalling a dimension this option entry is supposed to be removed but it did not work. This prevented eg that the same dimension will be installed later again which is a bug.

In this update we compare the option entries (columns marked as installed) with the actually existing columns (by fetching the actual column names from the DB table) and remove the option entries that are marked as installed but no longer exist.

@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Jul 21, 2015
@tsteur tsteur added this to the 2.14.2 milestone Jul 21, 2015
mattab pushed a commit that referenced this pull request Jul 24, 2015
Update to fix some dimensions were not marked as successfully uninstalled
@mattab mattab merged commit a2442f2 into master Jul 24, 2015
@mattab
Copy link
Member

mattab commented Jul 24, 2015

This works, awesome 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants