Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Implement filter & query backend #211

Merged
merged 6 commits into from
Dec 20, 2018
Merged

Conversation

bryfox
Copy link
Contributor

@bryfox bryfox commented Dec 13, 2018

Depends on #205. Resolves #208 and #209.

This adds the main process scaffolding to support queries and filters. During the export flow, it runs a supplied user query to include only a subset of networks in export. It subsequently (after optionally merging all networks) filters all network nodes & edges before exporting.

It also wires up the temporary filter UI for network filtering; the UI may change as part of #200, but the interface should stay the same. (There is no querying UI yet.)

To test the filtering, you'll need to export fresh data from NC and ensure that your NC build includes https://github.com/codaco/Network-Canvas/pull/811.

.then(networks => (exportNetworkUnion ? [unionOfNetworks(networks)] : networks))
.then((networks) => {
.then(networks => filterNetworkEntities(networks, entityFilter))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

With #199, this order will probably need to change. I don't think it makes sense to insert an ego into the merged network, and filtering needs to happen before ego insertion. So the flow might be query -> filter -> insertEgo -> merge -> export.

@bryfox bryfox force-pushed the feature/export-ui-integration branch from d691265 to d5be821 Compare December 20, 2018 18:03
Ignore networkQuery in preflight tasks
Filter components from Architect work with IDs, not names, but our
imported data has been transposed from ID->name.

By transposing a copy of the registry, we don't need to modify the
filtering components.
@bryfox bryfox force-pushed the feature/filter-query-backend branch from 0d22b8c to 74cdd02 Compare December 20, 2018 18:16
@bryfox bryfox changed the title [merge after #205] Implement filter & query backend Implement filter & query backend Dec 20, 2018
@bryfox bryfox changed the base branch from feature/export-ui-integration to master December 20, 2018 18:17
@bryfox bryfox merged commit 740ccaa into master Dec 20, 2018
@bryfox bryfox deleted the feature/filter-query-backend branch December 20, 2018 18:31
jthrilly pushed a commit that referenced this pull request Jul 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants