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

[23.0] Fix History filters includes related filter bug #15975

Conversation

ahmedhamidawan
Copy link
Member

If some filter other than the related filter was set = "related" (e.g.: state:related || tag:related), we would remove the filter in historyItemsStore.getHistoryItems.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@ahmedhamidawan ahmedhamidawan added this to the 23.0 milestone Apr 21, 2023
@@ -28,7 +28,9 @@ export const useHistoryItemsStore = defineStore("historyItemsStore", {
getHistoryItems: (state) => {
return (historyId, filterText) => {
const itemArray = state.items[historyId] || [];
const filters = HistoryFilters.getFilters(filterText).filter((filter) => !filter.includes("related"));
const filters = HistoryFilters.getFilters(filterText).filter(
(filter) => !filter[0].includes("related")
Copy link
Member

Choose a reason for hiding this comment

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

I'm happy to merge this with manual verification for the release, but it might be really nice to have store specific tests applying the filtering here if you had time to take a pass at that. I know we have tests for HistoryFilters, so maybe pushing this filter specific logic into there and testing it there makes sense, too?

@dannon dannon merged commit e6757c2 into galaxyproject:release_23.0 Apr 24, 2023
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.

3 participants