-
Notifications
You must be signed in to change notification settings - Fork 96
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
Display Builder: last save timestamp and user in BOB file data #2583
Comments
For those who do use a version control tool, we've been trying to minimize bogus changes. For example, earlier display tools would simply save the properties in whatever order some hash map held them. Or version updates of the tool would create different files even if the widget settings were really the same. All of the version control can be handled just fine with cvs/svn/mercurial/git, write access can be handled by the file system, so I'd rather not duplicate those ideas. How about taking one step back and save the user and date within a comment at the start of the file?
If you do need to know, you can open the file in a text editor, but it doesn't rise up to the level of an actual display property. |
Ok, good point, org.csstudio.display.builder.model.persist.ModelWriter constructor
Thank you for go/nogo. |
Yes, I think that would be fine. |
I have got a request from my users:
as not on all projects/sites GIT is available, and not always file timestamps are preserved, they ask to save last edit timestamp and editing user (OS user) to the BOB file itself.
I modeled the function using 2 new readonly string properties in DisplayModel (default "" changed on Save in Editor):
In the Bob file:
I know the function is not bulletproof (in case of external text editors/convertors etc. are used). Basically this is not a target; the target is to document last change made by Editor.
Can you consider and decide if you want to merge this or not @kasemir @shroffk ?
If you find it unsuitable feel free to reject; I can live without that as well.
Thank you.
The text was updated successfully, but these errors were encountered: