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
Add request_number rule #460
Conversation
I would love some help on this prettifier thing. I'm new to javascript/typescript development, I'm a Java developer (please don't throw rocks at me :P) |
Thanks for the contribution @davidvieiratrustly |
Thanks for the help, did the prettifier commit now. The builds are failing because I had to change 3 projects for this issue and they are connected. |
Yes this is expected. We don't have integration tests running of the 3 projects when one is modified. |
Feel free to contact me again if you need anything else regarding this issue. Have a good day, and thank you for creating such a useful program. |
Thank you :) |
Yeap, no problem. |
I would love some help on the UI part, I'm already way out of the comfort zone :P UI-wise, I think we should do an increment integer input for this rule. About the default response, for me, it's the logical thing, but I'm open to suggestions. Maybe we could change the label to Multiple of request number, instead of Request number (starting in 1). |
Sure, I will do the UI part. Also, you are right, value could be an input of type number and we could use the directive |
Yeap, no problem. I have to travel now, but I agree with you. I found it quite confusing implementing this on the rules. |
@davidvieiratrustly yes, the more I thought about it the weirder it became. But now I think I got the solution. We should implement both features. One with a button that trigger sequential responses like you wanted, ignoring the rules. And one where you can say that Response X is served when we get call index Y. So, we get both systems, it's less confusing, and we don't lose your work :) |
Yeah, I think it's the perfect solution like that. Can I implement it and you take care of the UI? |
Sure! I will. Also adding a button will break the responses "header" a bit due to the length. So, I will need to rework it. Also do not worry if you don't know where or how to implement what I will list below. But like this we have an exhaustive list of what to do. So, let's summarize: Feature 1:
Feature 2:
We need to cover both features with tests in commons-server and on the main app with UI automated tests (I can do them). |
@255kb I will close the pull request to let you work on the UI piece. I updated the common and common-server PRs and did the tests for both features. Let me know if I can assist in anything. Have a nice day :D |
Thank you @davidvieiratrustly I will take it from here and add the UI part and the migration. Thanks again for this great contribution! |
Thanks! Eager to start using this feature |
Parent issue
#459
Closes #459
Technical implementation details
Implement a new 'request_number' as described on the issue.