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 #505 : Remove "empty filter" row #511

Merged
merged 5 commits into from
Dec 20, 2024
Merged

Fix #505 : Remove "empty filter" row #511

merged 5 commits into from
Dec 20, 2024

Conversation

pierrotsmnrd
Copy link
Contributor

Fix #505 : Remove "empty filter" row

I have kept the line if filter_row.key != NO_FILTER_KEY as it is necessary to create a new chat after adding a first filter row, which appears empty by default. Run it and tell me what needs to be improved.

@pmeier
Copy link
Member

pmeier commented Dec 12, 2024

This doesn't seem to fix it:

image

image

To reiterate: there shouldn't be any line in the "Metadata Filters" section by default and one should only appear if the user clicks the "+" button. Functionalitywise, in case there is no line it should just work as right now if it displays "Empty Filter".

pmeier
pmeier previously requested changes Dec 12, 2024
Copy link
Member

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

See above

@pierrotsmnrd
Copy link
Contributor Author

I have replaced the string "Empty Filter" by an empty string, so the fact you see it makes me think you might have used the wrong branch. Is that possible ?

@pmeier
Copy link
Member

pmeier commented Dec 12, 2024

Is that possible ?

It seems it is. No idea how that happened given that I even pushed a merge commit 6ba57ab 😵‍💫

@pmeier pmeier dismissed their stale review December 12, 2024 15:52

apparently wrong branch reviewed

Copy link
Member

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

  • For source storages that do not have any corpus available, can we disablethe "+" button or potentially even remove it or the "Metadata Filters" section completely?

    image

  • When selecting a source storage that has multiple corpora, selecting a corpus from the dropdown menu creates and empty filter that does not go away automatically

    Screencast.from.2024-12-12.16-55-09.webm

    This seems just like an UI issue, because the chat can be started with the row present and is correctly using no metadata filter.

Copy link
Member

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

Thanks Pierre!

@pmeier pmeier merged commit 7c391ac into corpus-dev Dec 20, 2024
9 of 10 checks passed
@pmeier pmeier deleted the fix-505 branch December 20, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants