Error in Deleting Data in Prod Environment #756
-
Beta Was this translation helpful? Give feedback.
Answered by
jonasnobile
Mar 26, 2025
Replies: 3 comments 2 replies
-
|
Hi, are you trying both production and local action with same role? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Yes, I have the same role in both the local and production environment. I
am accessing via 'admin' role.
…On Mon, 24 Mar 2025, 6:35 pm jonasnobile, ***@***.***> wrote:
Hi, are you trying both production and local action with same role?
—
Reply to this email directly, view it on GitHub
<#756 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXHQMXFY2I5CKLY2Q7FDOO32V75QXAVCNFSM6AAAAABZNWN3W2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRQGE4TINQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Hi, when I imported the data from one prod environment to another prod
environment the email and user roles were not imported.
I checked on with the settings inside the repository and saw that there
were many different API keys setup.
So it might be the role issue.
I checked the codebase and don't see any real connection where I could say
those API_KEYS have been used for the current prod.
I don't have any migrations that affect the codebase or the user roles.
So I was wondering if I push it to current prod, it should not tamper and
this issue should not persists. Am I right in thinking so?
…On Mon, 24 Mar 2025, 6:59 pm Kausik Paudel, ***@***.***> wrote:
Yes, I have the same role in both the local and production environment. I
am accessing via 'admin' role.
On Mon, 24 Mar 2025, 6:35 pm jonasnobile, ***@***.***>
wrote:
> Hi, are you trying both production and local action with same role?
>
> —
> Reply to this email directly, view it on GitHub
> <#756 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AXHQMXFY2I5CKLY2Q7FDOO32V75QXAVCNFSM6AAAAABZNWN3W2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRQGE4TINQ>
> .
> You are receiving this because you authored the thread.Message ID:
> <contember/interface-archive/repo-discussions/756/comments/12601946@
> github.com>
>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Your issue arises because of the difference between the local and production engine versions:
The engine system behaves slightly differently between these two versions. Specifically, Contember v2 introduced different events handling during execution of generated query, causing your current setup (two different entity trees referencing the same entity but with different ordering or filtering conditions) to throw errors when attempting deletion.
Why the issue is occurring:
In your code, you're referencing:
in multiple places but with different conditions or order…