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

Merge multi-inheritance POC #10242 #10243

Merged
merged 6 commits into from
Dec 19, 2023
Merged

Merge multi-inheritance POC #10242 #10243

merged 6 commits into from
Dec 19, 2023

Conversation

vbradnitski
Copy link
Contributor

No description provided.

@vbradnitski vbradnitski linked an issue Aug 16, 2023 that may be closed by this pull request
@vbradnitski vbradnitski changed the title Merge multiinheritance POC #10242 Merge multi-inheritance POC #10242 Aug 16, 2023
}

@Test
public void testMoveArchiveAndResetFromTwoParents()

Check warning

Code scanning / Pmd (reported by Codacy)

JUnit tests should include assert() or fail()

JUnit tests should include assert() or fail()
@@ -152,10 +154,62 @@

}

@Test
public void testSyncProjectFromTwoParents()

Check warning

Code scanning / Pmd (reported by Codacy)

JUnit tests should include assert() or fail()

JUnit tests should include assert() or fail()
@@ -14,10 +14,10 @@


@Test
public void createProjectWithParent()
public void createProjectWithOneParent()

Check warning

Code scanning / Pmd (reported by Codacy)

JUnit tests should include assert() or fail()

JUnit tests should include assert() or fail()
@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Attention: 97 lines in your changes are missing coverage. Please review.

Comparison is base (3aaf246) 84.34% compared to head (3b9b598) 84.48%.
Report is 66 commits behind head on master.

Files Patch % Lines
...a/com/enonic/xp/web/impl/auth/BasicAuthFilter.java 51.72% 10 Missing and 4 partials ⚠️
.../impl/content/processor/ImageContentProcessor.java 93.90% 6 Missing and 4 partials ⚠️
.../java/com/enonic/xp/repo/impl/dump/RepoDumper.java 56.52% 10 Missing ⚠️
.../java/com/enonic/xp/project/ProjectGraphEntry.java 44.44% 5 Missing ⚠️
...nonic/xp/core/impl/content/ContentServiceImpl.java 28.57% 4 Missing and 1 partial ⚠️
.../xp/repo/impl/dump/blobstore/ZipDumpBlobStore.java 82.75% 3 Missing and 2 partials ⚠️
...main/java/com/enonic/xp/lib/auth/LoginHandler.java 68.75% 4 Missing and 1 partial ⚠️
...i/src/main/java/com/enonic/xp/project/Project.java 55.55% 4 Missing ⚠️
...xp/repo/impl/dump/blobstore/FileDumpBlobStore.java 80.00% 3 Missing and 1 partial ⚠️
...nic/xp/core/impl/security/SecurityServiceImpl.java 42.85% 2 Missing and 2 partials ⚠️
... and 18 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #10243      +/-   ##
============================================
+ Coverage     84.34%   84.48%   +0.13%     
- Complexity    19419    19482      +63     
============================================
  Files          2595     2599       +4     
  Lines         67678    67775      +97     
  Branches       5390     5389       -1     
============================================
+ Hits          57083    57259     +176     
+ Misses         7982     7909      -73     
+ Partials       2613     2607       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vbradnitski vbradnitski marked this pull request as ready for review August 16, 2023 13:04
@@ -759,4 +765,31 @@ private Context adminContext()
.authInfo( AuthenticationInfo.copyOf( ContextAccessor.current().getAuthInfo() ).principals( RoleKeys.ADMIN ).build() )
.build();
}

private boolean createsCircleDependency( final ProjectName projectName, final List<ProjectName> parentNames )
Copy link
Contributor

Choose a reason for hiding this comment

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

strange name for method. What about shoudCreateCircleDependency?

@rymsha rymsha changed the base branch from master to 7.14 December 15, 2023 10:25
@alansemenov alansemenov merged commit 084edf3 into 7.14 Dec 19, 2023
6 checks passed
@alansemenov alansemenov deleted the issue-10242 branch December 19, 2023 11:49
alansemenov pushed a commit that referenced this pull request Dec 22, 2023
* Multi-inheritance in layers #10242

* NPE on project create after multi-inheritance implementation #10338

* Wrong parent can be selected in multi-inheritance sync #10343 (#10344)

* Wrong parent can be selected for sync during layer init #10346 (#10347)

* layers cycle when project gets created #10350 (#10355)

* Config to enable multilayer #10351 (#10359)

---------

Co-authored-by: rymsha <rymsha@yandex.ru>
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.

Multi-inheritance in layers
4 participants