Coder Social home page Coder Social logo

eavcleaner's Introduction

magerun-addons

Purpose of this project is to check for different flaws that can occur due to EAV and provide cleanup functions.

What do we check for:

  • eav:clean:product-attribute-set-values Check for abandoned attribute values in eav tables. The attribute was removed from an attribute set the values still exist. Use --dry-run to check result without modifying data. (done)
  • eav:clean:scope-values Check for wrong scopes. Values in Scopes which shouldn't be present. For example values on Storeview level but attribute scope is global. Use --dry-run to check result without modifying data. (done)
  • eav:restore-use-default-value Check if product attribute admin value and storeview value are the same, so "use default" doesn't work anymore. Delete the storeview values. Use --dry-run to check result without modifying data. (done)
  • Check if a sourcemodel is used but not allowed for attributes like text. (done)
  • eav:check:models Check if the assigned sourcemodel, backendmodel and frontendmodel still exist. (done)
  • Check if the attributetype was changed for example from text to select and delete wrong values. (TODO)
  • eav:clean:removed-store-view-values Remove attribute values for storeviews that don't exist anymore. Use --dry-run to check result without modifying data. (done)
  • eav:check:media List unused product images
  • eav:clean:entity-type-values Remove attribute values with wrong entity_type_id. For example the table catalog_product_entity_int should only contain entries with entity_type_id == 10. Use --dry-run to check result without modifying data.
  • eav:clean:attributes-and-values-without-parent Remove catalog_eav_attribute and attribute values which are missing parent entry in eav_attribute. This can happen after importing data with foreign key check switched off. Use --dry-run to check result without modifying data.

Ideas

  • check for unused images
  • remove unused attributes

Installation

see https://github.com/netz98/n98-magerun/wiki/Modules#where-can-modules-be-placed

Contributors

Benno Lippert Damian Luszczymak Joke Puts Peter Jaap Ralf Siepker

eavcleaner's People

Contributors

bennolippert avatar daim2k5 avatar jhoelzl avatar jokeputs avatar peterjaap avatar pixelhed avatar seansan avatar syhe avatar tmotyl avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.