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

Log entry group property not editable #191

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Conversation

thelarsjohansson
Copy link
Contributor

Log entry group property should not be editable but remain if it exists.

Integration test made available

  • src/test/java/org/phoebus/olog/docker/OlogLogsIT.java
    - @test void handleLogGroup() {
  • see src/test/resources/INTEGRATIONTEST_DOCKER_RUN.md for instructions on how to compile and run integration test

log1.getProperties().clear();
log1 = ITUtilLogs.assertUpdateLog(log1);
log2 = ITUtilLogs.assertRetrieveLog("/" + log2.getId());
assertEquals(1, log1.getProperties().size());
Copy link
Contributor

Choose a reason for hiding this comment

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

It's good we check the logbook group property remains, however it may be more effective to also verify that other properties are operated on as expected? E.g. if the other properties are left alone but we attempt to change or delete the log group?

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 guess the other properties may be part of the update which makes it not known which changes to keep and which to stop.

@shroffk shroffk merged commit 8947465 into master Mar 25, 2024
5 checks passed
@thelarsjohansson thelarsjohansson deleted the log-entry-group-not-editable branch March 26, 2024 12:05
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