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

Hotfix 1.10.x sup 15603 #1571

Open
wants to merge 3 commits into
base: hotfix-1.10.x
Choose a base branch
from
Open

Conversation

plyhun
Copy link
Contributor

@plyhun plyhun commented Jan 3, 2024

Abstract

REST EPs for referenced projects of (micro)schema.

Checklist

General

  • Added abstract that describes the change
  • Added changelog entry to /CHANGELOG.adoc
  • Ensured that the change is covered by tests
  • Ensured that the change is documented in the docs

On API Changes

  • Checked if the changes are breaking or not
  • Added GraphQL API if applicable
  • Added Elasticsearch mapping if applicable

@plyhun plyhun force-pushed the hotfix-1.10.x-sup-15603 branch from 8525da0 to e6a21c2 Compare January 3, 2024 13:41
@plyhun plyhun requested a review from npomaroli January 3, 2024 13:46
Copy link
Member

@npomaroli npomaroli left a 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.

@@ -305,6 +308,48 @@ public void testReadByUUID() throws Exception {
}
}

@Test
public void testReadAssignedProjects() {
Copy link
Member

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() {
Copy link
Member

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;
Copy link
Contributor Author

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.

@plyhun
Copy link
Contributor Author

plyhun commented Jan 9, 2024

This is a new feature (new endpoints), so there is no reason to add it as hotfix.

@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.

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