Compare commits

...

27 Commits

Author SHA1 Message Date
Deep Tailor
735720d821 Merge branch 'master' of https://github.com/nasa/openmct into time-conductor-issue-1969 2018-05-02 13:58:22 -07:00
Deep Tailor
1c2dc1de1c Merge branch 'master' of https://github.com/nasa/openmct into time-conductor-issue-1969 2018-05-02 11:06:48 -07:00
Deep Tailor
5deb395c07 fixes issue #1969
force blur on the time conductor input field when enter key is pressed
2018-05-02 11:02:44 -07:00
Pete Richards
f9febda021 Summary widget telemetry provider (#1943)
* Summary Widgets produce telemetry

Adds a summary widget telemetry provider and metadata provider to
the summary widget plugin.  Supports subscribing to realtime
summary widget evaluations without needing the summary widget UI.

Fixes https://github.com/nasa/openmct/issues/1893

* Use metadata to determine telemetry types

Update summary widgets to use metadata to determine telemetry types.
fixes https://github.com/nasa/openmct/issues/1801
fixes https://github.com/nasa/openmct/issues/1883

* shared evaluators, more telemetry values

Share summary widget evaluators to reduce number of times a object
needs to be loaded when dealing with multiple queries.

Fixes https://github.com/nasa/openmct/issues/1893

* Separate view for editing
fixes https://github.com/nasa/openmct/issues/1827

* Update summary widget tests

* Workaround incorrect telemetry capability application

In the case where an object support telemetry but does not support
the specific type of telemetry request i.e. a summary widget has
request for lad but not for historical, an error will be thrown.

* use makeKeyString

use makeKeyString when storing configuration of objects in summary
widgets.  Otherwise, namespace information would not be properly
tracked.  Fixes https://github.com/nasa/openmct/issues/1949

* [Tests] coverage for EvaluatorPool

Add tests for EvaluatorPool and fix a bug where the same evaluator
was returned for different objects.

* Add copyright headers

* Update metadata provider registration

* attach title to a element

* Only evaluate realtime when all data available

* Prevent update after destroy

* Don't error when no telemetry exists

* Don't mutate on view destroy

Improper removal of listeners was triggering a mutation on view
destroy, which happens after the initial persist call to server
that occurs when saving. This mutation occurs after the edit
transaction has been closed, which would result in an immediate
persist call.  This can cause a race condition when the first
persist call has not completed, which causes a 409 conflict and
a persistence error.

Fix #1827

* Spec for telemetryProvider

* update on time system change

Summary Widgets now resubscribe and requery for data when time
system changes, in order to ensure they're showing the correct
data to the user.

* link to telemetry request details

* rename variables, update jsdoc

Addresses comments in https://github.com/nasa/openmct/pull/1943
2018-05-02 11:02:44 -07:00
Charles Hacskaylo
eca3ce0fe0 Review SCSS refactoring for to-be-deprecated Bourbon functions (#1959)
* [Frontend] Refactor SCSS to remove deprecated @includes

Fixes #1891
- In progress

* [Frontend] Refactor SCSS to remove deprecated @includes

Fixes #1891
Making bourbon happy by refactoring to-be-deprecated
calls to prefixing @includes:
- transform and related CSS;
- flex and related CSS;
- Fixed double semi-colons to single;
2018-05-02 11:02:44 -07:00
Deep Tailor
b8ecf6c266 [Imagery] Issue #1962 - History shows oldest image (#1983)
* force update to latest image when history is received

* force update to latest history image on response received

* remove console log"

* change requestLAD function to last item in array, in case response is an array with more than one item

* fix checkstyle

* remove requestLAD because its requesting history twice in cases where server does not have latest flag
2018-05-02 11:02:44 -07:00
Pegah Sarram
760b94ea4d [Toolbar] set selection initially in fixed controller and toolbar... (#1994)
* [Toolbar] set selection initially in fixed controller and toolbar...

... to make the add button appear in the toolbar when a fixed position is created.

Remove selection change listener on destroy.

Start a digest cycle when handling selection in toolbar to avoid delays in toolbar.

Fixes #1991, #1987

* fixed checkstyle and lint errors

* Fix tests

* Update comment
2018-05-02 11:02:44 -07:00
Charles Hacskaylo
45807c44a8 [Frontend] Added return at eof
Fixes #1966
2018-05-02 11:02:44 -07:00
Deep Tailor
584c51c0dc fixes issue 1973 and 1911 (#1992)
Remove previous icon class name before adding the new class name
2018-05-02 11:02:44 -07:00
Andrew Henry
f631e05ad0 Enterprise-galactica (#1993)
* Tagged release to close Enterprise sprint

* Updated version number to open sprint Galactica
2018-05-02 11:02:44 -07:00
Pete Richards
d883ada1a6 Fix style 2018-05-02 11:02:44 -07:00
Pete Richards
34a6f50c80 Only listen on overlay plots
Only listen for mutations on overlay plots, as other mutations
should be ignored by plot configuration.

Fixes https://github.com/nasa/openmct/issues/1945
2018-05-02 11:02:44 -07:00
Pete Richards
80533ef3e1 Remove alarm set when removing series
Remove alarm marker sets when removing series, so that they don't
continue to display.

Fixes https://github.com/nasa/openmct/issues/1935
2018-05-02 11:02:44 -07:00
Pete Richards
32f62faac6 Fallback to 2d on context lost
When webgl contexts are lost, fallback to 2d rendering context.

Because it's not possible for a canvas to generate a different
context after one has already been created, the canvas elements
must be recreated from scratch, and event handlers must also be
updated.

This resolves https://github.com/nasa/openmct/issues/1976
2018-05-02 11:02:44 -07:00
Pete Richards
cfd92cf121 cleanup chart controllers 2018-05-02 11:02:44 -07:00
Pete Richards
8cfbca8dbc [Plot] Wait for width before loading (#1975)
Plot waits for element to have width before loading.  Otherwise,
it may make a minmax request with an invalid size parameter.

Fixes https://github.com/nasa/openmct/issues/1974
2018-05-02 11:02:44 -07:00
Charles Hacskaylo
3bbdd348b5 [Frontend] CSS for better startup
Fixes #1966
- Transitions and opacity styles moved to new _app-start.scss,
which loads at the very end of all other CSS needed by the app;
2018-05-02 11:02:44 -07:00
Pete Richards
002beba165 Allow property values of zero. (#1961)
Allow SWG properties of zero to be used instead of overwriting
them with defaults.
2018-05-02 11:02:44 -07:00
Harry
c3785c83a0 [Testing] Create unit tests for Types API (#1890)
* [Testing] Create unit tests for Tests API

* [Documentation] Fix spelling in TypeRegistry.js

* update TypeRegistrySpec to conform to code review
use .get() on typeRegistryInstance

Fixes #1514
2018-05-02 11:02:44 -07:00
Pete Richards
fd2cc2c9b9 Pin d3 major/minor versoins (#1963)
Pin to specific d3 major/minor versions while allowing new
patches.  Previously, we were pinned to major versions only, and
minor versions contained changes to the distributed files which
would result in broken builds.

This should hopefully prevent broken builds from dependency updates.
2018-05-02 11:02:44 -07:00
Pete Richards
b3fce3f57c [API] Support dynamic telemetry metadata (#1941)
* [API] Support dynamic telemetry metadata

Add support for dynamic telemetry metadata via custom telemetry
metadata providers.  

The metadata provider API should be considered unstable in it's
current invocation.

* Perform deprecation checking at runtime
* SWG uses telemetry metadata provider
* Don't throw with no matched metadata provider
* Update API docs
* Add license header
* Combine metadata providers with general telemetry providers
* Replace `TelemetryAPI.canProvideTelemetry` with
`TelemetryAPI.isTelemetryObject`.  
* CanProvideTelemetry is deprecated
* Change SWG inputs to numberfield
2018-05-02 11:02:44 -07:00
Pete Richards
469ff8b4b7 Lock filesaver version (#1956)
Lock filesaver version as there have been a large number of broken
builds from what should be non-breaking version increases.

Fixes currently broken build.
2018-05-02 11:02:44 -07:00
Henry
084dcea571 Updated version number for Enterprise release 2018-05-02 11:02:44 -07:00
Henry
15436a7e87 Removed snapshot from version number to close sprint eagle 2018-05-02 11:02:44 -07:00
Pete Richards
7995175471 [Plugin] Add imported root plugin (#1784)
* [Plugin] Add static root plugin

Add StaticRootPlugin, which allows a file exported with the ImportExport
plugin to be mounted as a static root in Open MCT.  Allows deployers
to configure standard displays for deployments by exporting displays they
have already created.

* Include all src files
2018-05-02 11:02:44 -07:00
Deep Tailor
d2be40539f Fixes Issue #1938 - Fixed Positon should display enumerated value (#1939)
* Fixes #1938
Fixed usage of Telemetry API, use hints to get valueMetadata, use valueMetadata to get formatter

* dont circumvent chooseTelemetryKeyToDisplay, which was causing a regression when imagery is added to fp

* fix broken tests

* pass valueMetaData to limitEvaluator.evaluate, rename #chooseTelemetryKeyToDisplay to getValueMetadata, to reflect what is returned.
update tests

* change getValueMetadata to chooseValueMetadataToDisplay
2018-05-02 11:02:44 -07:00
Henry
8eb487d634 Updated version range of gulp-sass to allow later versions 2018-05-02 11:02:44 -07:00
2 changed files with 8 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
-->
<span ng-controller="DateTimeFieldController">
<input type="text" autocorrect="off" spellcheck="false"
ng-keyup="forceBlur($event)"
ng-model="textValue"
ng-blur="restoreTextValue(); ngBlur()"
ng-mouseup="ngMouseup()"

View File

@@ -96,7 +96,14 @@ define(
updateFromView($scope.textValue);
}
function forceBlur($event) {
if ($event.keyCode === 13) {
$event.target.blur();
}
}
$scope.restoreTextValue = restoreTextValue;
$scope.forceBlur = forceBlur;
$scope.picker = { active: false };