Visit Linked Page
An Unofficial Magento Roadmap, pulled together from various promises, metions, and allusions made by Magento Inc. employees. (Glad I took Dr. Jones’ course at Marshal University (I thought about Kremlinolgy joke instead but too real)).
astorm
Visit Linked Page
When I’m working solo, (which usually means I’m doing the initial scoping and prototyping of some sort of feature and/or system), my “git workflow” is usually a shove it all into master affair. When I switch off to team work I often find myself in a situation where I’ve done a done of work without branching first. That’s where git move comes to the rescue. Okay, one more… Ever commit something only to immediately realize that you're on the wrong branch? Use "git move <branch>". pic.twitter.com/fKpZTRkdRu — coderabbi™[for rent] (@coderabbi) September 4, 2017
astorm
Visit Linked Page
Real Talk: I mostly just split/explode strings down to the parts I need these days, but I’ll always have a palce in my heart for regular expressions. Regular expression cheat sheet. pic.twitter.com/C0PdZ5aNXx — Mike Kearney📊 (@kearneymw) September 3, 2017
astorm
One thing I breezed by in my recent Modifying a jQuery Widget in Magento 2 article was the whole returns two widgets RequireJS module thing. We mentioned that modules like the mage/menu module will do this. //File: vendor/magento/magento2-base/lib/web/mage/menu.js define([ "jquery", "matchMedia", "jquery/ui", [...]
astorm
Visit Linked Page
Re: A Declarative Approach for Database Schema Upgrades It sounds like Magento’s planning a pretty radical overhaul of how it handles schema and data upgrades between versions. The looks to be a fiat from on high (vs. the community driven approach they’ve been using for bug fixes). If you’re making schema/data changes that aren’t in Magento’s core or Marketplace code bases, you’ll want to pay attention to this – your deck chairs may need shifting about.
astorm
Visit Linked Page
Menu Editor to Replace Category Based Menus in Magento 2. Feels like I can recommend checking out stuff from SnowdogApps, sight unseen.
astorm
Visit Linked Page
Create a PHPUnit Dashboard With New Relic Not strictly Magento related, but if you’re using New Relic it looks like they can automatically detect test runs and give you useful metrics about your tests. Neat!
astorm
Visit Linked Page
oddyssey/mailtrap A simple mailtrap extension for Magento 2. Mailtrap is a service that lets you point your development instances at an SMTP server that accepts mail, but doesn’t deliver it. Instead mailtrap collects all the mail in a single INBOX. If you’ve ever accidentally emailed an entire customer list with a subject line like Subject: Testing, hope this s——t works. you’ll instantly see the value. The Magento extension is also a simple example of how to hook into the MagentoFrameworkMailTransport class with a custom preference and change the behavior of the email system.
astorm
Visit Linked Page
Reserved Words in Magento 2 URL Paths A StackExchange self answer where I use a plugin to work around the reserved-PHP-symbol-in-class-name problem that can plague Magento 2 URL routing. What’s extra baffling about this is Magento has a fix coded up, but only applies it to one URL segment. I suspect this is less baffling if you can gives up the idea that Magento 2 should retain its the rapid application prototyping roots of its ancestors.
astorm
Visit Linked Page
Magento 2 – Form Validation A StackExchange post that contains most (all?) of the CSS classes that can control Magento 2’s form validation. Magento seems to apply the validation rules on all form submits – although I haven’t dug too deeply into that one so caveat emptor etc. Also, a bonus for folks who read these Tumblr desciptions — here’s a quick bit of javascript that will take M1 style HTML and make all the fields required in an M2 context. require(['jquery'], function($){ $('.required-entry').each(function(key, element){ $(element).attr('required','required'); }); }); Useful if you have a complex form built with a combination of […]
astorm
Visit Linked Page
Magento custom Knockout.js bindings | Magento 2 Developer Documentation It might have taken 11 months, but it looks like Magento finally gave its dev docs team the resources they needed to document the UI Component Knockout JS custom bindings.
astorm
Visit Linked Page
JavaScript unit testing with Jasmine | Magento 2 Developer Documentation Jasmine’s a testing framework for javascript code – I didn’t know until today that Magento 2 had setup a framework for these tests. (Via the tremendous Vinai)
astorm
Visit Linked Page
Packagento – A curated list of open source Magento 2 modules A new Composer repository from Adam Johnson that’s curating open-source Magento 2 extensions.
astorm
(Putting this here in an external-memory/thinking-out-loud sort of way) Prior to Magento 2’s release, Magento executives circulated the idea that Magento 1 would reach its “end-of-life” three years after the release of Magento 2. Magento 2 was released November 17, 2015, which means Magento 1 reaches its end-of-life [...]
astorm
(With apologies to whomever originally posted this technique – I can’t seem to find your original article. If you’d like link/credit just let me know) As companies start to go ahead with Magento 2 builds and Magento 2 upgrades, more an more developers are wondering what to do about the missing code pools from Magento 1. [...]
astorm
Visit Linked Page
List of mod_security Rules for Magento 1 A list of instructions from the (semi?) independent Mage Security Council on installing their scanner. This sort of buries the lead – the end of the instructions point off to a list of malware fingerprint, which server administrators can use to block common attacks before they ever reach Magento.
astorm
Visit Linked Page
BFG Repo-Cleaner by rtyley Not quite Magento related, but we’ll let that slide. BFG is a command line program that lets you remove unwanted content from your a git repository’s history. Discovered it via a GitHub support issue on the same topic.
astorm
Visit Linked Page
The bin/magento setup:upgrade Command will Enable Non-Enabled modules · Issue #9516 · magento/magento2 Weird bit of behavior where the setup:upgrade command will automatically enable any module you’ve dropped into app/code. Small, but annoying bit of behavior if your run into it.
astorm
I’m writing this down so I can remember it later – if you’re not deep into Magento service contracts apologies for the word soup. When Magento’s parsing doc block’s for parameter types, it’s only looking at interfaces – or possibly its only looking at the type it knows about. i.e. if you have [...]
astorm
Visit Linked Page
Fooman’s Magento Imagine 2017 Wrap Up Another developer oriented Magento Imagine 2017 wrap up. Include the slides from Kristof’s talk on Magento and composer.
astorm