Skip to content
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

FUSETOOLS-2879 - filter runtime in "New Runtime" wizard #1348

Merged

Conversation

apupier
Copy link
Member

@apupier apupier commented Apr 16, 2018

Signed-off-by: Aurélien Pupier apupier@redhat.com

Pull Request Checklist

After this checklist is all checked or PR provides explanations for possible pass-through, please put the label "Ready for review" on the PR.

General

  • Did you use the Jira Issue number in the commit comments?
  • Did you set meaningful commit comments on each commit?
  • Did you sign off all commits for this PR? (git commit -s -m "jira issue number - your commit comment")

Functional

  • Did the CI job report a successful build?
  • Is the non-happy path working, too?

Maintainability

  • Are all Sonar reported issues fixed or can they be ignored?
  • Is there no duplicated code?
  • Are method-/class-/variable-names meaningful?

Tests

  • Are there unit-tests?
  • Are there integration tests (or at least a jira to tackle these)?
  • Do we need a new UI test?

Legal

  • Have you used the correct file header copyright comment?
  • Have you used the correct year in the headers of new files?

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
@apupier apupier requested a review from a team as a code owner April 16, 2018 13:28
@apupier
Copy link
Member Author

apupier commented Apr 16, 2018

for Karaf:
image
for wildly/EAP:
image
for comparison without filter (as it is currently):
image
image

we can notice that several runtimes not Fuse/Karaf/Wildfly/EAP are still appearing but it seems a bug to me. What do you think? @robstryker

@apupier
Copy link
Member Author

apupier commented Apr 16, 2018

@lhein @bfitzpat having the list hardcoded makes it easier to see which versions we are supporting and is a bit faster, on the other hand when a new runtime is added, we will need to update this list. Do you have another argument to choose between one of those 2 solutions? (we can also start like that and modify in a next iteration)

@lhein
Copy link
Contributor

lhein commented Apr 16, 2018

doesn't it work with org.jboss.ide.eclipse.as.runtime.* also? I would prefer if we can make it more dynamic

@apupier
Copy link
Member Author

apupier commented Apr 16, 2018

doesn't it work with org.jboss.ide.eclipse.as.runtime.* also?

no it doesn't work

@lhein
Copy link
Contributor

lhein commented Apr 16, 2018

Then I fear I don't understand what the alternative approach to hard coding would be here?

@apupier
Copy link
Member Author

apupier commented Apr 16, 2018

Then I fear I don't understand what the alternative approach to hard coding would be here?

Retrieve all runtimes from our code and filter the list based on ids and the kind of pattern that you mentioned.

@lhein
Copy link
Contributor

lhein commented Apr 16, 2018

Actually the later approach is easier to maintain and I would opt for the dynamic approach.

@robstryker
Copy link
Member

The weird ones still being shown aren't server adapters. They are references to extensions that can be installed. I imagine an API enhancement could be made here to not show those.

@apupier
Copy link
Member Author

apupier commented Apr 16, 2018

The weird ones still being shown aren't server adapters. They are references to extensions that can be installed. I imagine an API enhancement could be made here to not show those.

thanks for the answer. I opened the enhancement request: https://issues.jboss.org/browse/JBIDE-25920

@apupier apupier added this to the 11.0.0.AM1 milestone Apr 17, 2018
Signed-off-by: Aurélien Pupier <apupier@redhat.com>
@apupier
Copy link
Member Author

apupier commented Apr 17, 2018

Actually the later approach is easier to maintain and I would opt for the dynamic approach.

updated with dynamic approach.
Maybe some old Wildfly/EAP versions can be filtered out? If yes, we can raise another JIRA enhancement request.

@apupier apupier merged commit e8febf0 into jbosstools:master Apr 18, 2018
@apupier apupier deleted the FUSETOOLS-2879-FilterRuntimeTypesOnNewButton branch April 27, 2018 12:14
@apupier apupier restored the FUSETOOLS-2879-FilterRuntimeTypesOnNewButton branch March 12, 2019 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants