data-transfer-project icon indicating copy to clipboard operation
data-transfer-project copied to clipboard

Google Gmail Importer tests

Open seehamrun opened this issue 7 years ago • 26 comments
trafficstars

seehamrun avatar Apr 16 '18 15:04 seehamrun

i would like to contribute for this project. Can you guys help me out on how to start and proceed with this issue ?

chamorajg avatar Aug 02 '18 03:08 chamorajg

Can someone help me out ???

chamorajg avatar Aug 03 '18 13:08 chamorajg

Hi! Thanks for helping out!

The Gmail importer and exporter live under extensions/data-transfer/portability-data-transfer-google/src/main/java/org/datatransferproject/datatransfer/google/mail

We have some minimal tests under extensions/data-transfer/portability-data-transfer-google/src/test/java/org/datatransferproject/datatransfer/google/mail

A good place to start is reading through the makeup of our adapter plug in model to understand how these pieces fit together. Feel free to add onto the test from there (looks like there are a couple of TODOs left in the code).

seehamrun avatar Aug 03 '18 14:08 seehamrun

In addition to that, I would add:

As far as an existing example for an importer test, please see: https://github.com/google/data-transfer-project/blob/master/extensions/data-transfer/portability-data-transfer-google/src/test/java/org/datatransferproject/datatransfer/google/contacts/GoogleContactsImporterTest.java

We don't have a general test guidelines doc yet and would welcome any contribution you would like to make towards documentation if you are so inclined.

Here is a general guideline from the Google Testing Blog that may be helpful https://testing.googleblog.com/2008/08/by-miko-hevery-so-you-decided-to.html

holachuy avatar Aug 03 '18 14:08 holachuy

Thank you guys for your response. I am going through the codebase now. It might take time to start but definitely do it. Once again thank you guys.

chamorajg avatar Aug 04 '18 06:08 chamorajg

I have installed the docker images for running locally. How to get the API keys

chamorajg avatar Aug 19 '18 06:08 chamorajg

We have some general documentation here about API keys. Let us know if there is anything that is unclear https://github.com/google/data-transfer-project/blob/master/Documentation/Keys.md

holachuy avatar Aug 19 '18 22:08 holachuy

I tried running the dtp using docker-image when I use the localhost link I am not able to authenticate using API keys it says 401. That’s an error. Error: invalid_client The OAuth client was not found. I get this when I try to run it locally.

chamorajg avatar Aug 30 '18 17:08 chamorajg

Hi, this happens if the API key/secret are misconfigured. Which service are you getting the error for? Please double check that the client ID and secret that are configured on the service, match what you are passing in the secrets file.

seehamrun avatar Sep 04 '18 18:09 seehamrun

Google API keys. I get the key id but how to get the secret key. I am confused on how to choose the required API for the concerned application. Can you just help me out.

chamorajg avatar Sep 07 '18 02:09 chamorajg

You find some details on the flow of creating an oauth client for Google here: https://developers.google.com/identity/protocols/OAuth2WebServer#creatingcred

If you already created the oauth client, you can view the ID and secret by going to the cloud console credentials page: https://console.developers.google.com/apis/credentials and selecting the oauth client you are trying to access.

Let me know if that makes sense, and please point out places where our documentation is lacking. Thanks!

seehamrun avatar Sep 07 '18 14:09 seehamrun

Yes now it all works. I guess documentation lacks few information about OAuth registration.

chamorajg avatar Sep 07 '18 18:09 chamorajg

When creating an OAuth client, what do you put for "authorized domain" if your DTP instance runs on your laptop's localhost?

cedricvanrompay avatar Jul 09 '19 09:07 cedricvanrompay

Ok, well turns out you can put whatever domain you want and you still get OAuth credentials.

Also, I don't know why it's written “cedricvanrompay unassigned olsona 4 hours ago”. Really bad bug from GitHub ?..

cedricvanrompay avatar Jul 09 '19 12:07 cedricvanrompay

Hey, Can I do the TODO's in the code?

AlenJoseph55 avatar Jan 08 '23 10:01 AlenJoseph55

i would like to fix this issue.

bhupal9032 avatar Mar 30 '23 12:03 bhupal9032

hey is this issue fixed can you assign me .

Abhi-y2003 avatar Apr 19 '23 17:04 Abhi-y2003

@bhupal. you can work on this

anishlukk123 avatar May 10 '23 17:05 anishlukk123

hi, I would like to fix this issue as I've very little prior experience with open source can you please help me out with it

jaymasiwal avatar May 14 '23 23:05 jaymasiwal

Hello me and my teammate will be working on this issue.

EdmondLee958 avatar Jul 07 '23 20:07 EdmondLee958

I would like to contribute for this project. Can you guys help me out on how to start and proceed with this issue ?

Olab23 avatar Aug 15 '23 16:08 Olab23

Hello all is there any issue to fix. If so I would like to work on it. Can u guys suggest me??

Klinkaaraa avatar Sep 06 '23 16:09 Klinkaaraa

I want to support this project. can somebody assist me in contributing to this project?

Ameerjafar avatar Sep 15 '23 08:09 Ameerjafar

I want to support and fix this issue but I don't know who to start.

deepakchouhandc avatar Sep 24 '23 16:09 deepakchouhandc

Hello, I want to contribute to this issue. Is it still relevant?

DumitruDruta avatar Dec 05 '23 12:12 DumitruDruta

Yes sir.

On Tue, 5 Dec, 2023, 6:17 pm Dumitru, @.***> wrote:

Hello, I want to contribute to this issue. Is it still relevant?

— Reply to this email directly, view it on GitHub https://github.com/google/data-transfer-project/issues/363#issuecomment-1840728654, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCMTZF2GCJG36UJJRWUSV43YH4JWHAVCNFSM4E23DUZ2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBUGA3TEOBWGU2A . You are receiving this because you commented.Message ID: @.***>

Klinkaaraa avatar Dec 05 '23 13:12 Klinkaaraa