/architecture

A place where Magento architectural discussions happen

This repository is created by initiative of Magento architects to discuss with the Magento community any open questions around Magento 2 architecture such as design documents, proposals, or any other architectural artifacts.


NOTE: We do not guarantee that approved changes will be delivered into Magento code base. The purpose of the repository is to start open discussions with the Magento community around architectural concepts of the Magento 2 platform.


Documents in the Repository

New documents are processed through PRs targeting the master branch. As a result, the master branch must contain content approved by Magento architects only.

Glossary

author : a Magento core engineer, or any community member

facilitator : a Magento architect who makes sure the process is followed (Olga Koplyova @buskamuza)

The Workflow

  1. Fork the repository and add or edit a document in your branch. Contributions are expected from Magento core engineers mostly, although the community members are able to contribute as well.
  2. Create a PR with the new or updated document to discuss
    1. Use Design Document template for a new document
  3. Share the PR with internal team(s) and the Magento community through existing channels (Twitter, Slack, blog post, etc)
    1. Suggestion: include deadline for receiving feedback
  4. Get a feedback. We expect a feedback as:
    1. Comments into the PR thread
    2. Likes/dislikes/other emojis to the comments or the PR itself. We kindly encourage contributors to submit explanations about pros and cons that they have noticed.
  5. Update the PR to the received feedback accordingly or submit a reply if the proposed changes are not applicable with clear explanation.
    1. Add needs update label while the PR is in work
  6. When all participants of the discussion have come to agreement and confirmed their approval, a Magento core architect merges the PR.

Design Documents Review Requirements

  • Required reviewers are architects assigned to the affected components
  • Anybody else may join the review and provide feedback, but they're not obligated to review the entire document or to meet deadlines
  • For existing (running or about to run) projects, a minimum time frame given for one round of review is 2 business days from the notification notice. The author may specify due date. For documents that do not block any existing projects (proposals or design documents that describe features for unforeseeable future), no due date is guaranteed.

Assigned Reviewer Responsibilities

  • Review the entire document by specified due date (if any)
    • If it is impossible, find a replacement
    • Contact the facilitator in case you can't find a replacement
    • If the due date is unreasonable for the size of the document, agree on another due date with the author
  • Include a detailed feedback
    • Ensure the feedback is objective
    • Ensure the feedback provides value to the document. Avoid side-notes and off-topics (or mention explicitly that this is just a note for future)
    • If the document is rejected, include clear and objective explanation for it. Rejection is final

The implementation process is out of scope in this project.

After approval of the document, a new discussion may be raised basing on the issues occurred during implementation. It is also possible in case of new informational updates that discover hidden sides of the future implementation. If it is the case, a new PR should be opened to update existing document. The PR should include explained reasons for the proposed change.

Architectural Discussions

Architectural Discussions are public meetings open to anyone and taking place on a regular basis (bi-weekly). Topics for the Architectural Discussions should be proposed in advance. If no topics are proposed prior to the meeting, it may be canceled.

Meeting notes and topics

Meeting notes and topics are available as meeting notes issues.

Prior to November 14th, 2018, meeting minutes are available at sidebar of the wiki

How to propose a topic?

To propose a topic:

  1. Find an issue for the next available date in the list of meeting notes issues
  2. Add your topic as a comment in format described in the issue
  3. If there is no such issue, please create one from the "Meeting Notes" template
  4. Calculate the date based on the last meeting note. Don't worry if the date is incorrect, one of the maintainers will fix it if necessary. Just make sure that it is a future date, so it's not missed
  5. Add your topic as a comment in format described in the issue template

During the meeting, expect that the topics will be discussed in the order they are requested. Also, the discussions may be interrupted if requested time elapses. Please, include time for the discussion in the requested duration for your topic.