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

Add search gui, node labels, and status filtering #194

Merged
merged 4 commits into from
Jan 12, 2018

Conversation

karenhanson
Copy link
Contributor

@karenhanson karenhanson commented Jan 11, 2018

This change consists of 3 major changes

  1. Added a basic search interface that uses the Solr index. Search is filterable by create date, agent, and status but defaults to status=active. Where the users searches for a specific URI and there is a match, the exact match will be displayed at the top of the search results.
  2. More meaningful node labels in graph visualizations. For DiSCO and Agent views, these are generated from within the DiSCO graph. For Resource views, these are generated using the index. In both instances, a configurable list of label types is used to determine possible labels. This closes issue Simplify node labels on visualization. #68.
  3. Support for toggling of status filter on resources views. This closes issue When Resource Summary only has inactive statements get Resource Not Found #97 but has also been implemented in a way that will support other filter toggles in the future (e.g. toggling agent filters)

Change includes basic tests for this new functionality.

- Initial search results page, needs tests.
- Removed original search form and replaced with one that uses GET. All filters/searches use GET so that the URL can be bookmarked
- Includes filters for status, date, and agent
- use search index to create meaningful node labels
- refactored graph model to support new labels
- add label to top of resource summary page
- add ability to filter by status on all views (incomplete) - this is to resolve a problem where you can only see active statements on Resource Summary, but in future could be used to toggle agent filters and other things on Resource view.
back end was already configured, this adds a checkbox to toggle status
on and off, and shows messages/tooltips to prompt people to show
inactive.
Added basic tests for new search and label functionality.
For existing tests, shifted them to depend on mocks rather than embedded solr, where possible.
Rearranged and improved TestUtils.
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