Skip to content

Issue 7622: New properties template - Light - #7703

Open
rtjd6554 wants to merge 23 commits into
developfrom
7622-Light-Sleeper-Example
Open

Issue 7622: New properties template - Light#7703
rtjd6554 wants to merge 23 commits into
developfrom
7622-Light-Sleeper-Example

Conversation

@rtjd6554

@rtjd6554 rtjd6554 commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Make sure you have checked all steps below.

Issue

  • My PR fully resolves the following issues. I've referenced an issue in the PR title, for example "Issue 1234 - My
    Feature". Note that before an issue is finished, you can still make a pull request by raising a separate issue
    for your progress.

Tests

  • My PR adds the following tests based on our test strategy OR does not need testing for this extremely good reason:
    • Execution of existing test suite
    • Additional new tests for the new templates

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it, or I have linked to a
    separate issue for that below.
  • If I have added new Java code, I have added Javadoc that explains it following our conventions and style.
  • If I have added or removed any dependencies from the project, I have updated the NOTICES file.

@rtjd6554
rtjd6554 force-pushed the 7622-Light-Sleeper-Example branch from 324018f to ddc1ed3 Compare July 24, 2026 10:57
@rtjd6554 rtjd6554 changed the title Issue 7622: Initial creation of new light properties template Issue 7622: New properties template - Light Jul 24, 2026
@rtjd6554
rtjd6554 marked this pull request as ready for review July 24, 2026 11:40
@rtjd6554 rtjd6554 added the needs-reviewer Pull requests that need a reviewer to be assigned label Jul 24, 2026
@patchwork01 patchwork01 removed the needs-reviewer Pull requests that need a reviewer to be assigned label Jul 29, 2026
Comment thread example/light/instance.properties

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

The outstanding comment on the storage property also needs resolving.

Comment thread example/light/instance.properties

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.

I don't think this file is needed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added for completeness sake and for future possible expansion.
Cost of inclusion is miminal so effort seemed warranted here.

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.

This shows every property, which isn't necessary. I think it seems like overkill for a "light" example. It also won't be valid, because there's no schema file.

If you want completeness, please match the basic example, including the tags and schema files.

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.

I think it's a bit misleading to have the light example header here, when there aren't properties set. Please match the basic example. Here's a link to the original thread: #7703 (comment)


@Nested
@DisplayName("Generate basic table properties template")
class GenerateBasicTablePropertiesTemplate {

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.

There's just one table properties template. Did you mean to revert this change?

I think the template tests should probably stay together, rather than have an example in between them.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Will move next to one another

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.

The name and display name still need reverting.

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.

Now the name and display name have been reverted but the template tests are split apart again. Here's a link to the original thread: #7703 (comment)

@rtjd6554 rtjd6554 removed their assignment Jul 29, 2026
@rtjd6554 rtjd6554 added the needs-reviewer Pull requests that need a reviewer to be assigned label Jul 29, 2026
Comment thread example/light/instance.properties Outdated
@patchwork01 patchwork01 removed the needs-reviewer Pull requests that need a reviewer to be assigned label Jul 30, 2026
@rtjd6554 rtjd6554 removed their assignment Jul 31, 2026
@rtjd6554 rtjd6554 added the needs-reviewer Pull requests that need a reviewer to be assigned label Jul 31, 2026

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

This is all pretty minor now, though a couple of them are unresolved threads from before.

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.

I think it's a bit misleading to have the light example header here, when there aren't properties set. Please match the basic example. Here's a link to the original thread: #7703 (comment)

public class GeneratePropertiesTemplates {

private static final String LIGHT_MODE_EXPLANATION = "# #\n" +
"# --- LIGHT MODE --- #\n" +

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.

I think the idea of a "mode" is a bit misleading. It's just a collection of configuration properties, not a mode you can put an instance into. I'd just leave out this line, because the files are already under a "light" directory.

writeFile(lightTemplateDir.resolve("instance.properties"),
GeneratePropertiesTemplates::writeExampleLightInstanceProperties);
writeFile(lightTemplateDir.resolve("table.properties"),
GeneratePropertiesTemplates::writeExampleLightTableProperties);

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.

I think we can just use writeExampleBasicTableProperties here, rather than duplicating it?

Comment thread example/light/instance.properties Outdated
@@ -0,0 +1,108 @@
#################################################################################
# SLEEPER INSTANCE PROPERTIES #
#################################################################################

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.

I think this part of the header seems a bit unnecessary. We don't have a header like this in any of the other examples. I'd rather avoid matching how it's done in the templates, which we're going to delete.


@Nested
@DisplayName("Generate basic table properties template")
class GenerateBasicTablePropertiesTemplate {

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.

Now the name and display name have been reverted but the template tests are split apart again. Here's a link to the original thread: #7703 (comment)

@patchwork01 patchwork01 removed the needs-reviewer Pull requests that need a reviewer to be assigned label Jul 31, 2026
@rtjd6554 rtjd6554 removed their assignment Aug 3, 2026
@rtjd6554 rtjd6554 added the needs-reviewer Pull requests that need a reviewer to be assigned label Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-reviewer Pull requests that need a reviewer to be assigned

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add light Sleeper example to documentation

3 participants