Giter VIP home page Giter VIP logo

wmsettings's People

Contributors

akasake avatar dieterholvoet avatar frizinak avatar robinhoutevelts avatar spoit avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

drupallabs

wmsettings's Issues

Query on un-indexed column

We noticed in the slow query log that there is a recurring query on a non-indexed column:

(site: bruzzdev)

SELECT base_table.id AS id, base_table.id AS base_table_id
FROM 
settings base_table
INNER JOIN settings_field_data settings_field_data ON settings_field_data.id = base_table.id
WHERE settings_field_data.wmsettings_key LIKE 'global\\_settings' ESCAPE '\\';

Task at hand: solve by

a. Add an index on that basefield (https://drupal.stackexchange.com/questions/221410/how-to-add-a-database-index-to-a-base-field)

b. cache the results of the query

Note: I don't know where that query happens. I suspect somewhere in wmsettings but that's not a given.

Update wmcodestyle

  • Add phpstan.neon config file referencing the wmcodestyle rule files (example)
  • Add phpstan analyse to the coding-standards composer script
  • Add autoload-dev entry to ensure autoloading during analysis

No Global Bundle

When wmsettings installs it makes a Global bundle. This has a problem. When you create model out of it then the word global and the class global all have issues. Have it create a bundle called "site".

Clean up module

  • Cleanup code using wieni/wmcodestyle
  • Normalise composer.json
  • Add LICENSE in case it's missing. Also add the license to composer.json.
  • Add CHANGELOG.md (and UPGRADING.md, if applicable)
  • Add issue & pull request templates
  • Update repo description & tags
  • Update README
  • Update .gitignore
  • Check dependencies: ensure composer.json has a php & drupal/core version requirements and add missing requirements to the .info file

Add module to Drupal.org

Summary

  • Find a new name without the wm prefix
  • Create the Drupal project (example)
  • Change the license to GPLv2 to comply with Drupal.org requirements (example)
  • Update the composer install command in the README
  • Add contributing section to the README (example)
  • Remove Wieni code style & fix code to adhere to Drupal code style

Wtf twig extensions?

3a65134

Why was this needed?
If you need to provide a template with a Setting entity, do so from the controller / preprocessor.

By loading it from within the template you've skipped registering it's cache tags!

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.