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

fix: change DirectoryComponent to filter file paths by types #2391

Merged
merged 16 commits into from
Jul 5, 2024

Conversation

carlosrcoelho
Copy link
Contributor

The "Type" option of the component has been adjusted to ensure the file type is selected correctly.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 27, 2024
@dosubot dosubot bot added the enhancement New feature or request label Jun 27, 2024
Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

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

Hey @carlosrcoelho

Thanks!

I think this component was not correct from the start.

Copy link
Contributor

Choose a reason for hiding this comment

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

The component is wrong I think. The types field should be a list field. That's why the self.types requires a call to split but shouldn't.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ogabrielluiz Please verify the corrections applied.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jul 4, 2024
@ogabrielluiz ogabrielluiz changed the title Refactor DirectoryComponent to filter file paths by types fix: DirectoryComponent to filter file paths by types Jul 4, 2024
@ogabrielluiz ogabrielluiz changed the base branch from dev to main July 4, 2024 18:42
@ogabrielluiz ogabrielluiz changed the title fix: DirectoryComponent to filter file paths by types fix: change DirectoryComponent to filter file paths by types Jul 4, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 4, 2024
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) July 4, 2024 18:42
@github-actions github-actions bot added bug Something isn't working and removed enhancement New feature or request bug Something isn't working labels Jul 4, 2024
ogabrielluiz and others added 6 commits July 5, 2024 09:08
* Refactored mutation and query types and callables

* Refactored version and other queries to new way of calling function

* update type declaration to support options

* update getVersionQuery

* [autofix.ci] apply automated fixes

* update type declaration to remove on Fetch options

* remove onFetch from version

* update transactions query

* [autofix.ci] apply automated fixes

---------

Co-authored-by: anovazzi1 <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <[email protected]>
* opentelemetry and prometheus

* set env override in create_app

* add prometheus_client to pyproject

* update top level poetry.lock
* update getHealth function to use options param

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
anovazzi1 and others added 4 commits July 5, 2024 11:34
* fix version

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
chore: Add conditional step to delete-reports job in TypeScript test workflow
* fix: pasting files not working

* [autofix.ci] apply automated fixes

* refactor: change new import

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <[email protected]>
Co-authored-by: anovazzi1 <[email protected]>
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Jul 5, 2024
@ogabrielluiz ogabrielluiz merged commit bc6b846 into main Jul 5, 2024
28 checks passed
@ogabrielluiz ogabrielluiz deleted the cc/directory-component-fix branch July 5, 2024 15:17
ogabrielluiz added a commit to yaitec/langflow that referenced this pull request Jul 9, 2024
…w-ai#2391)

* Refactor DirectoryComponent to filter file paths by types

* fix: sets types is_list to True

* chore: Remove Optional from load_directory method signature

* chore: Update return type annotation for load_directory method

* style(GroqModel.py): improve code readability by fixing indentation and adding a comment for type hint ignore in ChatGroq instantiation.

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]>
nicoloboschi pushed a commit to datastax/ragstack-ai-langflow that referenced this pull request Jul 10, 2024
…w-ai#2391)

* Refactor DirectoryComponent to filter file paths by types

* fix: sets types is_list to True

* chore: Remove Optional from load_directory method signature

* chore: Update return type annotation for load_directory method

* style(GroqModel.py): improve code readability by fixing indentation and adding a comment for type hint ignore in ChatGroq instantiation.

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]>
(cherry picked from commit bc6b846)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants