Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,27 +349,6 @@
records: 10
},

/**
* Data Product Temporary Workaround:
*
* If you want to view real-time product data, you must specify all
* product APIDs that you want to see in the below array. This config
* is only required for MCWS R3.2, and will not be required for
* MCWS R3.3.
*
* This list can be quickly extracted from apid.xml with the following
* python code:
*
* temporarily disable spellcheck, to be removed in https://github.com/NASA-AMMOS/openmct-mcws/issues/303
* cspell:disable
* import xml.etree.ElementTree as ET
* tree = ET.parse('apid.xml')
* apids = [int(a.attrib['number']) for a in tree.getroot() if a.tag == 'apid']
* cspell:enable
*
*/
realtimeProductAPIDs: [],

/**
* Plugin Support
* Example configuration:
Expand Down
9 changes: 0 additions & 9 deletions src/realtime/MCWSDataProductStreamProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ class MCWSDataProductStreamProvider extends MCWSStreamProvider {

return super.subscribe(domainObject, wrappedCallback, options);
}

notifyWorker(key, value) {
if (key === 'subscribe' && this.options.realtimeProductAPIDs && value.mcwsVersion === 3.2) {
value.extraFilterTerms = {
apid: '(' + this.options.realtimeProductAPIDs.join(',') + ')'
};
}
super.notifyWorker(key, value);
}
}

export default MCWSDataProductStreamProvider;