Skip to content
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

[TINKERPOP-2972] ProjectStep does not allow keys specified in a query #2217

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

rdtr
Copy link
Contributor

@rdtr rdtr commented Aug 23, 2023

ProjectStep should not accept a duplicate key, anyway doing so would not make much sense while the implementation for Graph provider would be complicated because of the logic to determine what is the actual traversal to be mapped to the key.

@codecov-commenter
Copy link

codecov-commenter commented Aug 23, 2023

Codecov Report

Merging #2217 (c64573f) into 3.6-dev (8acfcb1) will decrease coverage by 0.11%.
The diff coverage is 100.00%.

@@              Coverage Diff              @@
##             3.6-dev    #2217      +/-   ##
=============================================
- Coverage      75.23%   75.13%   -0.11%     
+ Complexity     12278    12264      -14     
=============================================
  Files           1054     1054              
  Lines          63294    63296       +2     
  Branches        6913     6914       +1     
=============================================
- Hits           47617    47555      -62     
- Misses         13112    13182      +70     
+ Partials        2565     2559       -6     
Files Changed Coverage Δ
...remlin/process/traversal/step/map/ProjectStep.java 93.93% <100.00%> (+0.39%) ⬆️

... and 11 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@rdtr rdtr marked this pull request as ready for review August 23, 2023 18:44
@rdtr rdtr force-pushed the TINKERPOP-2972 branch 2 times, most recently from 7cf4a81 to ce98e49 Compare August 30, 2023 05:19
@Cole-Greer
Copy link
Contributor

Thanks for putting this together. Overall the change looks good to me.

If possible it would be nice to have a feature test for this just to ensure there are no issues in the GLV's. A good example of feature tests catching errors can be found here:

@rdtr rdtr force-pushed the TINKERPOP-2972 branch 3 times, most recently from 97487f8 to fdb199a Compare September 5, 2023 16:14
@kenhuuu
Copy link
Contributor

kenhuuu commented Sep 7, 2023

VOTE +1



Scenario: g_V_projectXa_aX
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the Gherkin tests can't handle cases that fast fail on step construction (I believe it needs the step to be successfully constructed before translating it into the GLV tests). I don't think there is any easy work around currently, sorry @rdtr, you might need to remove this test and just have unit tests.

(As an aside, the test is missing a When iterated to list, but that's not really important now that this test won't really work in Gherkin).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually there is a quick workaround I just remembered. You can technically add static translation of this test to all the feature tests in the generate.groovy file of each GLV, but it's ultimately a hack so I'd think it's ok to not include it at this point.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I missed that this scenario is incompatible with the feature tests.

VOTE +1 (with failing feature test removed)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I deleted the feature test. Please check when you have time, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants