Skip to content

Conversation

@stevebio
Copy link
Collaborator

No description provided.

@github-actions
Copy link

github-actions bot commented Dec 30, 2025

Copyright Validation Results
Total: 4 | Passed: 4 | Failed: 0 | Skipped: 0 | at: 2026-01-05 22:07:13 UTC | commit: 3024522

✅ Valid Files

  • lib/plan-builder-base.js
  • lib/plan-builder-generated.js
  • test-basic/optic-vector.js
  • test-basic/plan-builder-generated.js

✅ All files have valid copyright headers!

@stevebio stevebio force-pushed the feature/26338-add-vec-precision-trunc branch from 513e69f to 09aac63 Compare December 30, 2025 23:48
@stevebio stevebio changed the title MLE-26338 expose vec.precision and vec.trunc in Node client. MLE-26340 expose vec.precision and vec.trunc in Node client. Dec 30, 2025
@stevebio stevebio force-pushed the feature/26338-add-vec-precision-trunc branch 6 times, most recently from 973a87c to 5e05814 Compare January 2, 2026 17:13
@stevebio stevebio marked this pull request as ready for review January 5, 2026 21:35
Copilot AI review requested due to automatic review settings January 5, 2026 21:35
@stevebio stevebio requested a review from rjrudin as a code owner January 5, 2026 21:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR exposes two new vector functions (vec.precision and vec.trunc) in the Node.js client library and updates existing vector function tests with improved assertions and comments.

Key Changes:

  • Added vec.precision and vec.trunc function definitions to the plan builder
  • Updated test suite with clearer assertions and explanatory comments
  • Modernized test code by replacing p with op for plan builder references
  • Updated copyright year to 2026 across affected files

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
lib/plan-builder-generated.js Added precision and trunc function definitions for the vec namespace with JSDoc documentation
lib/plan-builder-base.js Modified VecVector type handling in castArg to return the arg directly instead of arg._args
test-basic/optic-vector.js Refactored tests with improved assertions, added skipped tests for new vec functions, and updated variable naming from p to op
test-basic/plan-builder-generated.js Updated vec.base64Decode test with corrected test data and assertion

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@stevebio stevebio force-pushed the feature/26338-add-vec-precision-trunc branch from 5e05814 to 72d2c79 Compare January 5, 2026 21:59
Update high vulnerability
Add comment about VecVector
Update copyright
@stevebio stevebio force-pushed the feature/26338-add-vec-precision-trunc branch from 72d2c79 to 3024522 Compare January 5, 2026 22:06
@stevebio
Copy link
Collaborator Author

stevebio commented Jan 5, 2026

Ling added vec.precision and vec.trunc and now op calls work.

Copy link
Contributor

@rjrudin rjrudin left a comment

Choose a reason for hiding this comment

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

Looks good!


const marklogic = require('../');
const p = marklogic.planBuilder;
const op = marklogic.planBuilder;
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@stevebio stevebio closed this Jan 6, 2026
@stevebio stevebio deleted the feature/26338-add-vec-precision-trunc branch January 6, 2026 17:42
@stevebio stevebio restored the feature/26338-add-vec-precision-trunc branch January 6, 2026 17:42
@stevebio stevebio deleted the feature/26338-add-vec-precision-trunc branch January 6, 2026 18:37
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.

3 participants