Z-HUANT opened a new pull request, #2408:
URL: https://github.com/apache/incubator-hugegraph/pull/2408

   ## Purpose of the PR
   
   - I have completed Task 13-7.
   
   #2245 
   
![image](https://github.com/apache/incubator-hugegraph/assets/55943045/cc0c8687-84a9-446c-8592-75bec6c920d4)
   
   ## Main Changes
   
   Relevant issue:#2255 
   
   API:Modified the org.apache.hugegraph.api.graph.EdgeAPI#list interface. When 
the queried EdgeLabel is not empty, first check if the EdgeLabel exists in the 
schema (in-memory check). If it does not exist, return early.
   
   Gremlin Query:When the EdgeLabel does not exist, it will be detected at 
HugeGraphStep#makeQuery, and will return early. Therefore, there is no need to 
optimize the query.
   
   ## Verifying these changes
   
   <!-- Please pick the proper options below -->
   
   - [ ] Trivial rework / code cleanup without any test coverage. (No Need)
   - [ ] Already covered by existing tests, such as *(please modify tests 
here)*.
   - [x] Need tests and can be verified as follows:
    
   edge data
   
![image](https://github.com/apache/incubator-hugegraph/assets/55943045/98f8989a-2042-477f-ab58-2fc8dd2d4b3c)
   
   
   GET http://127.0.0.1:8080/graphs/hugegraph/graph/edges?label=test
   
![image](https://github.com/apache/incubator-hugegraph/assets/55943045/e188a94c-8009-49d0-a5f8-375b2c4d3a9a)
   
   
   
   ## Does this PR potentially affect the following parts?
   
   - [ ]  Nope
   - [ ]  Dependencies (add/update license info) <!-- Don't forget to 
add/update the info in "LICENSE" & "NOTICE" files (both in root & dist module) 
-->
   - [ ]  Modify configurations
   - [x]  The public API
   - [ ]  Other affects (typed here)
   
   org.apache.hugegraph.api.graph.EdgeAPI#list
   
   ## Documentation Status
   
   - [ ]  `Doc - TODO` <!-- Your PR changes impact docs and you will update 
later -->
   - [ ]  `Doc - Done` <!-- Related docs have been already added or updated -->
   - [x]  `Doc - No Need` <!-- Your PR changes don't impact/need docs -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to