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

Write to oplog on updates (with changes) #225

Open
sklirg opened this issue Mar 24, 2023 · 1 comment
Open

Write to oplog on updates (with changes) #225

sklirg opened this issue Mar 24, 2023 · 1 comment
Labels

Comments

@sklirg
Copy link
Contributor

sklirg commented Mar 24, 2023

I would like an oplog-entry when something is updated, not only added, like this:

oplog("\"" . $switch{'sysname'} . "\"", "Switch added: " . $switch{'sysname'});

But not if there effectively are no changes.

Based on my understanding of the code it would require some "logic" to handle the previous criterion because currently, data is simply updated and no check is done on whether something changed.

This can be useful when data is synced into Gondul en-masse and there are many changes.

@sklirg sklirg added the feature label Mar 24, 2023
@KristianLyng
Copy link
Member

I think this is doable, pretty sure we do an affected-detected thing, but you're right, it might need some logic. We'll look at it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants