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

Add new edtion and product id for Open Liberty #3215

Merged
merged 2 commits into from
Apr 23, 2018

Conversation

idlewis
Copy link
Member

@idlewis idlewis commented Apr 20, 2018

To distinguish features from WebSphere Liberty features
#build

@LibbyBot
Copy link

Code analysis and actions

DO NOT DELETE THIS COMMENT.
  • 4 product code files were changed.
  • Please describe in a separate comment how you tested your changes.

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_W7wHkURyEei6Isn3iLaRtw

Target locations of links might be accessible only to IBM employees.

Copy link
Member

@Azquelt Azquelt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of the comments are blockers.

* Open liberty features with an edition of OPEN in the appliesTo can be
* installed on everything except CORE.
*/
private final static List<String> nonCoreEditions = Arrays.asList("Base", "Express", "Developers", "ND", "z/OS");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we use these constants in more than one place, I'd be a bit tempted to move them out into named constants (or enums)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that makes sense

for (List<String> parsedProduct : parsedProducts) {
AppliesToEntry entry = new AppliesToEntry();
for (String thing : parsedProduct) {
entry.add(thing);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thing isn't a great name

productChunk as used above might be better.

Also, it's not obvious reading the code what the difference between an AppliesToEntry and an AppliesToFilterInfo is. I assume we need methods for both though?

* into a list of lists, so something like
* <blah,blah,blah>,<foo,foo,foo>,<baz,baz,baz>
*/
private static List<List<String>> doParse(String appliesTo) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice comment 👍

AppliesToProcessor needs to recognize OPEN as a valid edition
and also have an appropriate mapping to a human readable edition.
OPEN features can be installed on any edition apart from CORE

Also do a bit of refactoring to put the parsing logic into a
common method, and make a couple of methods private, as they
clearly should have been
@idlewis
Copy link
Member Author

idlewis commented Apr 20, 2018

#build

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_qFx2MESjEei6Isn3iLaRtw

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

The build idlewis-3215-20180420-0917
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_W7wHkURyEei6Isn3iLaRtw
completed and has errors or failures.

@LibbyBot
Copy link

The build idlewis-3215-20180420-1511
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_qFx2MESjEei6Isn3iLaRtw
completed and has errors or failures.

@idlewis
Copy link
Member Author

idlewis commented Apr 22, 2018

#build

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_mGwIAEZoEeiBcaHL18STjw

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

The build idlewis-3215-20180422-2112
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_mGwIAEZoEeiBcaHL18STjw
completed and has errors or failures.

@idlewis idlewis merged commit 73eab2f into OpenLiberty:integration Apr 23, 2018
@idlewis idlewis deleted the appliesTo branch April 23, 2018 10:01
@idlewis
Copy link
Member Author

idlewis commented Apr 23, 2018

The most recent build is red due to one UI test failure, which is not related to this change

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.

3 participants