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

changes tag retention behaviour #26

Merged
merged 1 commit into from Jun 5, 2019
Merged

changes tag retention behaviour #26

merged 1 commit into from Jun 5, 2019

Conversation

@AndriusA
Copy link
Collaborator

AndriusA commented Jun 5, 2019

retain tags of current instance, do not serialize.

when deserializing, tags of the existing instance (the one we are recreating lists into) are maintained

];

let mut engine = Engine::from_rules(&filters);
engine.tags_enable(&["stuff"]);
engine.tags_enable(&["brian"]);
let serialized = engine.serialize().unwrap();
let mut deserialized_engine = Engine::from_rules(&[]);
deserialized_engine.tags_enable(&["stuff"]);

This comment has been minimized.

Copy link
@AndriusA

AndriusA Jun 5, 2019

Author Collaborator

The new engine we'd be restoring to needs to set its own tags

@bbondy
bbondy approved these changes Jun 5, 2019
@bbondy bbondy merged commit 096da2e into master Jun 5, 2019
@AndriusA AndriusA deleted the tags-deserialization branch Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.