-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add missing functionalities to support API #40
Comments
👍 |
I think I'll cover this if only I get OS X Server running on my MBP 😡 |
@czechboy0, @esttorhe I'm trying to update Update a bot’s configuration - how do you imagine the method signature for this one? I came with two ideas but don't know which one will be better:
In the first option you specify both: bot to update by ID and updating bot. In the latter you just provide updated bot with correct ID which will be used to |
Hmm this one is actually pretty tricky. I suggest we leave that one for last 😆 |
Also because some of the work I'm doing now will make the bot updating call much easier to work with. If you can take a look at |
Typical me - start working from the worst side 😐 Thing that get stuck in my head after opening |
Yeah I agree, now that there are more API calls it'd make sense to start splitting it. As you said, let's wait for that until this is merged (and even create an issue so that we don't forget). |
@czechboy0 you know anything about integration commits? I have configured bot and if I run integration I always see that there are no commits related to this integration. Any idea when those commits are assigned to the integration? |
Yeah that's going to be a tricky one to test. The commits of an integration are the commits that have been pushed since the last integration. So I'd suggest you create a dummy branch, run an integration there once. Then, commit a couple of times there and then run an integration again. The second one should show all those commits. However, for debugging, you can also delete integrations (not just bots) through Xcode. This might help in development. |
Hmm, I guess I found answer... We're returning an array of commiters... But we probably don't have models for this, right? Same thing with issues and repositories, I guess... |
Nope, that's all yours 😉 Create model classes for |
Looks like it's a job for more than 20 min 😜 |
Yeah that might have been an underestimate 😆 |
So if #44 is already merged, are we good to go with Updating a bot’s configuration? I'd prefer to finish non-new-stuff-required calls first and than jump on those more involving. Please, think about the method signature and let me know 😉 |
Actually, |
Ok, as you wish 👌 |
Repositories are represented by a simple JSON: {
"readAccessExternalIDs": [],
"writeAccessExternalIDs": [
"FDF283F5-B9C3-4B43-9000-EF6A54934D4E",
"ABCDEFAB-CDEF-ABCD-EFAB-CDEF00000050"
],
"name": "Test2",
"posixPermissions": 0,
"httpAccessType": 1
} There's no similarity between Repository and |
I'll leave that to your judgement. I don't have a strong preference either way. |
Yay only 3 more API calls to support them all! The last two should be relatively easy, it's just work adding those model classes. And the Bot patching one I'll try to look at in the next couple of days. |
One last to go... |
@czechboy0 what is the status of Why is it tricky? And how tricky is it? this would be a great feature! since checking out code and building a project takes over 90% for each bot. Running the unit tests takes less than 10%, that is a big overhead! I have btw created a Swift 3 branch for XcodeServerSDK and each pod it is dependent on: https://github.com/Sajjon/XcodeServerSDK |
@cojoj If I would try developing a Edit existing Bot feature, any ideas where to start? What are the primary challenges? |
Whoa, it was a long time ago... And to be clear: How I see it being tricky... You have to provide correct things to update bot. I guess the only required thing would be |
Apple has left as with a table of supported endpoint in Xcode 7. It shows up that they're only providing some basic stuff but it's necessary for us to cover them all!
We're on a good way and already cover most but some of them are missing - not because we don't have code to support them but because a nice, convenience method hasn't beed written yet (you can do it).
In
README
you can see a table of features, so if you're planning to implement some of those missing methods, plase updateREADME
as wellHere's the list of all official endpoints:
If you're wondering how to determine what endpoint will be used in official API, here's the list:
/bots
/bots
/bots/(id)
/bots/(id)
/bots/(id)/integrations
/bots/(id)/integrations
/integrations
/integrations/(id)
/integrations/(id)/commits
/integrations/(id)/issues
/devices
/repositories
/repositories
If you need some motivation to start doing this task, please refer to #2 😉
The text was updated successfully, but these errors were encountered: