Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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
Appearance settings

[COR-57] Remove extractCollection helper from step#22166

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

Open
markuspf wants to merge4 commits intochore/unify-vertex-ref
base:chore/unify-vertex-ref
Choose a base branch
Loading
fromchore/remove-extract-collection-helper-from-step

Conversation

@markuspf
Copy link
Contributor

@markuspfmarkuspf commentedDec 8, 2025
edited by cursorbot
Loading

Scope & Purpose

Removes some code duplication. Requires#22165 to be merged first, and has an enterprise counterpart,https://github.com/arangodb/enterprise/pull/1564


Note

Replaces per-step collection-name extraction with VertexRef::collectionName, updates PathValidator accordingly, removes redundant getCollectionName/extract helpers, and wires new VertexRef.cpp into build.

  • Graph Types:
    • AddVertexRef::collectionName() and new implementation fileGraph/Types/VertexRef.cpp; include inGraph/Types/CMakeLists.txt.
  • Path Validation:
    • Usestep.getVertex().collectionName() inPathValidator::evaluateVertexRestriction with error propagation.
  • Provider Steps:
    • RemovegetCollectionName() andBaseStep::extractCollectionName; adjustClusterProviderStep,SingleServerProviderStep, and testMockGraphProvider::Step to rely onVertexRef APIs.
  • Enumerator:
    • Minor formatting/visibility tweaks inWeightedTwoSidedEnumerator (setForbidden* signatures,searchDone declaration).

Written byCursor Bugbot for commit5abb820. This will update automatically on new commits. Configurehere.

@markuspfmarkuspf changed the titleRemove extractCollection helper from step[COR] Remove extractCollection helper from stepDec 8, 2025
Copy link
Contributor

@jvolmerjvolmer left a comment

Choose a reason for hiding this comment

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

LGTM, just a nitpicking

Comment on lines 29 to 34
[[nodiscard]] auto extractCollectionName(
velocypack::HashedStringRef const& idHashed)
-> ResultT<std::pair<std::string, size_t>>;

[[nodiscard]] auto extractCollectionNameOrThrow(
velocypack::HashedStringRef const& vertexRef) -> std::string;
Copy link
Contributor

Choose a reason for hiding this comment

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

probably personal taste: could also be member functions of VertexRef but his is also fine.

@markuspfmarkuspfforce-pushed thechore/remove-extract-collection-helper-from-step branch frome36b2c6 toae01274CompareDecember 9, 2025 19:37
@markuspfmarkuspfforce-pushed thechore/remove-extract-collection-helper-from-step branch froma42946e to65b6badCompareDecember 9, 2025 20:10
@markuspfmarkuspf changed the title[COR] Remove extractCollection helper from step[COR-57] Remove extractCollection helper from stepDec 11, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jvolmerjvolmerjvolmer approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@markuspf@jvolmer

[8]ページ先頭

©2009-2025 Movatter.jp