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

Dev minor #1554

Merged
merged 7 commits into from
Nov 5, 2024
Merged

Dev minor #1554

merged 7 commits into from
Nov 5, 2024

Conversation

emrgnt-cmplxty
Copy link
Contributor

@emrgnt-cmplxty emrgnt-cmplxty commented Nov 4, 2024

Important

This PR adds email reset and document metadata update features, updates API endpoints, and enhances document ingestion with collection ID support.

  • Features:
    • Add sendResetEmail() to r2rClient in r2rClient.ts for sending reset emails.
    • Add updateDocumentMetadata() to r2rClient in r2rClient.ts for updating document metadata.
    • Add collection_ids support in r2rClient methods for document ingestion and updates.
  • API Changes:
    • Add /send_reset_email and /update_document_metadata/{document_id} endpoints in auth_router.py and ingestion_router.py.
    • Add WrappedMetadataUpdateResponse to models/__init__.py and ingestion/responses.py.
  • Database and Models:
    • Add send_reset_email method to auth.py and r2r_auth.py.
    • Add update_document_metadata method to ingestion_service.py.
    • Add collection_ids handling in ingestion_workflow.py and simple/ingestion_workflow.py.
  • Miscellaneous:
    • Update package.json version to 0.3.14.
    • Fix import order in deduplication.py and kg.py.

This description was created by Ellipsis for 58bf088. It will automatically update as commits are pushed.

* move verification to auth

* add send reset email
* fix f-string for backwards

* fix f-string for backwards
Copy link

vercel bot commented Nov 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yc_demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 4, 2024 11:32pm
yc-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 4, 2024 11:32pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
recommendation_platform ⬜️ Ignored (Inspect) Nov 4, 2024 11:32pm

* up

* fix
* up

* bump package
* fix tests

* fix tests
@emrgnt-cmplxty emrgnt-cmplxty marked this pull request as ready for review November 5, 2024 01:00
@emrgnt-cmplxty emrgnt-cmplxty merged commit 4c0f449 into main Nov 5, 2024
22 checks passed
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to 58bf088 in 1 minute and 53 seconds

More details
  • Looked at 1267 lines of code in 26 files
  • Skipped 1 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. js/sdk/src/r2rClient.ts:478
  • Draft comment:
    Avoid passing undefined explicitly as a parameter. It can lead to confusion and potential bugs. Consider removing it or providing a meaningful default value.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The code in r2rClient.ts and r2rClient.test.ts has a minor issue with the addition of an undefined parameter. This is not a good practice as it can lead to confusion and potential bugs. It would be better to explicitly name the parameter or remove it if not needed.
2. js/sdk/__tests__/r2rClient.test.ts:356
  • Draft comment:
    Avoid passing undefined explicitly as a parameter. It can lead to confusion and potential bugs. Consider removing it or providing a meaningful default value.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The code in r2rClient.ts and r2rClient.test.ts has a minor issue with the addition of an undefined parameter. This is not a good practice as it can lead to confusion and potential bugs. It would be better to explicitly name the parameter or remove it if not needed.

Workflow ID: wflow_pmNBFwKN2Pelg1AP


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

name="update-document-metadata",
timeout="30m",
)
class HatchetUpdateDocumentMetadataWorkflow:
Copy link
Contributor

Choose a reason for hiding this comment

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

This class duplicates the functionality of update_document_metadata in simple/ingestion_workflow.py. Consider refactoring to use the existing function.

@emrgnt-cmplxty emrgnt-cmplxty deleted the dev-minor branch November 11, 2024 19:16
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.

1 participant