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

ACS-5471: Secondary path support #2585

Merged
merged 26 commits into from
Oct 10, 2023

Conversation

krdabrowski
Copy link
Contributor

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

PMD found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

* += fS
* </pre>
* Parent += Child - primary parent-child relationship
* Parent +- Child - secondary parent-child relationship
Copy link
Member

Choose a reason for hiding this comment

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

This is really helpful - thanks!


// when
STEP("Delete the secondary parent-child relationship between folderQ and FolderR.");
folders(Q).removeSecondaryChild(folders(R));
Copy link
Member

Choose a reason for hiding this comment

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

I think there's a risk that this test will be intermittent. I think we've seen the worst ES offenders are tests which change paths and then expect updates to happen soon afterwards. Could we instead change this to perform the add and remove in the precondition?

Alternatively we could just keep an eye out to see whether this test actually does fail frequently or not. Perhaps it will be fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand your point, but before PTO I'm not able to fix all the tests, which change paths and then expect updates to happen soon afterwards. Lets keep eye on them and I can fix them after my PTO.

initializers = AlfrescoStackInitializer.class)
public abstract class NodesSecondaryChildrenRelatedTests extends AbstractTestNGSpringContextTests
{
protected static final String A = "A", B = "B", C = "C", K = "K", L = "L", M = "M", P = "P", Q = "Q", R = "R", S = "S", X = "X", Y = "Y", Z = "Z";
Copy link
Member

Choose a reason for hiding this comment

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

I think this is a reasonable use of multiple declarations on a single line even if PMD doesn't. I suggest marking it with @SuppressWarnings("PMD.whatever").

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good hint - the annotation - thanks!

Map<String, Folder> createNestedFolders(String... folderSuffixes);

void delete(Folder folder);
}
Copy link
Member

Choose a reason for hiding this comment

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

I think most of the helpers in this class would be widely useful. Perhaps we could consider adding them to the TAS framework in com-repo instead? I don't think this needs to be a base class for tests does it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, it's already crossed my mind too, but I also think that firstly this logic should be adapted for more general use - this could be done in a separate task

Copy link
Member

@tpage-alfresco tpage-alfresco left a comment

Choose a reason for hiding this comment

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

Some suggestions but pretty much LGTM

krdabrowski and others added 7 commits September 28, 2023 15:56
…ch/reindexing/NodesSecondaryAncestorIndexingTests.java

Co-authored-by: Tom Page <[email protected]>
…ch/reindexing/NodesSecondaryAncestorIndexingTests.java

Co-authored-by: Tom Page <[email protected]>
…ch/reindexing/NodesSecondaryAncestorIndexingTests.java

Co-authored-by: Tom Page <[email protected]>
…ch/reindexing/NodesSecondaryAncestorIndexingTests.java

Co-authored-by: Tom Page <[email protected]>
Copy link
Contributor

@mpichura mpichura left a comment

Choose a reason for hiding this comment

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

LGTM - no idea why these tests fail in pipeline

@krdabrowski krdabrowski merged commit 9ff3676 into master Oct 10, 2023
48 checks passed
@krdabrowski krdabrowski deleted the feature/ACS-5471-Secondary_path_support branch October 10, 2023 15:01
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.

3 participants