Skip to content

Add functionality to include pages based on tags defined for test page. - #1368

Open
pwszpl wants to merge 4 commits into
unclebob:masterfrom
pwszpl:master
Open

Add functionality to include pages based on tags defined for test page.#1368
pwszpl wants to merge 4 commits into
unclebob:masterfrom
pwszpl:master

Conversation

@pwszpl

@pwszpl pwszpl commented Apr 28, 2022

Copy link
Copy Markdown

No description provided.

@fhoeben fhoeben left a comment

Copy link
Copy Markdown
Collaborator

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.*;

Copy link
Copy Markdown
Collaborator

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)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated in newest commit

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++){

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
for(int i=0;i<tags1.length;i++){
for(int i = 0; i < tags1.length; i++){

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated in newest commit

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);

Copy link
Copy Markdown
Collaborator

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?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated in newest commit

@pwszpl
pwszpl requested a review from fhoeben June 7, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants