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

fixes and search by value feature #628

Merged
merged 4 commits into from
Dec 19, 2021
Merged

fixes and search by value feature #628

merged 4 commits into from
Dec 19, 2021

Conversation

MiccWan
Copy link
Collaborator

@MiccWan MiccWan commented Dec 17, 2021

/** @typedef {import('@dbux/common/src/types/DataNode').default} DataNode */

/** @extends {CollectionIndex<DataNode>} */
export default class SimpleDataNodesIndex extends CollectionIndex {
Copy link
Owner

Choose a reason for hiding this comment

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

@MiccWan
rename simple to primtive maybe? That is the predominant terminology we use to refer to these types of values

return contexts;
},
[SelectorType.StaticContext]: (selector) => {
const { applicationId, staticContextId } = selector;
Copy link
Owner

Choose a reason for hiding this comment

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

@MiccWan Why is this only searching a singular application, and the others search multiple?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We used this to highlight Contexts of same StaticContext in CallGraph (with a small button in ContextNode). The search algorithm only takes staticContextId into account, which is meaningless for the other applications.

@Domiii Domiii merged commit b1d7c10 into master Dec 19, 2021
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.

2 participants