Skip to content

Commit 3f58be7

Browse files
authored
remove realtimeProductAPIDs from config and remove usage (#306)
1 parent 330b33c commit 3f58be7

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

config.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -349,27 +349,6 @@
349349
records: 10
350350
},
351351

352-
/**
353-
* Data Product Temporary Workaround:
354-
*
355-
* If you want to view real-time product data, you must specify all
356-
* product APIDs that you want to see in the below array. This config
357-
* is only required for MCWS R3.2, and will not be required for
358-
* MCWS R3.3.
359-
*
360-
* This list can be quickly extracted from apid.xml with the following
361-
* python code:
362-
*
363-
* temporarily disable spellcheck, to be removed in https://github.com/NASA-AMMOS/openmct-mcws/issues/303
364-
* cspell:disable
365-
* import xml.etree.ElementTree as ET
366-
* tree = ET.parse('apid.xml')
367-
* apids = [int(a.attrib['number']) for a in tree.getroot() if a.tag == 'apid']
368-
* cspell:enable
369-
*
370-
*/
371-
realtimeProductAPIDs: [],
372-
373352
/**
374353
* Plugin Support
375354
* Example configuration:

src/realtime/MCWSDataProductStreamProvider.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ class MCWSDataProductStreamProvider extends MCWSStreamProvider {
4040

4141
return super.subscribe(domainObject, wrappedCallback, options);
4242
}
43-
44-
notifyWorker(key, value) {
45-
if (key === 'subscribe' && this.options.realtimeProductAPIDs && value.mcwsVersion === 3.2) {
46-
value.extraFilterTerms = {
47-
apid: '(' + this.options.realtimeProductAPIDs.join(',') + ')'
48-
};
49-
}
50-
super.notifyWorker(key, value);
51-
}
5243
}
5344

5445
export default MCWSDataProductStreamProvider;

0 commit comments

Comments
 (0)