Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

WIP Use /api/users endpoint instead of /api/identities for fetching list of users #908

Closed
wants to merge 1 commit into from

Conversation

alexeykazakov
Copy link
Contributor

@alexeykazakov alexeykazakov commented Feb 7, 2017

@@ -15,7 +15,7 @@ import { User } from '../models/user';
export class UserService {
private headers = new Headers({'Content-Type': 'application/json'});
private userUrl = process.env.API_URL + 'user'; // URL to web api
private identitiesUrl = process.env.API_URL + 'identities'; // URL to web api
private usersUrl = process.env.API_URL + 'users'; // URL to web api
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this end point exist?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not yet. And as I said in the description (see above ^) please do NOT merge until fabric8-services/fabric8-wit#692 is merged ;)

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, sorry I missed that. My bad.

@@ -30,7 +30,7 @@ export class UserService {
} else {
logger.log('UserService running in production mode.');
}
logger.log('UserService using user url ' + this.userUrl + ' identity url ' + this.identitiesUrl);
logger.log('UserService using user url ' + this.userUrl + ' users url ' + this.usersUrl);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need the logger at this point?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know but I didn't remove the original one. Just updated it accordingly.

@alexeykazakov
Copy link
Contributor Author

fabric8-services/fabric8-wit#692 has been merged. This one should be merged now too.

@aslakknutsen
Copy link
Contributor

[test]

1 similar comment
@joshuawilson
Copy link
Contributor

[test]

@sanbornsen
Copy link
Contributor

Another PR is raised with the same changes and fixed tests - #930
Hence closing this PR.

@sanbornsen sanbornsen closed this Feb 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants