Git repo for forms not quite working. #179
-
Changed forms to a git repo and added this repo, all fine. I have all my forms and forms.yaml in gitlab repo and this syncs to below folder fine. But refresh (as admin) doesn't show anything. blank screen. If I do move forms.yaml out of this folder, I get to see my forms. Couldn't find any info in the documentation on how this should work . regards.. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 14 replies
-
the forms.yaml should be in the original place (non-repo). forms.yaml should then only contain the roles and categories. Or that's the idea, to move the actual "forms" to repo's and keep the forms.yaml internal. It you can think of a better way, please share and I'll concider it. But note that I need to be able to process the roles even if all repo's are failing. It's a bit of legacy really. originally it was only 1 forms files, then I added the forms folder and then the repos. I could potentially move the roles and categories to the database for example or to a "config" file. But I want to be as backwards compatible as possible |
Beta Was this translation helpful? Give feedback.
-
Good day, sorry for the delay. I understand now where this originated from. btw, in the log it seems, forms.yaml is searched for in both locations.
|
Beta Was this translation helpful? Give feedback.
-
So bottomline :
The designer will become disabled (as precaution to prevent conflicts)
|
Beta Was this translation helpful? Give feedback.
-
Thanks for adding the possibility. Will test this once I have more time. Tried it quick (beta 5.0.3) but can't see the forms yaml section in the settings-AF. Updating this settings prompts a invalid data msg also. No idea. Nothing in the log. |
Beta Was this translation helpful? Give feedback.
-
Hope you've had a good vacation. I just tried it and works as you intended. This is handy as one does not have to go through git commands to change a simple role. |
Beta Was this translation helpful? Give feedback.
So in the settings you can now define the base forms.yaml in the database. To make it easy, you can load if from the original file if present. This way, the forms.yaml can be dropped from repo. Don't forget to place your other form-yaml-files under the forms/ folder in your repository.