Skip to content

feat: saleor seeder script#543

Draft
jmalinkiewicz wants to merge 15 commits intomirumee:developfrom
jmalinkiewicz:feat/programatically-seed-saleor
Draft

feat: saleor seeder script#543
jmalinkiewicz wants to merge 15 commits intomirumee:developfrom
jmalinkiewicz:feat/programatically-seed-saleor

Conversation

@jmalinkiewicz
Copy link

@jmalinkiewicz jmalinkiewicz commented Feb 13, 2026

This pull requests introduces a new seeder package. It solves the issue I've personally experienced myself - the tedious task of setting up Saleor Sandbox (creating attributes, page types, assigning attributes and filling them etc.).

Running the script:

pnpm seed

Wipes all the default Saleor Sandbox types and creates all data models specified in the docs and populates them with mock data.

Before running the script:
image
The script running:

Screen.Recording.2026-02-13.at.20.01.06.mp4

After the script was run:
image

The SALEOR_APP_TOKEN environment variable must have the following permissions granted:

MANAGE_PRODUCTS
MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES
MANAGE_PAGES
MANAGE_PAGE_TYPES_AND_ATTRIBUTES
MANAGE_MENUS

Pull Request Checklist

  • Test the changes locally to ensure they work as expected.
  • Document the testing process and results in the pull request description. (Screen recording, screenshot etc)
  • Include new tests for any new functionality or significant changes.
  • Ensure that tests cover edge cases and potential failure points.
  • Document the impact of the changes on the system, including potential risks and benefits.
  • Provide a rollback plan in case the changes introduce critical issues.
  • Update documentation to reflect any changes in functionality.

@vercel
Copy link

vercel bot commented Feb 13, 2026

@jmalinkiewicz is attempting to deploy a commit to the Mirumee Team on Vercel.

A member of the Team first needs to authorize it.

@jmalinkiewicz jmalinkiewicz marked this pull request as ready for review February 13, 2026 19:19
@jmalinkiewicz
Copy link
Author

jmalinkiewicz commented Feb 16, 2026

The script now uploads product images in parallel

@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nimara-ecommerce Ready Ready Preview Feb 17, 2026 2:55pm

Request Review

@GrzegorzDerdak
Copy link
Collaborator

@jmalinkiewicz

First of all, thank you for your work on this — it’s really appreciated. I’ll get back to you shortly.

I need to discuss this apprach with the team, as we’ve been planning something similar to simplify and improve the setup/installation flow with Saleor.

@GrzegorzDerdak GrzegorzDerdak added the enhancement New feature or request label Feb 17, 2026
@jmalinkiewicz
Copy link
Author

There is definitely room for improvement here. The script is now only useful for devs who want to set up their environment quickly.

I think this script could use a flag/question step where you can define whether you want to only create the data models, or also populate with mock data.

This way the script would be useful for people setting up their store for the "real world" use case.

@jmalinkiewicz
Copy link
Author

I just learned about the Saleor Configurator. The logic in this PR overlaps with the functionality already handled there.

I will refactor this PR to use the Saleor Configurator, and also remove the mock data functionality, since a Saleor Environment is already populated with mock data by default.

@jmalinkiewicz jmalinkiewicz marked this pull request as draft February 18, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants