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

Upgrade to angular 1.5 and patternfly 3.18.1 #1250

Merged
merged 2 commits into from
Feb 21, 2017

Conversation

jwforres
Copy link
Member

No description provided.

@jwforres jwforres force-pushed the angular-1.5-upgrade branch from 1ba6f46 to bb01b7f Compare February 10, 2017 19:47
@jwforres jwforres force-pushed the angular-1.5-upgrade branch from bb01b7f to 0ee6608 Compare February 10, 2017 19:53
@jwforres
Copy link
Member Author

cc @dtaylor113 @jeff-phillips-18 @spadgett started this branch that contains dave's changes plus my fixes for orderBy. I got all the other repos updated on the angular dependency so there are no bower conflicts now.

@jwforres jwforres force-pushed the angular-1.5-upgrade branch from 0ee6608 to 7689654 Compare February 10, 2017 20:28
@jwforres
Copy link
Member Author

Looks like travis is happy now

@dtaylor113
Copy link
Contributor

LGTM! Thanks @jwforres 👍

@jwforres
Copy link
Member Author

@spadgett think this is ready for review now, particularly the second commit

@jwforres jwforres changed the title [WIP] Upgrade to angular 1.5 and patternfly 3.18.1 Upgrade to angular 1.5 and patternfly 3.18.1 Feb 13, 2017
@jwforres jwforres added this to the 1.6.0 milestone Feb 13, 2017
@@ -102,13 +102,13 @@ angular.module('openshiftConsole')
$scope.project = project;

DataService.list("resourcequotas", context, function(quotas) {
$scope.quotas = quotas.by("metadata.name");
$scope.quotas = _.sortBy(quotas.by("metadata.name"), 'name');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be... ?

$scope.quotas = _.sortBy(quotas.by("metadata.name"), "metadata.name");

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're doing to do this often, is it worth adding it directly to Data in DataService? Something like...? (untested)

Data.prototype.sort = function(property) {
  property = property || 'metadata.name';
  return _.sortBy(this.by("metadata.name"), property);
};

Then

$scope.quotas = quotas.sort();

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on the data service question I tend to agree, but since we are in the middle of moving the services out to the other repo, I'd rather do that separately from this PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me

<tr><td colspan="5"><em>{{emptyMessage}}</em></td></tr>
</tbody>
<tbody ng-repeat="tag in tagsByName | orderBy : 'name'">
<tbody ng-repeat="tag in tags | orderBy : 'name'">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the orderBy here if we're sorting in the controller.

"angular-animate": "1.3.20",
"angular-touch": "1.3.20",
"angular-route": "1.3.20",
"es5-dom-shim": "*",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concerns me a bit we have to use "*" here :/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We effectively already were since that is what hawtio-core was asking for before, there is not other option as the es5-dom-shim repo doesn't actually have releases.

We can probably drop this dependency altogether now, I don't think any of the browsers we support now even need this. But I would rather do that independent of this set of changes so we aren't trying to figure out what caused the issue if something ends up breaking.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm fine with it, although something we might look at. Maybe we can just exclude (not for this PR)

@@ -48,7 +48,7 @@ angular.module('openshiftConsole')
};
}
$scope.imageStream = imageStream;
$scope.tagsByName = ImageStreamsService.tagsByName($scope.imageStream);
$scope.tags = _.sortBy(ImageStreamsService.tagsByName($scope.imageStream), 'name');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 sorting in the watch callback seems better

…ang 1.5

Also update more dependencies to fix some resolution issues.
@jwforres jwforres force-pushed the angular-1.5-upgrade branch from 7689654 to d87d27f Compare February 17, 2017 19:41
@jwforres
Copy link
Member Author

PR updated to address review feedback plus the the stuff around image stream tags we just discussed

@jwforres
Copy link
Member Author

[merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to d87d27f

@openshift-bot
Copy link

openshift-bot commented Feb 21, 2017

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1025/) (Base Commit: 8a5a5f1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants