Aias00 commented on PR #2494: URL: https://github.com/apache/hertzbeat/pull/2494#issuecomment-2275098492
> hi, sorry for not got it. Do you means the `empty rule` should be verification failed, the form can not be submiited.? This maybe an another bug. > > The cascade values length only mapping with the Metric Target Switch, if choose the `Availability`, cascade length is 2, if choose others metrics, length is 3. > > <img alt="image" width="851" src="https://private-user-images.githubusercontent.com/24788200/356112194-0200572f-cf5d-40b5-9e5a-7de0e9edbb96.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMxMDA1MTMsIm5iZiI6MTcyMzEwMDIxMywicGF0aCI6Ii8yNDc4ODIwMC8zNTYxMTIxOTQtMDIwMDU3MmYtY2Y1ZC00MGI1LTllNWEtN2RlMGU5ZWRiYjk2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA4VDA2NTY1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwODg5MGFiYzhlOTUzN2YxOWQwNWUyNGQ1NTBiNGNiMzJjM2Y5OTFmZTI3YjNlYWE2NGNlOGM4YjIyNDM2MjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VuWSnhRNr5GdRwKZajLYnYXMopP9Csk6hc0Z-ZYVI3c"> <img alt="image" width="854" src="https://private-user-images.githubusercontent.com/24788200/356112448-44263e98-bfe6-4663-a7a0-f3a0dca6156 4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMxMDA1MTMsIm5iZiI6MTcyMzEwMDIxMywicGF0aCI6Ii8yNDc4ODIwMC8zNTYxMTI0NDgtNDQyNjNlOTgtYmZlNi00NjYzLWE3YTAtZjNhMGRjYTYxNTY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA4VDA2NTY1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEwN2Q5MDYzYmNmMzMxNGZhZDBhZjg3ODdhNTkxNzJmYzhlZWJkZWZjOWFhMmVmZGI2ZWVmMDkwNTJlNGIzYmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yonMKu4f2L_wWF05mD4VNkmN4WKMTxGbQ7hU4fUbf8w"> yeap, this empty rule can submitted successfully situation may be another bug. all i want to say, it`s that : 1. if u changed the cascade value to 3 length、add some rule and then change it back to 2 length. it can be submitted; cause the rules datas were not cleared. and this can let the form check control valid. oh, this may be another bug 🤣 2. when 2 length cascade , the form check control should allows the form`s submiting. and this pr can fix it appropriately -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
