-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
BitbucketOrganizations uses a deprecated API endpoint #1054
Comments
@fellahi-ali thank you for reporting this. I'll assign someone to take care of it soon. |
@amihaiemil I couldn't find any assignee for this task. This is either because there are no contributors with role Please, make sure there is at least one available contributor with the required role and the project can afford to pay them. |
@fellahi-ali (cc: @criske) thanks for this ticket. I recently started working with BitBucket for a new client and yes, I also noticed the Bitbucket works with BUT from what I noticed so far (maybe I'm wrong), the So, I think The last point with overriding the default methods of Iterable is definetely a mistake, we only implement iterator, that's it. Let's leave this ticket open for now, it contains valuable information. We will come back to it a bit later. |
@zoeself remove |
@amihaiemil ok, I've removed this task from scope. I'm not managing it anymore. |
@amihaiemil Actually the "real" organization is a much more complex thing, though Bitbucket as product is not integrated yet (hence these major api changes and deprecations) https://support.atlassian.com/organization-administration/docs/what-is-an-atlassian-organization/ But for the Self scope, I think is ok to asume that workspace is equivalent-ish with github's org, imo :D. |
@amihaiemil While working on #984 I noticed some issues, I think 🤓
self-core/self-core-impl/src/main/java/com/selfxdsd/core/BitbucketOrganizations.java
Line 60 in 36dbcb4
First, the endpoint
/teams
is deprecated, which should be replaced by/workspaces
if it meets our needs, see docSecond, if we decided to stick with
/teams
endpoint, than we should fix another issue, because that endpoint need a mandatory query parameterrole
which is not provided in the current impl:self-core/self-core-impl/src/main/java/com/selfxdsd/core/BitbucketOrganizations.java
Lines 67 to 68 in 36dbcb4
Another issue, is the
reposUri
got from json will contain/!api/
which will not work for authenticated requests.self-core/self-core-impl/src/main/java/com/selfxdsd/core/BitbucketOrganization.java
Lines 65 to 70 in 36dbcb4
And a question :)
Why
BitbucketOrganizationRepos
impl, overrides two default methods fromIteratable
?self-core/self-core-impl/src/main/java/com/selfxdsd/core/BitbucketOrganizationRepos.java
Lines 65 to 73 in 36dbcb4
The text was updated successfully, but these errors were encountered: