Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Last Updated field to Traffic Portal #7075

Merged
merged 3 commits into from
Oct 5, 2022
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
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