Project

General

Profile

Actions

Bug #5800

closed

Search support should degrade gracefully when MN.query is not supported

Added by ben leinfelder over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Category:
morpho - general
Target version:
Start date:
01/23/2013
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5800

Description

Morpho currently relies on the new-ish and optional MN.query() method and only understands the "pathquery" engine. Depending on the type (Metacat vs. GMN) and version (pre- vs. post- Metacat 2.0.5) this feature may not be available and the Morpho interface should gracefully indicate that.

Using the listQueryEngines() method, we can determine in a single call if "pathquery" queries are supported (http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNQuery.listQueryEngines). I would recommend only using this method rather than trying to use the CN.listNodes() method because there is nothing forcing a MN to update their node capabilities on the CN when they add features to their MN deployment. (In fact, I believe Metacat neglected to advertise the additional MNQuery support now included in v2.0.5 -- I'll enter a bug for that).

When MN.query(pathquery) is not available, the "search network" checkbox should be disabled. This check should be performed whenever the selected MN is changed in the Morpho preferences.

We will continue to support "Open by Id" because that does not rely on the MNQuery interface.

This should be tested against:
-older Metacat (v2.0.3)
-GMN


Related issues

Blocked by Morpho - Bug #5801: Test Morpho against GMNResolvedJing Tao01/23/2013

Actions
Actions

Also available in: Atom PDF