Skip to content

Conversation

xav-db
Copy link
Member

@xav-db xav-db commented Aug 6, 2025

Description

migrations, embedding macro, optional paramas

Related Issues

Closes #

Checklist when merging to main

  • No compiler warnings (if applicable)
  • Code is formatted with rustfmt
  • No useless or dead code (if applicable)
  • Code is easy to understand
  • Doc comments are used for all functions, enums, structs, and fields (where appropriate)
  • All tests pass
  • Performance has not regressed (assuming change was not to fix a bug)
  • Version number has been updated in helix-cli/Cargo.toml and helixdb/Cargo.toml
  • Lines are kept under 100 characters where possible
  • Code is good

Additional Notes

RaphaelDarley and others added 30 commits July 25, 2025 15:36
…into builtin-endpoints + fix issues with handling macros
## Description
<!-- Provide a brief description of the changes in this PR -->
adding optional params to hql

defined by `?` just like in type script

e.g. 
```js
QUERY (username?: String) => 
    ....
```
## Related Issues
<!-- Link to any related issues using #issue_number -->

Closes #

## Checklist when merging to main
<!-- Mark items with "x" when completed -->

- [ ] No compiler warnings (if applicable)
- [ ] Code is formatted with `rustfmt`
- [ ] No useless or dead code (if applicable)
- [ ] Code is easy to understand
- [ ] Doc comments are used for all functions, enums, structs, and
fields (where appropriate)
- [ ] All tests pass
- [ ] Performance has not regressed (assuming change was not to fix a
bug)
- [ ] Version number has been updated in `helix-cli/Cargo.toml` and
`helixdb/Cargo.toml`
- [ ] Lines are kept under 100 characters where possible
- [ ] Code is good

## Additional Notes
<!-- Add any additional information that would be helpful for reviewers
-->
xav-db and others added 6 commits August 6, 2025 00:55
…rom id (#325)

## Description
<!-- Provide a brief description of the changes in this PR -->
added v from id
merging migration hql syntax and rust generation and internal
implementation
fixing updating and deleting secondary indexes

## Related Issues
<!-- Link to any related issues using #issue_number -->

Closes #

## Checklist when merging to main
<!-- Mark items with "x" when completed -->

- [ ] No compiler warnings (if applicable)
- [ ] Code is formatted with `rustfmt`
- [ ] No useless or dead code (if applicable)
- [ ] Code is easy to understand
- [ ] Doc comments are used for all functions, enums, structs, and
fields (where appropriate)
- [ ] All tests pass
- [ ] Performance has not regressed (assuming change was not to fix a
bug)
- [ ] Version number has been updated in `helix-cli/Cargo.toml` and
`helixdb/Cargo.toml`
- [ ] Lines are kept under 100 characters where possible
- [ ] Code is good

## Additional Notes
<!-- Add any additional information that would be helpful for reviewers
-->
## Description
<!-- Provide a brief description of the changes in this PR -->

## Related Issues
<!-- Link to any related issues using #issue_number -->

Closes #

## Checklist when merging to main
<!-- Mark items with "x" when completed -->

- [ ] No compiler warnings (if applicable)
- [ ] Code is formatted with `rustfmt`
- [ ] No useless or dead code (if applicable)
- [ ] Code is easy to understand
- [ ] Doc comments are used for all functions, enums, structs, and
fields (where appropriate)
- [ ] All tests pass
- [ ] Performance has not regressed (assuming change was not to fix a
bug)
- [ ] Version number has been updated in `helix-cli/Cargo.toml` and
`helixdb/Cargo.toml`
- [ ] Lines are kept under 100 characters where possible
- [ ] Code is good

## Additional Notes
<!-- Add any additional information that would be helpful for reviewers
-->
@Copilot Copilot AI review requested due to automatic review settings August 6, 2025 00:48
Copy link
Contributor

@Copilot 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 implements improvements to migrations, adds an embedding macro for model annotations, and introduces optional parameter functionality. The changes enhance the framework's ability to handle schema evolution, model integration, and flexible API design.

Key changes:

  • Implementation of migration functionality with schema versioning support
  • Addition of embedding macro for annotating queries with model information
  • Optional parameter support in query functions
  • Enhanced type casting and value conversion capabilities

Reviewed Changes

Copilot reviewed 64 out of 65 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
hql-tests/file59/schema.hx Migrated from commented schema to explicit versioned schemas with migration definition
hql-tests/file57/schema.hx Added vector-based clinical note schema definition
hql-tests/file57/file57.hx Implemented embedding-annotated queries for clinical note operations
hql-tests/file56/output.json Removed large JSON output file content
hql-tests/file56/file56.hx Added optional parameter support to search query
hql-tests/file51/schema.hx Expanded schema with user relationships and versioning
hql-tests/file51/migrations.hx Added migration definition between schema versions
helix-macros/src/lib.rs Implemented migration macro for schema transition handling
helix-db/src/utils/items.rs Added version field to Node and Edge structs
helix-db/src/utils/id.rs Enhanced ID type with additional conversion methods
helix-db/src/protocol/value.rs Extensive type casting and value conversion improvements
helix-db/src/protocol/date.rs Added error handling for date operations

@xav-db xav-db merged commit fc70170 into main Aug 6, 2025
13 checks passed
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