You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by anujbhan <gi...@git.apache.org> on 2017/01/25 00:07:50 UTC
[GitHub] airavata pull request #94: Making corrections to user profile service code
GitHub user anujbhan opened a pull request:
https://github.com/apache/airavata/pull/94
Making corrections to user profile service code
Several changes in source code were needed to make this service working:
1. Added the user-profile service cpi thrift file to develop branch, it was missing
2. regenerated the thrift files to match other auto generated files (Add license, remove date through maven plugin)
3. made changes to all pom files related to user-profile service, made them consistant with other module pom files
4. changed the folder structure of user profile service to make it consistant with other modules
5. added correct class path for user-profile service in airavata-server.properties
6. Added dependency for user-profile service in distribution pom, to make the service discoverable when starting server
7. Made changes to thrift generation scripts to add user-profile thrift file
8. Removed unnecessary files
9. made changes to user profile server and handler files (Licence header etc)
10. Adding user profile service to serverMain.class (to start the server)
All the changes have been tested on jet stream airavata deployment.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/anujbhan/airavata userProfileService
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/airavata/pull/94.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #94
----
commit 8f6f2183c42b1ce1432b93b4ade892f1f122fb2d
Author: Anuj Bhandar <bh...@gmail.com>
Date: 2017-01-24T23:45:59Z
making corrections to user profile service code
commit aa98eee4f34949a4a8fe09361fe59d6e93e22e36
Author: Anuj Bhandar <bh...@gmail.com>
Date: 2017-01-24T23:57:11Z
adding the server property file, which was left out in last commit
commit baaed53a372e7ab51eaed83b997dd604a29baf46
Author: Anuj Bhandar <bh...@gmail.com>
Date: 2017-01-25T00:00:16Z
adding dependancy for user-profile service in distribution pom
commit c6ba43bf685b953f575760894fb89910e2c22d14
Author: Anuj Bhandar <bh...@gmail.com>
Date: 2017-01-25T00:05:59Z
adding user profile service to server module
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] airavata pull request #94: Making corrections to user profile service code
Posted by smarru <gi...@git.apache.org>.
Github user smarru commented on a diff in the pull request:
https://github.com/apache/airavata/pull/94#discussion_r97787375
--- Diff: thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift ---
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * Component Programming Interface definition for Apache Airavata User profile registry Service.
+ *
+*/
+
+include "../data-models/user-group-models/user_profile_model.thrift"
+include "registry_api_errors.thrift"
+
+
+namespace java org.apache.airavata.userprofile.crude.cpi
+
+const string USER_PROFILE_CPI_VERSION = "0.16.0"
+
+service UserProfileCrudeService {
--- End diff --
How about we drop the CRUD all together and rename the service to UserProfileService?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] airavata pull request #94: Making corrections to user profile service code
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/airavata/pull/94
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] airavata issue #94: Making corrections to user profile service code
Posted by anujbhan <gi...@git.apache.org>.
Github user anujbhan commented on the issue:
https://github.com/apache/airavata/pull/94
Working on the review now !
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] airavata issue #94: Making corrections to user profile service code
Posted by smarru <gi...@git.apache.org>.
Github user smarru commented on the issue:
https://github.com/apache/airavata/pull/94
@anujbhan thank you for this contribution and detailed commit and change log, very helpful for reviews and provenance.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] airavata pull request #94: Making corrections to user profile service code
Posted by machristie <gi...@git.apache.org>.
Github user machristie commented on a diff in the pull request:
https://github.com/apache/airavata/pull/94#discussion_r97784766
--- Diff: thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift ---
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * Component Programming Interface definition for Apache Airavata User profile registry Service.
+ *
+*/
+
+include "../data-models/user-group-models/user_profile_model.thrift"
+include "registry_api_errors.thrift"
--- End diff --
Seems like the UserProfile service should have its own error types instead of using the registry error types. The way this is set up there are two RegistryServiceException classes that are generated.
I'm not sure what to recommend though. Maybe use the common airavata errors in airavata_errors.thrift? Or define a new UserProfileServiceException?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] airavata pull request #94: Making corrections to user profile service code
Posted by smarru <gi...@git.apache.org>.
Github user smarru commented on a diff in the pull request:
https://github.com/apache/airavata/pull/94#discussion_r97787233
--- Diff: thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift ---
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * Component Programming Interface definition for Apache Airavata User profile registry Service.
+ *
+*/
+
+include "../data-models/user-group-models/user_profile_model.thrift"
+include "registry_api_errors.thrift"
--- End diff --
May be we should move towards service specific exception? so a UserProfileService Exception?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] airavata issue #94: Making corrections to user profile service code
Posted by anujbhan <gi...@git.apache.org>.
Github user anujbhan commented on the issue:
https://github.com/apache/airavata/pull/94
Additional changes introduced as per the review comments:
1. Renamed the service to UserProfileService
2. Created a separate exception class for UserProfileService
3. Making corrections to Service Handler class to include exception handling
4. Regenarated thrift files
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] airavata pull request #94: Making corrections to user profile service code
Posted by machristie <gi...@git.apache.org>.
Github user machristie commented on a diff in the pull request:
https://github.com/apache/airavata/pull/94#discussion_r97785195
--- Diff: thrift-interface-descriptions/component-cpis/user-profile-crud-cpi.thrift ---
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+
+/*
+ * Component Programming Interface definition for Apache Airavata User profile registry Service.
+ *
+*/
+
+include "../data-models/user-group-models/user_profile_model.thrift"
+include "registry_api_errors.thrift"
+
+
+namespace java org.apache.airavata.userprofile.crude.cpi
+
+const string USER_PROFILE_CPI_VERSION = "0.16.0"
+
+service UserProfileCrudeService {
--- End diff --
Rename from "Crude" to "Crud". I'm assuming that it is supposed to be Crud like CRUD (Create-Read-Update-Delete). Also in the namespace and maybe elsewhere.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] airavata issue #94: Making corrections to user profile service code
Posted by machristie <gi...@git.apache.org>.
Github user machristie commented on the issue:
https://github.com/apache/airavata/pull/94
Looks good @anujbhan \U0001f44d
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---