-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple warnings about "policy" field validation in Directus v11 #3
Comments
@paulrudy , try to purge your directus instance and re create a new database. My Team is not currently experiencing this in our directus deployments ( EC2 + Postgres ). I am wondering if something just got out of whack with your instance. |
Thanks for the reply. I think this has something to do with the repo not being updated for the policies introduced in v11. I ran into this issue on a brand new database running Directus v11. When I created a new Directus running v10, there were no warnings. Upgrading from v10 to v11 presented no issues. I got feedback on Directus Discord:
|
Interesting, so this issue occurred when you deployed directly from v11, but when deploying from v10 , then upgrading to v11 this issue is resolved? @paulrudy |
Can you edit this issue to include all steps to reproduce the bug? |
Yes, exactly. Or at least, there is no indication of any problem when upgrading.
The steps are essentially following the README of this repo while using a fresh deploy of Directus v11, but I've added them for clarity. |
This is actually covered here: |
Installing the website-cms template on a fresh deployment of Directus v11 causes errors regarding
policy
field validation.Steps to reproduce
Basically, follow the instructions on the README for this repo using Directus's v11 (latest as of this writing). In summary:
directus/directus:latest
npx directus-template-cli@latest apply
Outcome: 250 warnings:
Warning: Status 400 • "Validation failed for field \"policy\". Value is required."
like this:Note that the template did install successfully. I didn't immediately find any issue with the Directus app and the installed template afterwards, so it's possible that the warnings weren't important, but I have no way of knowing.
Installing on Directus v10 produces no such warnings. I'm assuming this has to do with Directus v11 introducing policies. Perhaps the template(s) need to be updated? It's also unclear whether these warnings can be safely ignored.
The text was updated successfully, but these errors were encountered: