-
Notifications
You must be signed in to change notification settings - Fork 874
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
Remove kenai code from versioning and bugtracking modules #7198
Conversation
I guess, Kenai was unplugged in 2017 with no replacement. |
I am not aware of a policy. This does not touch public API as you can see since no sig tests failed. I am planning to keep the friend api like |
f51d5dc
to
0d9f149
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow this is a really ugly integration for a single hosting system. Only explanation can be, that the NetBeans sponsor and the hoster were the same.
General comment:
versioning.util
exports friend-only to NetBeans modules, so I suggest not to deprecate, but directly kill (incrementing the module major version should be done then and that would be the point anybody should notice this)- for the other changes were deprecations were used instead of direct removals, I think none of the changes touched API (
bugzilla
and the versioning modules all have a package...api
which is the exported api), so I suggest the same there.
@@ -512,7 +508,7 @@ void reloadForm(boolean force) { | |||
clearHighlights(); | |||
|
|||
boolean isNew = issue.isNew(); | |||
boolean showProductCombo = isNew || !(issue.getRepository() instanceof KenaiRepository) || NBBugzillaUtils.isNbRepository(issue.getRepository().getUrl()); | |||
boolean showProductCombo = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boolean showProductCombo = true; | |
boolean showProductCombo = isNew || NBBugzillaUtils.isNbRepository(issue.getRepository().getUrl()); |
or kill NBBugzillaUtils
and change to:
boolean showProductCombo = true; | |
boolean showProductCombo = isNew; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my thinking was that !(issue.getRepository() instanceof KenaiRepository)
is essentially always evaluating to true now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i checked and NBBugzillaUtils is probably something for another PR (if at all possible). Since it sits in team.commons
which has a much bigger friends list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matthiasblaesing the code either displays the product field as combo box or as text field if it is a kenai project.
with kenai gone, I believe it is ok to always display it as combo box, no?
ide/bugtracking/test/unit/src/org/netbeans/modules/bugtracking/team/DummyRepositories.java
Outdated
Show resolved
Hide resolved
...test/unit/src/org/netbeans/modules/bugtracking/ui/repository/RepositoryComboSupportTest.java
Outdated
Show resolved
Hide resolved
pushed a commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not have made api incompatible changes in mercurial, but given that the "API" is friend-only with a single user, I think this is ok. Thank you.
I must have misunderstood your review comment then. What is the friend export you are worried about? There is still time to revert things. |
Sorry for the misunderstanding. My final comment was directed at the changes in It is done and cleanup, so I suggest to keep the change and merge as-is. |
- affected areas: git, svn, hg and issues/bugzilla - remove deprecated internal friend api code - bump major spec version of versioning.util and mercurial
a9e073d
to
929b3cb
Compare
Kenai was the successor of java.net and home for many java projects - but it is long gone now.
NB still has code which integrates kenai with various versioning and bugtracking IDE modules. This PR removes the code and the friend dependencies.
The API stubs ofversioning.util
are kept for now.