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

Updated search by name function #55

Merged
merged 11 commits into from
Oct 21, 2023
Merged

Updated search by name function #55

merged 11 commits into from
Oct 21, 2023

Conversation

kloudsoft91
Copy link
Owner

@kloudsoft91 kloudsoft91 commented Oct 15, 2023

closes #54

@kloudsoft91 kloudsoft91 linked an issue Oct 15, 2023 that may be closed by this pull request
@kloudsoft91
Copy link
Owner Author

This is ready for review

Note: The final test will continue to fail (and may need rework) till we merge #28 and fix up the json of the already stored data

Copy link
Collaborator

@joel-yap joel-yap left a comment

Choose a reason for hiding this comment

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

Think the change might be causing a problem when putting any name into the top searchbox, the filter does not work and there's an error:
Uncaught TypeError: d.common_names.concat(...).join is not a function
at index.vue:96:46
at Proxy.filter ()
at Proxy.filterByName (index.vue:95:21)
at Proxy.applyAllFilters (index.vue:53:22)
at Proxy.handleSearch (index.vue:257:12)
at callWithErrorHandling (chunk-SBFBVZFQ.js:1779:18)
at callWithAsyncErrorHandling (chunk-SBFBVZFQ.js:1787:17)
at emit (chunk-SBFBVZFQ.js:2228:5)
at Proxy.search (NavigationBar.vue:65:12)
at _createElementVNode.onInput._cache.._cache. (NavigationBar.vue:16:46)

@kloudsoft91
Copy link
Owner Author

kloudsoft91 commented Oct 15, 2023

Think the change might be causing a problem when putting any name into the top searchbox, the filter does not work and there's an error: Uncaught TypeError: d.common_names.concat(...).join is not a function at index.vue:96:46 at Proxy.filter () at Proxy.filterByName (index.vue:95:21) at Proxy.applyAllFilters (index.vue:53:22) at Proxy.handleSearch (index.vue:257:12) at callWithErrorHandling (chunk-SBFBVZFQ.js:1779:18) at callWithAsyncErrorHandling (chunk-SBFBVZFQ.js:1787:17) at emit (chunk-SBFBVZFQ.js:2228:5) at Proxy.search (NavigationBar.vue:65:12) at _createElementVNode.onInput._cache.._cache. (NavigationBar.vue:16:46)

Unfortunately, this is because the json data in the main branch is out of date with the structure the new code expects, we need to fix the data with the correct structure as per my previous comment in #28 and merge those changes before the code in this PR works. Perhaps we should merge that branch in first?

@kloudsoft91 kloudsoft91 temporarily deployed to github-pages October 21, 2023 00:09 — with GitHub Actions Inactive
Copy link
Collaborator

@AdamN2424 AdamN2424 left a comment

Choose a reason for hiding this comment

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

New search works well, tests passing

@kloudsoft91 kloudsoft91 dismissed joel-yap’s stale review October 21, 2023 00:31

changes requested have been address and approved

@kloudsoft91 kloudsoft91 merged commit da9cce3 into master Oct 21, 2023
4 checks passed
@kloudsoft91 kloudsoft91 deleted the search-using-arrays branch October 21, 2023 00:32
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.

Update searching and filtering functions
3 participants