[21.x] Adopt Scandium SR4 versions#2591
Conversation
adopt: - odlparent-14.1.7 - infrautils-7.1.10 - yangtools-14.0.21 - mdsal-14.0.20 - controller-10.0.15 - aaa-0.20.14 - netconf-8.0.10 - bgpcep-0.22.13 JIRA: LIGHTY-418 Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Previously, OpenAPI loaded the base path from the JAX-RS endpoint configuration and stored it in BaseYangOpenApiGenerator. This base path was then used for both JAX-RS and Netty. The base path is now loaded independently in JAX-RS and Netty and passed as a method argument where needed, instead of using a shared value in BaseYangOpenApiGenerator. opendaylight/netconf@064f52e#diff-8a733b54f65f142b67d7c8c8783c1e7b6fd624142f9fd0c8f98b0636797ab1f0 JIRA: LIGHTY-418 Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
OpenApiServiceImpl no longer requires this as a parameter: opendaylight/netconf@99744ac#diff-bc065e5b677ea0df8f2f90804ccfed6efc8369de523bc241a13585779523555b JIRA: LIGHTY-418 Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request updates the project's OpenDaylight dependencies to align with the Scandium SR4 release, ensuring the project benefits from the latest stability improvements and features. Additionally, it includes a minor refactoring within the OpenAPI module to correctly configure the JAX-RS OpenAPI component with the appropriate base path. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates several OpenDaylight dependency versions to adopt Scandium SR4, which is reflected in the pom.xml files. The code change in OpenApiLighty.java is a necessary adaptation to API changes from these updated dependencies. I've included one suggestion to improve code clarity and maintainability by reusing an object instance instead of creating a duplicate.
| @Override | ||
| public Set<Object> getSingletons() { | ||
| return Set.of(new JaxRsOpenApi(openApiService), | ||
| return Set.of(new JaxRsOpenApi(openApiService, basePathString), |
There was a problem hiding this comment.
You are creating a new JaxRsOpenApi instance here, while you have already created and assigned one to the jaxRsOpenApi field on line 64. This means the instance used by the servlet container is different from the one exposed for testing, which can lead to confusion and potential issues. You should reuse the existing instance from the jaxRsOpenApi field to ensure consistency.
| return Set.of(new JaxRsOpenApi(openApiService, basePathString), | |
| return Set.of(jaxRsOpenApi, |
No description provided.