-
Notifications
You must be signed in to change notification settings - Fork 115
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
Hotfix 1.10.x sup 15603 #1571
base: hotfix-1.10.x
Are you sure you want to change the base?
Hotfix 1.10.x sup 15603 #1571
Conversation
8525da0
to
e6a21c2
Compare
mdm/orientdb-api/src/main/java/com/gentics/mesh/core/data/dao/MicroschemaDaoWrapper.java
Show resolved
Hide resolved
rest-client/src/main/java/com/gentics/mesh/rest/client/method/SchemaClientMethods.java
Show resolved
Hide resolved
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.
This is a new feature (new endpoints), so there is no reason to add it as hotfix.
core/src/main/java/com/gentics/mesh/core/endpoint/schema/SchemaEndpoint.java
Show resolved
Hide resolved
core/src/main/java/com/gentics/mesh/core/endpoint/microschema/MicroschemaEndpoint.java
Show resolved
Hide resolved
core/src/main/java/com/gentics/mesh/core/endpoint/schema/SchemaCrudHandler.java
Show resolved
Hide resolved
core/src/main/java/com/gentics/mesh/core/endpoint/microschema/MicroschemaCrudHandler.java
Show resolved
Hide resolved
@@ -305,6 +308,48 @@ public void testReadByUUID() throws Exception { | |||
} | |||
} | |||
|
|||
@Test | |||
public void testReadAssignedProjects() { |
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.
Add more test cases:
- permissions on schema
- permissions on projects
- paging
- sorting
@@ -502,4 +506,46 @@ public void testConflictingNameWithSchema() throws InterruptedException { | |||
client().createSchema(schemaRequest).blockingAwait(); | |||
call(() -> client().createMicroschema(microSchemaRequest), CONFLICT, "schema_conflicting_name", "test"); | |||
} | |||
|
|||
@Test | |||
public void testReadAssignedProjects() { |
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.
Add more test cases:
- permissions on microschema
- permissions on projects
- paging
- sorting
@@ -32,7 +32,8 @@ public class MigrationStatusHandlerImpl implements MigrationStatusHandler { | |||
|
|||
private MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); | |||
|
|||
private HibBranchVersionAssignment versionEdge; | |||
private Object versionEdgeId; |
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.
Refactored to avoid NPEs on test runs.
@npomaroli it is declared as SUP though. I may indeed move it under GP (2.1.x), although it will seem to be an unplanned feature. |
Abstract
REST EPs for referenced projects of (micro)schema.
Checklist
General
/CHANGELOG.adoc
On API Changes