Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Gh-3292: REST API Gremlin Timeout and Execute Endpoints#3294

Merged
j69772 merged 12 commits intodevelopfromgh-3292-restapi-gremlin-timeout
Sep 19, 2024

Conversation

tb06904
Copy link
Member

@tb06904tb06904 commentedSep 13, 2024
edited by github-actionsbot
Loading

Adds configurable timeout to the REST API for gremlin queries, also enables running queries via endpoints as well as the normal websocket. Few bits of tidying as well.

Related issue

@tb06904tb06904 added enhancementImprovement to existing functionality/feature rest-apiSpecific to/touches a part of the REST API labelsSep 13, 2024
@tb06904tb06904 added this to the2.3.1 milestoneSep 13, 2024
@github-advanced-security

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear onthis overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check outthe documentation.

* @return A pair tuple with result and explain in.
*/
private Tuple2<Object, JSONObject> runGremlinQuery(final String gremlinQuery) {
LOGGER.info("QUERY IS: {} ", gremlinQuery);

Check notice

Code scanning / SonarCloud

Logging should not be vulnerable to injection attacks

<!--SONAR_ISSUE_KEY:AZHsM-bbcRvAPM1MQKot-->Change this code to not log user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=gchq_Gaffer&issues=AZHsM-bbcRvAPM1MQKot&open=AZHsM-bbcRvAPM1MQKot&pullRequest=3294">SonarCloud</a></p>
@codecovCodecov
Copy link

codecovbot commentedSep 13, 2024
edited
Loading

Codecov Report

Attention: Patch coverage is93.50649% with5 lines in your changes missing coverage. Please review.

Project coverage is 67.80%. Comparing base(1099bef) to head(d6ad45c).

Files with missing linesPatch %Lines
...gchq/gaffer/rest/controller/GremlinController.java94.44%3 Missing⚠️
.../uk/gov/gchq/gaffer/rest/config/GremlinConfig.java81.81%1 Missing and 1 partial⚠️
Additional details and impacted files
@@              Coverage Diff              @@##             develop    #3294      +/-   ##=============================================+ Coverage      67.76%   67.80%   +0.04%  Complexity      2594     2594              =============================================  Files            947      947                Lines          30217    30267      +50       Branches        3338     3338              =============================================+ Hits           20476    20524      +48- Misses          8274     8276       +2  Partials        1467     1467

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

p29876
p29876 previously approved these changesSep 16, 2024
@j69772j69772 merged commit6471de9 intodevelopSep 19, 2024
21 of 23 checks passed
@j69772j69772 deleted the gh-3292-restapi-gremlin-timeout branchSeptember 19, 2024 10:04
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@cn337131cn337131cn337131 approved these changes

@p29876p29876p29876 approved these changes

@wb36499wb36499Awaiting requested review from wb36499

Assignees
No one assigned
Labels
enhancementImprovement to existing functionality/featurerest-apiSpecific to/touches a part of the REST API
Projects
None yet
Milestone
2.3.1
Development

Successfully merging this pull request may close these issues.

REST API has fixed timeout for Gremlin
5 participants
@tb06904@cn337131@p29876@j69772@wb36499

[8]ページ先頭

©2009-2025 Movatter.jp