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

CSSTUDIO-2555 Bugfix: edit the source of log entries (if available), not the description of log entries. #3115

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

abrahamwolk
Copy link
Collaborator

@abrahamwolk abrahamwolk commented Aug 20, 2024

This PR implements a change to the Edit window of the logbook application: the result of getSource() is used (if available) instead of the result of getDescription(). As a consequence, editing formatted logs is easier: formatting (such as headings, etc.) is not lost when editing a log entry, and does not have to be recreated again.

To provide a concrete example, consider the following log-entry:

# Test 1
## Test 1.1
### Test 1.1.1

Currently (without this PR), when editing this log-entry, it would appear as

Test 1
Test 1.1
Test 1.1.1

and the formatting has to be recreated.

@shroffk
Copy link
Member

shroffk commented Aug 20, 2024

Ah,
This makes perfect sense. When editing we should be working with the source.

@shroffk shroffk merged commit 80c7a3b into master Aug 20, 2024
2 checks passed
@shroffk shroffk deleted the CSSTUDIO-2555 branch August 20, 2024 19:35
konrad-gajewski added a commit to freia-lab/phoebus that referenced this pull request Aug 30, 2024
…g entries (if available), not the description of log entries. ControlSystemStudio#3115).
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