-
Notifications
You must be signed in to change notification settings - Fork 47
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
PXD-1312 feat(search): Enable search function for data dictionary view #434
Conversation
Dictionary search function deployed in https://qingya.planx-pla.net/DD, please have a try and let me know which part (interactions or UI) you think could improve... thanks! 🙏 |
Wow, looks so cool. This page is so much more useful than what was there a month or two ago!!! Feedbacks:
|
border-top: 1px solid var(--g3-color__silver); | ||
} | ||
|
||
.dicionary-search-history__item { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo! "dicionary" -> "dictionary"
background-color: var(--g3-color__gray); | ||
} | ||
|
||
.dicionary-search-history__item:hover .dicionary-search-history__item-count { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more typos! "dicionary" -> "dictionary"
|
Jenkins Build 20 : time taken 24 min |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
took a while, but everything looks great and works well. LGTM
Jenkins Build 21 : time taken 1 hr 15 min |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had some small things
const svgBoundingBox = this.props.highlightingNodeSVGElement | ||
&& this.props.highlightingNodeSVGElement.getBoundingClientRect | ||
? this.props.highlightingNodeSVGElement.getBoundingClientRect() | ||
const highlightingNodeSVGElement = this.props |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.props.graphNodesSVGElements
defaults to null
, will this line cause problems if it's null and it tries to access a field?
}; | ||
|
||
handleSeeOnlyMatchedProperties = () => { | ||
this.props.onCloseMatchedNode(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this names are still kind of confusing to me, if this function is called handleSeeOnlyMatchedProperties
I don't expect it to call another function onCloseMatchedNode
, which sounds like it closes a panel that displays matches?
const { result, errorMsg } = searchKeyword(this.searchData, str); | ||
if (!result || result.length === 0) { | ||
this.props.setIsSearching(false); | ||
this.props.onSearchResultUpdated([], []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why pass two empty arrays in here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because search result is empty here.
this.setState({ | ||
isSearchFinished: true, | ||
hasError: true, | ||
errorMsg, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think errorMsg
was defined in the original state
src/DataDictionary/search/DictionarySearcher/searchHelper.test.js
Outdated
Show resolved
Hide resolved
Thanks for comments!~ code updated and please have a check again |
Jenkins Build 22 : time taken 24 min |
Jenkins Build 23 : time taken 42 min |
Jenkins Build 24 : time taken 36 min |
Jenkins Build 25 : time taken 1 hr 0 min |
Jenkins Build 26 : time taken 35 min |
Jenkins Build 27 : time taken 31 min |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Deployed in https://qingya.planx-pla.net/DD, try it
New Features
Breaking Changes
Bug Fixes
Improvements
Dependency updates
Deployment changes