Skip to content

Commit

Permalink
Add Last Updated field to Traffic Portal (#7075)
Browse files Browse the repository at this point in the history
* Add last updated to DS

* Fix typo
  • Loading branch information
shamrickus committed Oct 5, 2022
1 parent f75dde6 commit e891995
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## [unreleased]
### Added
- [#7075](https://github.com/apache/trafficcontrol/pull/7075) *Traffic Portal* Added the `lastUpdated` field to all delivery service forms.
- [#7055](https://github.com/apache/trafficcontrol/issues/7055) *Traffic Portal* Made `Clear Table Filters` option visible to the user.
- [#7024](https://github.com/apache/trafficcontrol/pull/7024) *Traffic Monitor* Added logging for `ipv4Availability` and `ipv6Availability` in TM.
- [#7063](https://github.com/apache/trafficcontrol/pull/7063) *Traffic Ops* Added API version 5.0 (IN DEVELOPMENT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,9 @@ var FormDeliveryServiceController = function(deliveryService, dsCurrent, origin,
// add an empty one so the dynamic form widget is visible. empty strings get stripped out on save anyhow.
$scope.deliveryService.consistentHashQueryParams = [ '' ];
}
if (deliveryService.lastUpdated !== undefined) {
deliveryService.lastUpdated = new Date(deliveryService.lastUpdated.replace("+00", "Z"));
}
};
init();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,14 @@ <h3 ng-if="!open()">Previous Value</h3>
</aside>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2 col-sm-2 col-xs-12" for="lastUpdated">
Last Updated
</label>
<div class="col-md-10 col-sm-10 col-xs-12">
<input id="lastUpdated" type="text" class="form-control" ng-model="deliveryService.lastUpdated" readonly />
</div>
</div>
</ng-form>
</fieldset>
<fieldset>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,14 @@ <h3 ng-if="!open()">Previous Value</h3>
</aside>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2 col-sm-2 col-xs-12" for="lastUpdated">
Last Updated
</label>
<div class="col-md-10 col-sm-10 col-xs-12">
<input id="lastUpdated" type="text" class="form-control" ng-model="deliveryService.lastUpdated" readonly />
</div>
</div>
</ng-form>
</fieldset>
<fieldset>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,14 @@ <h3 ng-if="!open()">Previous Value</h3>
</aside>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2 col-sm-2 col-xs-12" for="lastUpdated">
Last Updated
</label>
<div class="col-md-10 col-sm-10 col-xs-12">
<input id="lastUpdated" type="text" class="form-control" ng-model="deliveryService.lastUpdated" readonly />
</div>
</div>
</ng-form>
</fieldset>
<fieldset>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,14 @@ <h3 ng-if="!open()">Previous Value</h3>
</aside>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2 col-sm-2 col-xs-12" for="lastUpdated">
Last Updated
</label>
<div class="col-md-10 col-sm-10 col-xs-12">
<input id="lastUpdated" type="text" class="form-control" ng-model="deliveryService.lastUpdated" readonly />
</div>
</div>
</ng-form>
</fieldset>
<fieldset>
Expand Down

0 comments on commit e891995

Please sign in to comment.