-
Notifications
You must be signed in to change notification settings - Fork 715
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 functionality to include pages based on tags defined for test page. #1368
base: master
Are you sure you want to change the base?
Conversation
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.
Looks pretty good.
Sorry I didn't look at it earlier. Can you rebase on master and also add a line to the release notes page?
import fitnesse.wiki.SymbolicPage; | ||
import fitnesse.wiki.WikiPage; | ||
import fitnesse.wiki.WikiPagePath; | ||
import fitnesse.wiki.*; |
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.
Can you do explicit imports instead of .*
? (Also for test class)
WikiPageProperty suitesProperty = sourcePage.getData().getProperties().getProperty(WikiPageProperty.SUITES); | ||
if (shouldIncludeTagLibraries() && suitesProperty != null){ | ||
String[] tags1 = Arrays.stream(suitesProperty.getValue().split(",")).map(e -> e.trim()).filter(e -> checkIfTagIsNotReserved(e)).toArray(String[]::new); | ||
for(int i=0;i<tags1.length;i++){ |
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.
for(int i=0;i<tags1.length;i++){ | |
for(int i = 0; i < tags1.length; i++){ |
List<WikiPage> pages = new LinkedList<>(); | ||
WikiPageProperty suitesProperty = sourcePage.getData().getProperties().getProperty(WikiPageProperty.SUITES); | ||
if (shouldIncludeTagLibraries() && suitesProperty != null){ | ||
String[] tags1 = Arrays.stream(suitesProperty.getValue().split(",")).map(e -> e.trim()).filter(e -> checkIfTagIsNotReserved(e)).toArray(String[]::new); |
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.
Can't this just be tags
?
No description provided.