-
-
Notifications
You must be signed in to change notification settings - Fork 523
Move OpenAPI configuring logic #1823
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
Conversation
Please tell the cause of the build failure, then I will fix it 🙂 |
You should have access to the build results here: If you click on details on github, you should see it |
…duplicate." This reverts commit 8fa89e0.
@bnasslahsen , |
Unfortunately, we cannot. We should keep the existing tests passing. The only acceptable change is on TestApp138! |
@bnasslahsen, |
OK now I got the point. I found out why some tests fail. The method I modified is So you rolled back to the previous history via revert. But this revert job seems to be rolling back this merged PR. So I revert again, openApiLocaleCustomizers.values().forEach(openApiLocaleCustomizer -> openApiLocaleCustomizer.customise(openAPI, finalLocale));
openApiCustomisers.ifPresent(apiCustomizers -> apiCustomizers.forEach(openApiCustomizer -> openApiCustomizer.customise(openAPI))); With this modification, I thought that it would be possible to handle duplicate header values while keeping the previously merged PR changes. The problem now depends on the order in which the test code performs the 3 lines below. openAPIService.updateServers(openAPI);
openApiLocaleCustomizers.values().forEach(openApiLocaleCustomizer -> openApiLocaleCustomizer.customise(openAPI, finalLocale));
openApiCustomisers.ifPresent(apiCustomizers -> apiCustomizers.forEach(openApiCustomizer -> openApiCustomizer.customise(openAPI))); I tried debugging SpringDocApp162Test.testApp2(). 0102As shown in the screenshot, if However, if called in the reverse order, So, to catch the reflected PR contents and the duplicate header generation bug at the same time, it seems that the test code and environment modification are necessary. If it is possible to modify the test code, I will work on it. If that is impossible or dangerous, it seems safe to revert as before. Please comment if I'm misunderstood 🙂 |
Preferably, all tests should still be passing without modification. |
@bnasslahsen , As mentioned in the previous comment, the work you reverted is (probably) that the header is not duplicated every time you refresh the browser, but the merged PR work is rolled back. As a result, to improve the previously merged PR and duplicate header issues at the same time, it seems that the test-related code and resources need to be modified. By the way, could you please tell me why this test is failing? I'm not sure even if I check it through the debugger. The logic of |
I think that you are cluttering the PR with final keywords and formatting. It is very hard to understand what changes did you make exactly due to that. Maybe add the minimum amount of changes to make it clear what are you trying to achieve here. |
@ahmedalnuaimi , Thanks for the link. First of all, talking about this PR, this PR hasn't been sorted out for a very long time now. I left a comment to the maintainer by attaching materials such as screenshots about some test case modifications, but I haven't received any response since. It has been quite a while since the new version was distributed by reverting the modifications previously uploaded to this project as PR. Assuming that the existing test code is correct, it will be difficult for me to proceed with this related work, so I will close this PR. |
Description
Additional Information