Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update CONTRIBUTING.md and feature request template (#17485)

Adrian Pilarczyk7f44e1ed66cb
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
deleted file mode 100644
index 14a800b1f1..0000000000
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ /dev/null
@@ -1,80 +0,0 @@
----
-name: Feature request
-about: Suggest an idea for this project
-title: ""
-labels: Feature request
-assignees: ""
----
-
-## Problem
-
-<!-- Describe what you are trying to achive. You can include proposed solution. -->
-
----
-
-## 1. General Assumptions
-
-<!-- -->
-
-### Acceptance Criteria
-
-<!-- Conditions that a feature must satisfy to be approved by QA
-- Functional use case:
- - Permissions: As USER/APP with permision `XYZ' I should be able to 'action"
- - Webhooks: Webhook `name` event should be sent for every updated `instance name`
- - Support for old versions: After updating, it is possible to retrieve data created in older (3.1, 3.5, 3.7) Saleor versions.
- - Error handling: Should be handled according to 'policy_name'
- - Other use-cases: ID or externalReference can be used to identify object
-- Non-functional use case
- - X objects can be updated in one mutation
--->
-
-- [ ]
-- [ ]
-
-## 2. API changes
-
-### Mutations
-
-```graphql
-
-```
-
-### Types
-
-```graphql
-
-```
-
-## 3. Database changes
-
-<!-- New models or changes in existing models -->
-
-## 4. UML diagrams
-
-<!-- You can render UML diagrams using [Mermaid](https://mermaidjs.github.io/). -->
-
-```mermaid
-
-```
-
-## 5. To Do list
-
-<!-- Everything from developer perspective -->
-
-```[tasklist]
-### Tasks
-- [ ] Add a draft title or issue reference here
-```
-
-## 6. To Test
-
-<!--
-Put here additional info of what it would be good to check along with new changes.
-e.g.:
-- Check feature with tax systems
-- Test with overrode prices
- -->
-
-- [ ]
-- [ ]
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml
new file mode 100644
index 0000000000..76e376719d
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.yaml
@@ -0,0 +1,118 @@
+name: Feature request
+description: Suggest an idea for this project
+labels: ["Feature request", "triage"]
+
+body:
+ - type: textarea
+ id: problem
+ attributes:
+ label: Problem
+ description: Describe what you are trying to achieve. You can include proposed solution.
+ validations:
+ required: true
+
+ - type: input
+ id: discord-discussion
+ attributes:
+ label: Discord Discussion Link
+ description: Link to a corresponding thread in the [Discord](https://saleor.io/discord)'s "#ideas" channel. Read more about the process in the [Contribution Guidelines](http://docs.saleor.io/developer/community/contributing#contributing-issues).
+ placeholder: https://discord.com/channels/8640668198...
+ validations:
+ required: true
+
+ - type: textarea
+ id: general-assumptions
+ attributes:
+ label: General Assumptions
+ description: |
+ Describe the general assumptions and acceptance criteria for this feature.
+
+ Acceptance Criteria should include:
+ - Functional use cases (permissions, webhooks, version compatibility, error handling)
+ - Non-functional use cases (performance, scalability)
+ placeholder: |
+ ### Acceptance Criteria
+ - [ ] Functional use case 1
+ - [ ] Functional use case 2
+ - [ ] Non-functional use case 1
+ validations:
+ required: true
+
+ - type: textarea
+ id: api-changes
+ attributes:
+ label: API Changes
+ description: |
+ Propose the GraphQL API changes needed for this feature.
+
+ Include:
+ - New mutations
+ - New types
+ - Changes to existing types
+ placeholder: |
+ ### Mutations
+ ```graphql
+ mutation ExampleMutation {
+ # Add mutation details here
+ }
+ ```
+
+ ### Types
+ ```graphql
+ type ExampleType {
+ # Add type details here
+ }
+ ```
+ validations:
+ required: false
+
+ - type: textarea
+ id: database-changes
+ attributes:
+ label: Database Changes
+ description: Describe any new models or changes to existing models that will be needed.
+ validations:
+ required: false
+
+ - type: textarea
+ id: uml-diagrams
+ attributes:
+ label: UML Diagrams
+ description: |
+ Include any relevant UML diagrams using Mermaid syntax.
+
+ You can render UML diagrams using [Mermaid](https://mermaidjs.github.io/).
+ placeholder: |
+ ```mermaid
+ # Add your diagram here
+ ```
+ validations:
+ required: false
+
+ - type: textarea
+ id: todo-list
+ attributes:
+ label: To Do List
+ description: List all tasks from a developer perspective that need to be completed.
+ placeholder: |
+ ### Tasks
+ - [ ] Task 1
+ - [ ] Task 2
+ validations:
+ required: false
+
+ - type: textarea
+ id: testing
+ attributes:
+ label: Testing Requirements
+ description: |
+ List additional scenarios that should be tested along with the new changes.
+
+ Examples:
+ - Check feature with tax systems
+ - Test with overrode prices
+ placeholder: |
+ - [ ] Test case 1
+ - [ ] Test case 2
+ validations:
+ required: false
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index e2f31e25b1..e314a7399b 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,6 +1,7 @@
I want to merge this change because...
<!-- Please mention all relevant issue numbers. -->
+<!-- GitHub issue number is required for external contributions. -->
# Impact
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index fbd5416d14..c1117c10c7 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -2,12 +2,11 @@
title: Contributing
---
-We welcome all contributions to Saleor, including issues, new features, docs, discussions, and more. Read the following document to learn more about the process of contributing.
+> [!IMPORTANT]
+> We value your contributions to Saleor and want to ensure they meet our project's needs. To help us maintain quality and consistency, we ask that you follow the process described in our [Contribution Guidelines](http://docs.saleor.io/developer/community/contributing). We welcome issues, new features, documentation improvements, community support, and more.
## Table of Contents
-- [Issues](#issues)
-- [New features](#new-features)
- [Running Saleor locally](#running-saleor-locally)
- [Managing dependencies](#managing-dependencies)
- [File structure](#file-structure)
@@ -18,15 +17,6 @@ We welcome all contributions to Saleor, including issues, new features, docs, di
- [Pull requests](#pull-requests)
- [Changelog](#changelog)
-## Issues
-
-Use [Github Issues](https://github.com/saleor/saleor/issues) to report a bug or a problem that you found in Saleor. Use the "Bug report" issue template to provide information that will help us confirm the bug, such as steps to reproduce, expected behavior, Saleor version, and any additional context. When our team confirms a bug, it will be added to the internal backlog and picked up as soon as possible. When willing to fix a bug, let us know in the issue comment, and we will try to assist you on the way.
-
-## New features
-When willing to propose or add a new feature, we encourage you first to open a [discussion](https://github.com/saleor/saleor/discussions) or an [issue](https://github.com/saleor/saleor/issues) (using "Feature request" template) to discuss it with the core team. This process helps us decide if a feature is suitable for Saleor or design it before any implementation starts.
-
-Before merging, any new pull requests submitted to Saleor have to be reviewed and approved by the core team. We review pull requests daily, but if a pull request requires more time or feedback from the team, it will be marked as "queued for review".
-
## Running Saleor locally
### Running Saleor locally in development containers
@@ -35,13 +25,12 @@ The easiest way of running Saleor for local development is to use [development c
Editor instructions:
-- [Visual studio code](https://code.visualstudio.com/docs/devcontainers/containers#_quick-start-open-an-existing-folder-in-a-container)
+- [Visual Studio Code](https://code.visualstudio.com/docs/devcontainers/containers#_quick-start-open-an-existing-folder-in-a-container)
- [PyCharm](https://www.jetbrains.com/help/pycharm/connect-to-devcontainer.html)
- [Codespaces](https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers)
-
Development container only creates container, you still need to start the server. See [common-commands](#common-commands) section to learn more.
### Running Saleor locally with database and additional services in docker
@@ -68,7 +57,7 @@ cd .devcontainer
docker compose up db dashboard redis mailpit
```
-If you didn’t set python version globally set [pyenv](https://github.com/pyenv/pyenv) local version:
+If you didn't set python version globally set [pyenv](https://github.com/pyenv/pyenv) local version:
```shell
pyenv local 3.12
@@ -169,7 +158,7 @@ poe shell
### Poetry
-To guarantee repeatable installations, all project dependencies are managed using [Poetry](https://python-poetry.org). The project’s direct dependencies are listed in `pyproject.toml`.
+To guarantee repeatable installations, all project dependencies are managed using [Poetry](https://python-poetry.org). The project's direct dependencies are listed in `pyproject.toml`.
Running `poetry lock` generates `poetry.lock` which has all versions pinned.
You can install Poetry by following the official installation [guide](https://python-poetry.org/docs/#installation).
@@ -178,8 +167,6 @@ We recommend using at least version `2.1.1` as it contains many fixes and featur
> [!TIP]
> We recommend using this workflow and keeping `pyproject.toml` and `poetry.lock` under version control to ensure that all computers and environments run the same code.
-
-
## File structure
We are using a standard Django structure - every app has its directory, where you can find:
@@ -335,7 +322,6 @@ in every file.
We recommend using `given`, `when`, `then` to distinguish between different test parts.
It significantly improves test readability and clarifies what you are testing.
-
## Coding style
Saleor uses various tools to maintain a common coding style and help with development.
@@ -370,7 +356,7 @@ Use [ruff](https://github.com/astral-sh/ruff) to check and format your code.
[EditorConfig](http://editorconfig.org/) is a standard configuration file that aims to ensure consistent style across multiple programming environments.
-Saleor’s repository contains [an `.editorconfig` file](.editorconfig) describing our formatting requirements.
+Saleor's repository contains [an `.editorconfig` file](.editorconfig) describing our formatting requirements.
Most editors and IDEs support this file either directly or via plugins. See the [list of supported editors and IDEs](http://editorconfig.org/#download) for detailed instructions.
@@ -429,7 +415,6 @@ You can find it in this PR [#9344](https://github.com/saleor/saleor/pull/9344).
> The search vector update task is triggered by [celery beat scheduler](https://docs.saleor.io/developer/running-saleor/task-queue#periodic-tasks).
> This feature will not work without task queue configuration.
-
### API
- Use `id` for mutation inputs instead of `model_name_id`.
@@ -522,6 +507,7 @@ class AppSortingInput(SortInputObjectType):
> [!TIP]
> Sometimes you would like to sort the data by some field that should be calculated, which isn't the model field. There is an option for that; you need to create a method whose name starts with `qs_with` followed by a sort field name in lowercase.
> The method should annotate the queryset to contain the new value. Look at the example:
+>
> ```python
> class CollectionSortField(graphene.Enum):
> NAME = ["name", "slug"]
@@ -540,7 +526,6 @@ class AppSortingInput(SortInputObjectType):
>
> ```
-
A similar behavior can be found in filtering: you need to create `FilterInputObjectType`
and Django `FilterSet` in a dedicated `filters.py` file.
@@ -655,12 +640,11 @@ To speed up the review process and to keep the logs tidy, we recommend the follo
For more information and tips on how to write good commit messages, see the GitHub [guide](https://github.com/erlang/otp/wiki/writing-good-commit-messages).
-
## Pull requests
Remember to add a meaningful title and a good description when you open a pull request.
Please describe what is changing, the reason for doing that, or what problem it fixes.
-If it resolves a GitHub issue, please link it. Wait for all actions to be performed, and if all is green, request the `saleor/core` group for review.
+All Pull Requests should be linked to their corresponding GitHub issues.
## Changelog
@@ -678,7 +662,7 @@ The changelog entry should consist of the name of the PR, the PR number, and the
Here is a complete list of changes that we consider breaking:
- deleting a field from the GraphQL schema / renaming the field name
-- deleting the field from the webhook payload / changing the name of the returned field
+- deleting the field from the webhook payload / changing the name of the returned field
- changing signatures of plugins functions (PluginsManager) - breaking only for existing plugins
- adding new validation in a mutation logic - it may break storefronts and apps
- changing of the API behavior even if the schema doesn't change - e.g., the type of field hasn't changed, but the requirements for value has
diff --git a/README.md b/README.md
index 08a9d74ff9..71f82ec914 100644
--- a/README.md
+++ b/README.md
@@ -80,28 +80,29 @@
- **Native-multichannel** - Per [channel](https://docs.saleor.io/docs/3.x/developer/channels) control of pricing, currencies, stock, product, and more.
-
## Why API-only Architecture?
Saleor's API-first extensibility provides powerful tools for developers to extend backend using [webhooks](https://docs.saleor.io/docs/3.x/developer/extending/webhooks/overview), attributes, [metadata](https://docs.saleor.io/docs/3.x/api-usage/metadata), [apps](https://docs.saleor.io/docs/3.x/developer/extending/apps/overview), [subscription queries](https://docs.saleor.io/docs/3.x/developer/extending/webhooks/subscription-webhook-payloads), [API extensions](https://docs.saleor.io/docs/3.x/developer/extending/webhooks/synchronous-events/overview), [dashboard iframes](https://docs.saleor.io/docs/3.x/developer/extending/apps/overview).
Compared to traditional plugin architectures (monoliths) it provides the following benefits:
-* There is less downtime as apps are deployed independently.
-* Reliability and performance - custom logic is separated from the core.
-* Simplified upgrade paths - eliminates incompatibility conflicts between extensions.
-* Technology-agnostic - works with any technology, stack, or language.
-* Parallel development - easier to collaborate than with a monolithic core.
-* Simplified debugging - easier to narrow down bugs in independent services.
-* Scalability - extensions and apps can be scaled independently.
+- There is less downtime as apps are deployed independently.
+- Reliability and performance - custom logic is separated from the core.
+- Simplified upgrade paths - eliminates incompatibility conflicts between extensions.
+- Technology-agnostic - works with any technology, stack, or language.
+- Parallel development - easier to collaborate than with a monolithic core.
+- Simplified debugging - easier to narrow down bugs in independent services.
+- Scalability - extensions and apps can be scaled independently.
### What are the tradeoffs?
+
If you are a single developer working with a small business that doesn't have high traffic or a critical need for 24/7 availability, using a service-oriented approach might feel more complex compared to the traditional WordPress or Magento approach that provides a language-specific framework, runtime, database schema, aspect-oriented programming, and other tools to a quick start.
However, if you deploy on a daily basis, reliability and uptime is critical,
you need to collaborate with other developers, or you have non-trivial requirements you might be in the right place.
## Features
+
- **Enterprise ready**: Secure, scalable, and stable. Battle-tested by big brands
- **Dashboard**: User-friendly, fast, and productive. (Decoupled project [repo](https://github.com/saleor/saleor-dashboard) )
- **Global by design** Multi-currency, multi-language, multi-warehouse, tutti multi!
@@ -117,7 +118,6 @@ you need to collaborate with other developers, or you have non-trivial requireme
- **SEO**: Unlimited SEO freedom with headless architecture.
- **Apps**: Extend dashboard via iframe with any web stack.
-
![Saleor Dashboard - Modern UI for managing your e-commerce](https://user-images.githubusercontent.com/9268745/224249510-d3c7658e-6d5c-42c5-b4fb-93eaf65a5335.png)
## Installation
@@ -129,11 +129,12 @@ The `main` branch is the development version of Saleor and it may be unstable. T
The current production-ready version is 3.x and you should use this version for all three components:
-- Saleor: https://github.com/saleor/saleor/releases/
-- Dashboard: https://github.com/saleor/saleor-dashboard/releases/
-- Storefront: https://github.com/saleor/react-storefront/releases/
+- Saleor: <https://github.com/saleor/saleor/releases/>
+- Dashboard: <https://github.com/saleor/saleor-dashboard/releases/>
+- Storefront: <https://github.com/saleor/react-storefront/releases/>
### Saleor Cloud
+
The fastest way to develop with Saleor is by using developer accounts in [Saleor Cloud](https://cloud.saleor.io).
Register [here](https://cloud.saleor.io/register) or install our [CLI tool](https://github.com/saleor/saleor-cli):
@@ -174,11 +175,11 @@ For the dashboard, go to the [saleor-dashboard](https://github.com/saleor/saleor
## Contributing
-We love your contributions and do our best to provide you with mentorship and support. If you are looking for an issue to tackle, take a look at issues labeled [`Good first issue`](https://github.com/saleor/saleor/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22+)
+We love your contributions and do our best to provide you with mentorship and support. If you are looking for an issue to tackle, take a look at issues labeled [`Good first issue`](https://github.com/saleor/saleor/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22+) and [`Help wanted`](https://github.com/saleor/saleor/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22).
-If nothing grabs your attention, check [our roadmap](https://saleor.notion.site/roadmap) or come up with your feature. Just drop us a line or [open an issue](https://github.com/saleor/saleor/issues/new) and we’ll work out how to handle it.
+If nothing grabs your attention, check [our roadmap](https://saleor.io/roadmap) or [start a Discord discussion](https://saleor.io/discord) about a feature you'd like to see. Make sure to read our [Contribution Guidelines](http://docs.saleor.io/developer/community/contributing) before opening a PR or issue.
-Get more details (e.g how to run Saleor on your local machine) in our [Contributing Guide](./CONTRIBUTING.md).
+Get more details (e.g., how to run Saleor on your local machine) in our [Contributing Guide](./CONTRIBUTING.md).
## License
@@ -186,4 +187,4 @@ Disclaimer: Everything you see here is open and free to use as long as you compl
#### Crafted with ❤️ by [Saleor Commerce](https://saleor.io)