jsonschema - unexptected caching
HeKR96 opened this issue · comments
Describe the bug
When I create a schema file for a step, the initial content of the schema file appears in the UI. However, when I try to change anything, nothing happens. I noticed several layers of the issue:
- Changing the content of the file does not change the form
- When I delete the schema file, the form is still used for the step.
- When I delete the schema and the step file and then create a new step file with the same name, the form is still applied to the step, even though there is not schema file.
Expected behaviour
I expect the following behaviour:
- When I change the schema file, the changes should reflect in the form
- When I delete the schema file, the step should have no form and offer me to create a new schema file
- When I delete the schema and the step file and then recreate the step file, the step should have no form and offer me to create a new schema file
To Reproduce
Steps to reproduce the behaviour:
- Create a pipeline
- Create a new step
- Put the step in the pipeline
- Create a schema file
- Review the generated form
- Change the schema file
- Review the generated form
- Delete schema file
- Review the generated form
Notice that there is a step form even though there is no schema file.
Environment
- OS: openSUSE Leap 15.3
- Python: 3.10.5
- Minikube version: v1.25.2
- Browser: Chromium Version 104.0.5112.101 (openSUSE Build) stable (64-bit), Caching disabled
- Orchest's version: v2022.09.1
- Installation: convenience_install.sh
❤️ Thanks for opening your first issue! We really appreciate your input.
💬 If you need to connect more synchronously with members of the Orchest community, please feel free to chat with us on our Slack.
Hello @HeKR96, thanks for reporting this issue!
I observed a similar problem a few days ago but forgot to open a public issue about it, and I'm quite sure that @iannbing already addressed it. We are about to ship a big refactor (see #1269) so probably the problem is already fixed there. I will make some tests locally and leave a comment here.
If you want to try it out yourself, you can either follow our development installation procedure, or wait for us to make a new release (very soon!)
I made some experiments with the latest development branch and still observed some weird behavior, so we'll look into this soon.