Closed sidemt closed 1 year ago
Hi @sidemt, Thanks submitting this issue and providing an example repo. That proved to be very helpfull.
I've been able to replicate this issue and directly wrote an extra integration test for the importOnBootsrap
feature.
By doing that I've been able to reproduce this issue in a failed pipeline.
And I was able to confirm the fix by observing the successful pipeline.
This will hopefully prevent this issue from going unnoticed in the future.
The fix is included in the PR #111 Could you test that on your side? You can simply install the PR like so:
yarn add boazpoolman/strapi-plugin-config-sync#pull/111/head
Re-opened. Can be closed as soon as it's been released.
@boazpoolman Thank you for the fix. It worked on my side too.
The fix has been released with v1.2.2
If you're still having this, or any other issue with the plugin beyond v1.2.2 please feel free to open a new issue.
Bug report
Describe the bug
I'm using this plugin for setting up the test environment. But since v1.2.0 it started failing to import config with
ValidationError: Invalid relations
.I can only reproduce this error when I import config with
importOnBootstrap: true
. If I useyarn cs import
ornpm run cs import
manually, it works.Steps to reproduce the behavior
yarn install
yarn test
ValidationError: Invalid relations
Error log:
Expected behavior
Can import config and run tests successfully.
Screenshots
Code snippets
Minimal code that can reproduce this issue It's created with the following steps:
npx create-strapi-app@latest config-sync-test --quickstart
importOnBootstrap: true
inconfig/env/test/plugins.js
System
Additional context
Add any other context about the problem here.