-
Notifications
You must be signed in to change notification settings - Fork 297
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
Development
: Improve endpoint analysis
#9236
Development
: Improve endpoint analysis
#9236
Conversation
…gned to the correct endpoints anyway
development
: improve endpoint analysis
development
: improve endpoint analysisdevelopment
: Improve endpoint analysis
development
: Improve endpoint analysisDevelopment
: Improve endpoint analysis
WalkthroughThe recent changes enhance the GitHub Actions workflow for analyzing endpoint connections by refining its triggering conditions and restricting execution to relevant code paths. In addition, code clarity is improved across various Java and TypeScript files through standardized variable names and updated data structures, particularly in relation to handling REST call information. These modifications aim to optimize both functionality and maintainability of the codebase. Changes
Possibly related issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/Postprocessor.ts
Outdated
Show resolved
Hide resolved
...ysis-of-endpoint-connections/src/main/java/de/tum/cit/endpointanalysis/EndpointAnalyzer.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small comments on the code
supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/Postprocessor.ts
Outdated
Show resolved
Hide resolved
supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/Postprocessor.ts
Outdated
Show resolved
Hide resolved
supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/Postprocessor.ts
Outdated
Show resolved
Hide resolved
supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/Postprocessor.ts
Outdated
Show resolved
Hide resolved
...s-of-endpoint-connections/src/main/java/de/tum/cit/endpointanalysis/RestCallInformation.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
...s-of-endpoint-connections/src/main/java/de/tum/cit/endpointanalysis/RestCallInformation.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
supporting_scripts/analysis-of-endpoint-connections/src/main/typeScript/Postprocessor.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code LGTM after the changes. I also tested it manually in the workflow on the develop branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still some incorrectly labeled endpoints (e.g. GET https://artemis.ase.in.tum.de/api/public/imprint, which is labeled as unusedEndpoint, although it is used on https://artemis.ase.cit.tum.de/imprint). Nevertheless for this PR, the code looks good and the analysis files are generated.
Checklist
General
Motivation and Context
The current implementation of the analysis of REST calls and Endpoints was inconsistent in a few places
Description
This PR implements the follow-up changes requested in the previous PR. It also enables REST calls that start with a redundant
/
to be assigned to the correct Endpoints.Steps for Testing
Prerequisites:
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Code Review
Summary by CodeRabbit
New Features
fileName
tofilePath
across various components.Bug Fixes
Refactor
Chores