Closed PS222407 closed 3 months ago
Hi thanks for your report. Unfortunately I am unable to reproduce the situation if it restart docker and refresh the UI, I do see the rule. Your instructions are missing the collection. I created a basic collection
Rule after reload
The UI code does use the standard API and does not upsert or delete a rule on loading. If you are meaning that the analytics rules tab is completley disable that could mean that there is a bug in the detection if the feature is available on the server. The UI tries to query and rules and if the server replies with an error, it disables the tab.
Thanks for your fast reply. Yes sorry I forgot to paste the create collection step, I added it now. Its weird that you dont get the same issue, I will look further into it to get more details on when and why this happens. I do see that the source collection(s) is empty but thats also the case when I check it via api. The tab is not disabled, I do see older rules listed, only just newly added ones are not displaying.
I tried it with the steps I gave to reproduce another 10 times. It works 50% of the time. I really have no idea what causes this problem but I dont think the UI is the problem which I initially thought so this issue can propably be closed.
Describe the bug It seems like when you create a rule, restart the docker container and view the new rule in the UI before using shell it gets deleted. I think only when source and destination are the same collection but I could not verify that bit for sure.
To Reproduce Steps to reproduce the behavior:
docker-compose.yml
docker-compose up -d
create collection
insert a document
create a rule
restart docker containers docker-compose down && docker-compose up -d
Expected behavior It should display the earlier created rule.
Environment (please complete the following information):