-
Notifications
You must be signed in to change notification settings - Fork 8
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
Added a flag for forced person creation #107
Conversation
The 'force' flag has to be set to true, if there is already another person with the same name (yes, in churches with a larger number of members it may happen that there are different persons with the same name ;-)) and the person should be created anyways. Otherwise the API response with an error.
@Naitsirch That is a important point! Can you add the flag in the example code for the docs and also describe the purpose in the docs?
|
I'll look into it ;-) |
The 'force' flag has to be set to true, if there is already another person with the same name (yes, in churches with a larger number of members it may happen that there are different persons with the same name ;-)) and the person should be created anyways. Otherwise the API response with an error.
927d700
to
b1b03ca
Compare
Done. I hope I have done it correctly ^^ |
Thank you for your trust to let me commit to your repository. I am not sure whether I'll do that, because it is your project and my coding style differs from yours. So I'll prefer to create PRs and wait for your response, if this is okay for you. Btw. there won't be many more PRs from me, because the feature set, that I need is mostly complete. The only thing I still need, is the possibility to synchronize person photos. If this works, I'll stop annoying you :-D |
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
Feel free to contribute however you like! I am grateful for your support! Your update for the doc looks great! churchtools-api/src/Requests/AbstractRequestBuilder.php Lines 87 to 96 in 4c50a1b
|
I would be happy if we stay in contact. If you want you can send me an email to: lukas.dumberger@gmail.com I would be very interested in what use-case you are using the ChruchTools API for at your church. Maybe we can exchange ideas sometime! I am always interested in new project ideas. |
Hi @Naitsirch,
|
Sorry, I did not had the time, to check it, yet. But if it works for you, you can merge it and if I'll experience any errors I'd fix it vor create an issue ;-) Otherwise I plan to go in with it at the weekend. |
Thanks for your reply. I close the PR. By the way: You said you would need to upload avatar of persons? I added the file-api today. I hope this helps you: #114 |
I have tested it now, and it works fine ;-) |
By the way, here is the project where I am using your library: https://github.com/naitsirch/ecgpb-memberlist. This is the interactive command that I use to run the synchronization process: And this is the service class, that is responsible for the business logic: I'll contact you per mail for more details ;-) |
The
force
flag has to be set to true, if there is already another person with the same name (yes, in churches with a larger number of members it may happen that there are different persons with the same name ;-)) and the person should be created anyways. Otherwise the API responds with an error.